Skip to main content
Glama

Boe Law

boe_law
Read-onlyIdempotent

Get one Spanish consolidated law by its BOE id (from boe_search_law, e.g. "BOE-A-1889-4763" = Código Civil). Without "article": returns metadata (rank, department, dates, consolidation status), subject tags, notes, and a table of contents of its articles/sections ("bloques"), capped and marked truncated for large codes. With "article" (a block id from that table of contents, e.g. "a1" for Artículo 1): returns the actual text of that one article across every historical version, each dated, with the current one flagged. Unknown id or article is refused with found:false, never an empty success. Source: Agencia Estatal Boletín Oficial del Estado (BOE), Legislación Consolidada open-data API.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "BOE-A-1889-4763",
      "article": "a1"
    },
    "name": "boe_law"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesBOE identifier, e.g. "BOE-A-1889-4763".
articleNoOptional block id from the law's table of contents, e.g. "a1" (Artículo 1), "preambulo".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive semantics, and the description adds genuinely useful behavior: TOC output is capped and marked truncated for large codes, unknown ids are refused with found:false rather than an empty success, and each historical version is dated with the current one flagged. The only minor gap is not naming the cap size or the refusal payload shape beyond found:false.

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-loaded with the core purpose and id format, then the two modes, then guarantees, then source. Dense but every clause carries information; slightly heavy on nested parentheticals and examples, which 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?

No output schema exists, so return values must be described — and they are, for both modes, including metadata fields, TOC truncation, historical versions, and the failure case. Nothing an agent needs to call this correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, and the description earns more by explaining that "article" must be a block id taken from the table of contents returned in the no-article mode, with a concrete example ("a1" = Artículo 1). This tells the agent how to chain the two modes, which the schema alone does not.

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 and resource ("Get one Spanish consolidated law by its BOE id") and instantly distinguishes itself from the search sibling by pointing to boe_search_law as the source of ids. An agent knows exactly what this returns versus a search tool.

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?

Clearly splits the two usage modes: omit "article" for metadata plus table of contents, include it for full article text with history. It also tells the agent where to obtain the required id, though it does not explicitly state when NOT to use this tool (e.g., searching by title).

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.