Skip to main content
Glama

Consultar documento administrativo

lookup_administrative_document
Read-onlyIdempotent

Retrieve a specific tax administrative document by DGT:consultation-number or DYCTEA:registry. Also accepts bare consultation/registry numbers, partial DYCTEA procedure references and official criterion URLs/identities. Returns identity, metadata and any available excerpt. Ambiguity returns identified candidates; select their id or full registry. Not found does not establish absence from the official source.

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": {
      "identifier": "<identifier>"
    },
    "name": "lookup_administrative_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
identifierYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile is covered. The description adds genuinely new behavioral context: what is returned (identity, metadata, excerpt), how ambiguity is surfaced (candidate list requiring id selection), and the important caveat that a not-found result does not prove absence from the official source.

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

Conciseness4/5

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

Four short sentences, front-loaded with the core action and accepted inputs, with the ambiguity and not-found caveats trailing in order of importance. Dense domain jargon ('DYCTEA procedure references', 'criterion URLs/identities') slightly reduces first-pass readability but nothing is wasted.

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 one-parameter read tool with no output schema, the description covers inputs, return shape, ambiguity handling, and a false-negative caveat. The remaining gap is the absence of any statement on how this differs from the sibling read/search tools for the same document type.

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

Parameters5/5

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

Schema description coverage is 0% and the single 'identifier' param is undocumented in the schema, so the description carries the full burden. It does so well, enumerating prefixed forms (DGT:consultation-number, DYCTEA:registry), bare numbers, partial DYCTEA references, and official criterion URLs/identities.

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 ('Retrieve a specific tax administrative document') and enumerates the accepted identifier forms, which is more precise than the bare name. It does not, however, distinguish itself from the sibling read_administrative_document or search_administrative_documents, leaving the lookup/read boundary ambiguous.

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

Usage Guidelines3/5

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

Usage is implied by the identifier formats (use this when you already hold a consultation number, registry, or criterion URL) and it explains how to resolve ambiguity by selecting a candidate id. It never says when NOT to use it in favor of read_administrative_document or search_administrative_documents, so the sibling routing is left to inference.

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