Parameters
The unique identifier of the resource.This ID can be obtained from the
list_dataset_resources tool results or from a data.gouv.fr resource URL.Returns
Returns a formatted text response containing:- Resource title or name
- Resource ID
- File format (e.g., CSV, XLSX, JSON)
- File size in human-readable format
- MIME type
- Resource type
- Download URL
- Description (if available)
- Dataset ID and title
- Tabular API availability status with one of:
- ✅ Available via Tabular API (can be queried)
- ✅ Available via Tabular API (large file exception)
- ⚠️ Not available via Tabular API (may not be tabular data)
- ⚠️ Could not check Tabular API availability
Usage notes
Use this tool to determine which data access method to use:
query_resource_data (if Tabular API is available) or download_and_parse_resource (for large files or unsupported formats).Tabular API availability
The tool checks if the resource is available via the Tabular API by:- Checking if the resource is in the large file exceptions list
- Querying the Tabular API profile endpoint
- CSV files: ≤ 100 MB (some large files have special exception support)
- XLSX files: ≤ 12.5 MB
- Other formats: Not supported via Tabular API
Choosing the right data access tool
Based on the Tabular API availability:| Status | Recommended tool | Reason |
|---|---|---|
| ✅ Available | query_resource_data | Fast querying, filtering, sorting without download |
| ⚠️ Not available | download_and_parse_resource | Direct download and parsing |
Error handling
The tool handles the following error cases:- 404 Not Found: Returns a message indicating the resource ID was not found
- Other HTTP errors: Returns the HTTP status code and error details
- Tabular API check failures: Continues and reports availability as unknown
- Unexpected errors: Returns the error message