Parameters
Description of what data you’re looking for.This parameter provides context for the query. It doesn’t affect filtering but helps document the query purpose.
The unique identifier of the resource to query.This ID can be obtained from the
list_dataset_resources or get_resource_info tool results.Page number for pagination.Use this to retrieve additional pages of data. Each page contains up to
page_size rows.Number of rows to return per page.Minimum: 1, Maximum: 200. Start with the default (20) to preview data structure, then increase if needed.
Name of the column to filter on.Must be used together with
filter_value. Column names are case-sensitive.Value to filter for in the specified column.Must be used together with
filter_column. The comparison operator is specified by filter_operator.Comparison operator for filtering.Supported operators:
exact- Exact matchcontains- Contains substringless- Less than or equal togreater- Greater than or equal tostrictly_less- Strictly less thanstrictly_greater- Strictly greater than
Name of the column to sort by.Column names are case-sensitive. Use with
sort_direction to control sort order.Sort direction for results.Supported values:
asc- Ascending orderdesc- Descending order
Returns
Returns a formatted text response containing:- Resource title and ID
- Dataset title and ID
- Question/query context
- Applied filters and sorting (if any)
- Total row count from Tabular API
- Number of rows retrieved
- Total pages and page size
- Column names
- All retrieved data rows with full content (values truncated to 100 characters if longer)
- Pagination information (if more pages available)
- For large datasets (>1000 rows): Warning about using
download_and_parse_resourcefor full analysis
Usage notes
This tool only works for CSV and XLSX files that are available via the Tabular API (CSV ≤ 100 MB, XLSX ≤ 12.5 MB). Use
get_resource_info to check availability first.Query strategy
- Preview structure: Start with default
page_size=20to understand the data structure and column names - Small datasets (<500 rows): Increase
page_sizeor paginate through all pages - Large datasets (>1000 rows): Use
download_and_parse_resourcefor comprehensive analysis instead of paginating
Filtering and sorting
You can combine filters and sorting:Pagination tips
- Check the “Total pages” in the response to know how many pages are available
- The tool will indicate if more pages are available with a next page suggestion
- For datasets >1000 rows, consider downloading the full file instead of paginating
Error handling
The tool handles the following error cases:- Invalid filter_operator: Returns list of supported operators
- Invalid sort_direction: Returns list of supported directions
- Resource not available: Returns error if resource is not in Tabular API
- HTTP errors: Returns status code and error details
- Empty results: Returns warning if no rows match filters