Skip to main content
Glama

Boe Search Law

boe_search_law
Read-onlyIdempotent

Search Spain's consolidated legislation (Legislación Consolidada) by words in the title, e.g. "Código Civil", "ley de propiedad horizontal". Returns matching laws/decrees with their BOE id, rank (ley/real decreto/...), issuing department, dates, and the official BOE page URL for each. Source: Agencia Estatal Boletín Oficial del Estado (BOE), Legislación Consolidada open-data API. Pass the returned id to boe_law for the full record or one article's text.

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": {
      "limit": 5,
      "query": "Código Civil"
    },
    "name": "boe_search_law"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results, 1-50 (default 20).
queryYesWords to match in the title, e.g. "Código Civil".
ambitoNoOptional: "estatal" (national) or "autonomico" (regional) to restrict scope.
offsetNoPagination offset (default 0), the upstream does not report a total match count.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / offset / description
      Previous value: -"Pagination offset (default 0) — the upstream does not report a total match count."New value: +"Pagination offset (default 0), the upstream does not report a total match count."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, open-world, non-destructive, so the safety profile is covered; the description adds the result shape and the authoritative source (BOE Legislación Consolidada open-data API). It does note the upstream's lack of a total-match count only via the schema, and no rate-limit or pagination-behavior detail is given beyond that.

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?

Three tight sentences, purpose and examples front-loaded, chaining advice last. The source attribution sentence is slightly expendable but still informative about provenance and reliability.

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?

With no output schema, the description compensates by listing the returned fields, and annotations cover the safety profile. For a four-parameter read tool it is nearly complete; only pagination/limit behavior and the total-count caveat are left entirely to the schema.

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, but the description adds real meaning: the query is a title-word match rather than free-text body search, and the returned id is the chaining key into boe_law. Example query strings illustrate expected input form beyond the schema's single example.

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 plus resource: searches Spain's consolidated legislation by title words, with concrete example queries ("Código Civil", "ley de propiedad horizontal"). It also enumerates the return payload (BOE id, rank, department, dates, URL), so the agent knows exactly what this tool yields versus the sibling boe_law.

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 establishes the retrieval mode — matching words in the title — and routes the agent forward: "Pass the returned id to boe_law for the full record or one article's text." It stops short of stating exclusions (e.g., that this is not a full-text/body search, or when to prefer boe_daily_summary), so it is clear context without explicit when-not guidance.

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.