Skip to main content
Glama

Buscar doctrina administrativa tributaria

search_administrative_documents
Read-onlyIdempotent

Search Spanish tax administrative doctrine. Use source_groups=['petete'] for DGT interpretations and binding consultations; ['dyctea'] for TEAC/TEAR/TEAL criteria and economic-administrative appeals; omitting the filter searches both. Results contain references and indexed excerpts. Coverage is progressive.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_administrative_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
queryYes
date_toNoOptional upper date bound. Omit for thematic relevance searches; never invent dates.
per_pageNo
date_fromNoOptional lower date bound. Empty dated searches retry without dates and disclose the change.
search_modeNoFree-text query defaults to natural hybrid exploratory retrieval, requiring vectors and using up to 50 documents. Select strict explicitly for textual operators and phrases. The original query is preserved; retrieval does not establish legal interpretation or exhaustive coverage.natural
source_groupsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / date_from
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional lower date bound. Empty dated searches retry without dates and disclose the change.",
      +  "title": "Date From"
      +}
    • addedInput schema / properties / date_to
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional upper date bound. Omit for thematic relevance searches; never invent dates.",
      +  "title": "Date To"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish that this is a read-only, idempotent, non-destructive, closed-world search, so the safety profile needs no restating. The description adds genuinely useful behavior beyond that: results contain references and indexed excerpts, and coverage is described as progressive, warning the agent that results may be incomplete. It does not describe pagination or result ordering, which keeps it below a 5.

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?

Three short sentences, front-loaded with the purpose and then the filter semantics, with no filler. The terse closing caveat about progressive coverage is compact but still carries meaning.

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 seven-parameter search tool with no output schema, the definition covers purpose, corpus selection, and the shape of returned results, which is enough to call it correctly. The only meaningful omission is any mention of pagination behavior, which the agent must infer from the page and per_page schema fields.

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

Parameters4/5

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

Schema description coverage is only 43%, and the description compensates for the most ambiguous parameter by explaining exactly what each source_groups value retrieves. The date bounds and search_mode are documented in the schema itself, leaving page, per_page, and query self-evident from their names, so the remaining gap is small.

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?

States a specific verb and resource ("Search Spanish tax administrative doctrine") and scopes it to two doctrine corpora, which distinguishes it from the lookup_/read_administrative_document siblings. It does not explicitly contrast itself with search_decisions or search_evidence, so differentiation from those is left to inference.

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?

Gives concrete routing guidance for the key filter: petete for DGT interpretations and binding consultations, dyctea for TEAC/TEAR/TEAL criteria and appeals, and omitting the filter searches both. That is clear when-to-use guidance, but it is limited to source selection and says nothing about when to prefer this tool over the sibling search tools.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources