Skip to main content
Glama

es_search_tax_rulings

Read-onlyIdempotent

Search Spanish DGT tax rulings (consultas tributarias) by free text and date, with pagination, to find binding tax criteria.

Instructions

Search DGT tax rulings (consultas tributarias) by free text and/or date.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo1-based results page (20 hits per page).
textoNofree-text query over the ruling corpus (e.g. ``"aerotermia"``).
databaseNo``"vinculantes"`` (default, V-numbers, binding) or ``"generales"``.vinculantes
fecha_desdeNoearliest ``fecha salida``, ``dd/mm/aaaa``.
fecha_hastaNolatest ``fecha salida``, ``dd/mm/aaaa`` (requires fecha_desde).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageYes
itemsNo
totalYes
databaseYes
total_pagesYes
dataset_noteNoDGT consultas tributarias are reached by official number (es_get_tax_ruling, e.g. 'V0001-25') or by full-text/date search (es_search_tax_rulings). Source: petete.tributos.hacienda.gob.es (Doctrina Tributaria, ~69,500 consultas vinculantes + ~19,700 consultas generales). Tax rulings have no ELI/ECLI; the official NUM-CONSULTA is the durable identifier.
Behavior3/5

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

Annotations already declare the tool as read-only, idempotent, and non-destructive. The description adds no extra behavioral context beyond the search criteria; it does not mention pagination, result limits, or any caveats. This is acceptable given the annotations but not particularly rich.

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?

The description is a single, front-loaded sentence that directly states the action, resource, and search criteria. Every word earns its place; there is no fluff or redundancy.

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

Completeness4/5

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

For a search tool with 5 optional parameters, a full output schema, and rich annotations, the description is minimally sufficient. It names the resource and criteria, while the schema and annotations handle the rest. Slightly more context (e.g., that this is for Spanish tax agency rulings) could improve it, but it is not incomplete.

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

Parameters3/5

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

Schema descriptions cover 100% of parameters, each with meaningful detail (e.g., 'free-text query over the ruling corpus', 'earliest fecha salida, dd/mm/aaaa'). The tool description adds no semantic value beyond the schema, so a baseline 3 is appropriate.

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

Purpose5/5

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

The description clearly states a specific verb ('Search'), a specific resource ('DGT tax rulings (consultas tributarias)'), and search criteria ('by free text and/or date'). This distinguishes it from sibling tools like es_search_teac_doctrine or es_get_tax_ruling.

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

Usage Guidelines4/5

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

The description gives clear context on what is searched (DGT tax rulings) and the two search dimensions (free text and date). It implicitly indicates that this tool is for searching rather than retrieving a specific ruling, but it does not explicitly mention alternatives or exclusions.

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/matematicsolutions/es-eli-mcp'

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