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.

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. 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 readOnlyHint, idempotentHint, openWorldHint and non-destructive behavior, so the safety profile is covered. The description adds genuine value by enumerating the returned fields (BOE id, rank, department, dates, official URL) and naming the upstream data source.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences: what it searches, what it returns, and where to go next. The purpose is front-loaded and nothing is wasted.

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?

No output schema exists, but the description compensates by listing the returned fields and the source API. Pagination is handled in the schema (offset, limit, no total count), so the description does not need to repeat it; only minor context like ranking semantics 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 each parameter already carries its own description including the example and default values. The description's mention of title-word matching largely restates the query parameter rather than adding new semantics, so the 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 (search), resource (Spain's consolidated legislation) and scope (by words in the title). It also implicitly distinguishes itself from the sibling boe_law, which retrieves the full record by id, so an agent can pick between them without opening schemas.

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 says to pass the returned id to boe_law for a full record or article text, which is a clear handoff condition. The title-only matching constraint is stated but never framed as an explicit 'use a different tool if you need full-text search' exclusion.

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.