Skip to main content
Glama

search_law_articles

Search a Spanish law for articles containing specific text, returning only matching articles and relevant excerpts instead of the whole law.

Instructions

Busca artículos concretos dentro de una norma que contengan un texto dado, sin necesidad de devolver la norma entera. Devuelve únicamente los artículos que coinciden, con un fragmento del texto relevante.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNúmero máximo de artículos a devolver
queryYesTexto a buscar dentro de los artículos
law_idYesIdentificador único de la norma
search_inNoDónde buscar: solo en el título del artículo, solo en el texto, o en ambosambos
Behavior3/5

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

With no annotations, the description carries the burden. It discloses the return behavior (only matching articles with a relevant fragment) but does not explicitly state that the operation is read-only or mention any side effects. It adds some behavioral detail but not exhaustive transparency.

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?

The description is exactly two sentences, front-loaded with the primary purpose and immediately clarifying the output scope. No filler, every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Although the description gives a basic idea of the return value (matching articles with a fragment), it lacks detail on the exact response format (e.g., fields, ordering, or how the fragment is chosen). Since there is no output schema, the description should compensate but only partially does.

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 description coverage is 100%, and the tool description adds no extra meaning for parameters like law_id, query, limit, or search_in. It stays at the baseline expected when structured data already documents all parameters.

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 action: searching for articles within a law that contain a given text, and explicitly contrasts with returning the entire law. It distinguishes itself from sibling tools like get_law_structure or paginate_law_text by focusing on text-based article search and filtered output.

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?

The description implies a clear use case: when an agent needs to find specific articles containing a text without fetching the whole law. It does not explicitly name alternatives or exclusions, but the context is unmistakable.

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