Skip to main content
Glama

¿Cómo va España?

Ficha de una ley

consultar_ley
Read-onlyIdempotent

La ficha de una ley estatal: título, rango, fechas de aprobación y de entrada en vigor, si sigue vigente, con qué Gobierno se aprobó, qué leyes deroga o modifica, sus materias, el enlace al texto oficial del BOE y, cuando la web la tiene, una explicación en llano de qué cambia y a quién afecta. Úsalo después de buscar_leyes o directamente con «Ley 12/2023» o un identificador del BOE.

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>"
    },
    "name": "consultar_ley"
  }
}

Input Schema

NameRequiredDescriptionDefault
leyYesEl identificador del BOE («BOE-A-2023-12203»), el rango y el número («Ley Orgánica 3/2018», «Real Decreto-ley 44/2026») o palabras del título.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuine behavioral context beyond that: the returned fields and the conditional caveat that the plain-language explanation only appears 'cuando la web la tiene', which warns the agent some fields may be absent.

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 the opening clause, followed by a compact enumeration of returned fields and a short usage sentence. The field list is long but each item carries real information about the record; only the mild redundancy with the schema's input examples costs it a point.

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?

There is no output schema, so the description carries the burden of describing return contents, and it does so thoroughly (vigencia, gobierno, derogaciones, materias, enlace BOE, explicación en llano). For a single-parameter read tool, nothing an agent needs to call it correctly is missing.

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

Parameters3/5

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

Schema coverage is 100% and the single `ley` parameter already documents the BOE identifier, rank+number and title-words forms. The description repeats the same accepted forms ('Ley 12/2023', identificador del BOE) without adding format, normalization or resolution behavior beyond the schema, so baseline 3 applies.

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 ('La ficha de una ley estatal') and then enumerates the exact contents: título, rango, fechas, vigencia, Gobierno, derogaciones, materias, enlace al BOE. This clearly separates it from the sibling `buscar_leyes`, which searches rather than returns a full record.

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?

Explicitly routes the agent: 'Úsalo después de `buscar_leyes` o directamente con «Ley 12/2023» o un identificador del BOE', naming the sibling and the accepted direct-input path. There is no statement of when not to use it, but the workflow guidance is clear and actionable.

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