Skip to main content
Glama

buscar_normativa

Search articles in consolidated Spanish tax legislation offline by keywords, law, and validity date, returning up to 20 matching provisions.

Instructions

Busca artículos en la normativa tributaria consolidada del BOE (búsqueda local, sin internet).

Args: consulta: palabras clave en español, p. ej. «plazo duración actuaciones inspectoras» o «prorrata deducción subvenciones». Mejor términos jurídicos que frases largas. ley: opcional, alias de la norma (LGT, RGAT, LIVA, RIVA, LIRPF, LIS, RGRST, …) o su número («37/1992»). fecha: opcional, AAAA-MM-DD. Devuelve la redacción vigente en esa fecha (por defecto, hoy). max_resultados: número de artículos a devolver (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_normativa"
  }
}

Input Schema

NameRequiredDescriptionDefault
leyNo
fechaNo
consultaYes
max_resultadosNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden but does well: it discloses that the search is local/offline, that results reflect the regulation in force at the given date (defaulting to today), and that max_resultados is bounded 1-20. It does not cover permissions or error behavior, but for a read-only search tool this is solid context.

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?

Purpose is front-loaded in one line, followed by a compact Args block where each entry is short and earns its place. The only minor weakness is the slightly list-like formatting rather than flowing prose, but nothing is wasteful.

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?

An output schema exists, so return values need no explanation, and every input parameter is described with defaults and formats. The main remaining gap is guidance on alternatives among the many sibling search/calculator tools, which would complete the picture.

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 coverage is 0%, yet the description documents all four parameters: consulta format with concrete Spanish examples and phrasing advice, ley accepted as alias or number with examples, fecha format AAAA-MM-DD and its 'in force at that date' semantics with today as default, and max_resultados range. This fully compensates for the empty schema descriptions.

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?

States a specific verb+resource: searches articles within BOE consolidated tax regulation, and adds the distinguishing trait 'búsqueda local, sin internet'. This clearly separates it from siblings like buscar_jurisprudencia, listar_normas, and obtener_articulo.

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?

The description advises using legal terms rather than long phrases, which is genuine usage guidance for the query parameter. However, it never states when to choose this tool over siblings (e.g. listar_normas or obtener_articulo), so the when-to-use context is only implied.

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