Skip to main content
Glama

buscar_consultas_dgt

Search official Spanish DGT tax consultations by legal keywords, consultation type, cited regulation, or date range to find binding or general tax doctrine.

Instructions

Busca consultas de la Dirección General de Tributos (buscador oficial PETETE, por internet).

La DGT interpreta los tributos (hechos imponibles, exenciones, deducciones…); casi nunca resuelve cuestiones de procedimiento (plazos de inspección, caducidad, prescripción, sanciones): para eso use buscar_resoluciones_teac o buscar_jurisprudencia. Use 2-4 palabras clave jurídicas, no frases.

Args: consulta: términos de búsqueda (texto libre). SIN datos del cliente. tipo: «vinculantes» (por defecto), «generales» o «ambas». normativa: opcional, filtra por norma citada, p. ej. «Ley 37/1992» o «Ley 58/2003 art. 66». desde, hasta: opcional, fechas de salida AAAA-MM-DD. max_resultados: 1-20.

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": {
      "consulta": "<consulta>"
    },
    "name": "buscar_consultas_dgt"
  }
}

Input Schema

NameRequiredDescriptionDefault
tipoNovinculantes
desdeNo
hastaNo
consultaYes
normativaNo
max_resultadosNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.6/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden; it discloses the privacy constraint ("SIN datos del cliente" in the query), the keyword-not-phrase query behavior, the default tipo, and the 1-20 result range. It does not mention rate limits, latency, or what happens on zero results, which is a moderate but not serious gap. No claim contradicts structured fields.

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?

Front-loads purpose, then exclusions, then query advice, then a structured Args block — an efficient ordering for a 6-parameter tool. Minor waste remains ("buscador oficial PETETE, por internet" adds little), but nothing materially distracting.

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 six-parameter search tool with no annotations, the description covers purpose, alternatives, query strategy, and every parameter; an output schema exists so return values need not be explained. It omits only secondary operational details such as source reliability or behavior on empty results.

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 there are 6 parameters, yet the description documents every one: consulta (free text, no client data), tipo with default and three enumerated values, normativa with concrete examples ("Ley 37/1992", "Ley 58/2003 art. 66"), desde/hasta with AAAA-MM-DD format, and max_resultados with its 1-20 bound. This fully compensates for the empty schema.

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?

Specific verb+resource ("Busca consultas de la Dirección General de Tributos") plus a scope statement of what DGT actually covers (hechos imponibles, exenciones, deducciones) and the sibling tools it is not. An agent can distinguish it from buscar_resoluciones_teac and buscar_jurisprudencia without opening any schema.

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?

Gives an explicit when-not rule (procedural matters — plazos de inspección, caducidad, prescripción, sanciones — go to buscar_resoluciones_teac or buscar_jurisprudencia) and operational guidance on query construction (2-4 palabras clave, no frases). Both exclusion and usage pattern are stated, not inferred.

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