Skip to main content
Glama

obtener_articulo

Fetches the exact text, citation, and drafting history of a Spanish tax law article by law and article number, optionally for a specific date or section.

Instructions

Devuelve el texto exacto de un artículo o disposición, con su cita y su historial de redacciones.

Args: ley: alias (LGT, RGAT, LIVA…) o número oficial («58/2003»). articulo: «150», «95 bis», «art. 29», «DA 1ª», «disposición transitoria segunda», o el «id» que devuelve buscar_normativa (útil en el PGC, cuyas normas no son artículos). fecha: opcional, AAAA-MM-DD. Redacción vigente en esa fecha (clave para ejercicios ya cerrados). Si se omite, la redacción actual. apartado: opcional, solo ese apartado («6», «Dos»). Úselo en artículos largos para ahorrar contexto.

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": {
      "ley": "<ley>",
      "articulo": "<articulo>"
    },
    "name": "obtener_articulo"
  }
}

Input Schema

NameRequiredDescriptionDefault
leyYes
fechaNo
apartadoNo
articuloYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.5/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 and does disclose meaningful behavior: output includes the citation and a drafting-history trail, fecha defaults to the currently in-force redaction, and the id pathway for non-article norms. It does not address failure modes (article not found, invalid alias) or any auth/rate considerations, which is the remaining gap for a tool with zero annotation coverage.

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 a single summary sentence, then a compact Args block that maps one line per parameter. Every line carries information, though the repeated «opcional» markers and indentation are slightly heavier than needed; nothing is wasted but it could be trimmed marginally.

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

Completeness5/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 not be explained, and the description still notes that citation and drafting history come back. All four parameters are documented despite 0% schema coverage, and the temporal-versioning semantics — the tool's most subtle behavior — are stated explicitly.

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%, so the description must compensate, and it does: it lists accepted ley formats (aliases like LGT, RGAT, LIVA or official numbers like «58/2003»), enumerates articulo shapes («150», «95 bis», «art. 29», «DA 1ª», «disposición transitoria segunda», or an id), specifies fecha as AAAA-MM-DD with its default, and explains what apartado selects with examples.

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?

Opens with a specific verb and resource: returns the exact text of an article or disposición, plus its citation and drafting history. The scope is narrow and granular (single article, optionally a single apartado), which implicitly separates it from whole-document siblings like obtener_documento, and it explicitly names buscar_normativa as the source of ids for non-article norms such as the PGC.

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 clear situational guidance: use fecha for already-closed fiscal years, and use apartado on long articles to save context. It also explains the PGC edge case where norms are not articles and the id from buscar_normativa should be used. It stops short of stating when to prefer a sibling tool (e.g., when the whole law is needed), so no explicit exclusions.

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