Skip to main content
Glama

get_law_metadata

Retrieve law metadata (range, date, organ, status, links) from BOE without loading the full text. Ideal when only descriptive information is required.

Instructions

Obtiene únicamente los metadatos de una norma (rango, fecha, órgano, estado, enlaces) sin cargar el texto completo. Más rápido que get_consolidated_law cuando solo se necesita información descriptiva.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
law_idYesIdentificador único de la norma (ej: 'BOE-A-2015-10566')
Behavior4/5

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

With no annotations, the description carries the burden. It discloses a key behavioral trait: it does not load the full text, and it is faster than get_consolidated_law. This adds meaningful context beyond the name, though it does not cover error conditions or authorization requirements.

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?

Two succinct sentences, front-loaded with the primary purpose and immediately followed by the usage context. Every word earns its place; no redundancy.

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?

The tool is simple (one parameter, no output schema), and the description covers purpose, scope, and performance characteristics. It could mention return format in more detail, but the listed metadata fields and explicit exclusion of full text provide adequate context for selection and invocation.

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?

The schema already describes the sole parameter law_id with a pattern and example (100% coverage). The description adds no new semantics about the parameter, so the baseline of 3 is appropriate.

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?

The description clearly states a specific verb ('Obtiene') and resource ('los metadatos de una norma'), enumerating the exact metadata fields. It explicitly contrasts with the sibling tool get_consolidated_law, making the scope unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says when to use this tool: 'cuando solo se necesita información descriptiva' (when only descriptive info is needed), and implicitly when not to use it (when full text is required). It names the alternative (get_consolidated_law) and highlights the speed advantage.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ComputingVictor/MCP-BOE'

If you have feedback or need assistance with the MCP directory API, please join our Discord server