get_resource_info
Retrieve metadata for data files to determine optimal query method. Check format, size, and Tabular API availability to choose between direct querying or downloading.
Instructions
Get detailed information about a specific resource (file).
Returns comprehensive metadata including format, size, MIME type, URL, and associated dataset information. Also checks if the resource is available via the Tabular API (data.gouv.fr's API for parsing tabular files without downloading them).
Use this tool to determine which data querying tool to use:
If available via Tabular API: use query_resource_data (faster, no download needed)
If not available or too large: use download_and_parse_resource
Typical workflow:
Use list_dataset_resources to find resources in a dataset
Use get_resource_info to check resource details and Tabular API availability
Use query_resource_data or download_and_parse_resource based on availability
Args: resource_id: The ID of the resource to get information about (obtained from list_dataset_resources)
Returns: Formatted text with detailed resource information, including Tabular API availability status
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |