Skip to main content
Glama
catbru
by catbru

idescat_query_data

Query Catalonia's statistical data tables with territorial and time filters, returning flattened rows with labels. Requires table ID from catalog and optional filters.

Instructions

Obté dades d'una taula com a array de files aplanades amb etiquetes. IMPORTANT: l'ID de taula (table) és diferent de l'ID de node — obté'l amb idescat_list_catalog(statistics, node). Consulta primer idescat_get_table_metadata per saber les dimensions i filtres disponibles.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
geoNo
langNoIdioma: ca (defecte), es, en.
lastNoRetorna els darrers N períodes disponibles (_LAST_). No combinar amb filtre de temps.
nodeNo
tableNo
filtersNoFiltres per dimensió. Ex: {"SEX": "F", "COM": "01,TOTAL"}
table_idNoCamí complet "statistics/node/table/geo" (alternativa als camps separats).
statisticsNo
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description must disclose behavioral traits. It only mentions the output format (array of flattened rows) and a usage warning, but omits auth requirements, rate limits, error handling, or whether operation is read-only. Significant gaps for a data retrieval tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences cover purpose, warning, and prerequisite steps. Efficient and front-loaded with no redundant content. Every sentence adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 8 parameters, no output schema, and no annotations, the description provides essential but incomplete context. It explains the output format and prerequisite steps, but does not cover parameter semantics for half the parameters, alternative parameter combinations (table_id vs separate fields), or data volume implications. Adequate but with clear gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50% (4 of 8 parameters have descriptions). The description does not add meaning to undocumented parameters (geo, node, table, statistics) beyond the schema. It reiterates that filters are dimensions, but that is already in schema. Does not compensate for low coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool retrieves data from a table as flattened rows with labels. It distinguishes the table ID from node ID and references sibling tools for prerequisites, though it does not explicitly contrast with each sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly instructs to first use idescat_get_table_metadata to discover dimensions and filters, and to obtain table ID via idescat_list_catalog. Warns that table ID differs from node ID, providing clear when-to-use and prerequisite guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/catbru/idescat-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server