Skip to main content
Glama

Search laws and court rulings

search_legal
Read-onlyIdempotent

Full-text search (Spanish) of laws, decrees, regulations and court rulings from official sources in Costa Rica, El Salvador, Dominican Republic, Nicaragua and Belize, plus every decree (law) of the Congress of Guatemala, with excerpts, the official URL and an archived copy of the original document.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qYesWords to search, e.g. "contratación pública" or "impuesto municipal".
toNo
fromNo
kindNo
limitNo
topicNoe.g. tributario, laboral, ambiental, energía, salud, penal, constitucional
countryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description adds real value by disclosing the Spanish-only full-text constraint and the response contents (excerpts, official source URL, archived copy of the original), which matters since no output schema exists.

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?

A single front-loaded sentence that leads with the verb and language constraint, then the scope. It is somewhat run-on in the country enumeration, but nearly every clause adds usable information.

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?

For a 7-parameter, output-schema-less search tool the description adequately covers domain, language, geography and return payload, but omits date-range semantics, the 50-result cap, and the kind filter's meaning. Adequate but with clear gaps against the schema's undocumented surface.

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

Parameters2/5

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

Schema coverage is only 29% (just q and topic are documented), so the description carries the burden for kind, country, from, to and limit. It never mentions date filters, the limit cap, or the enum values explicitly, only loosely implying country and document-type scoping via the coverage list. That leaves most parameters undocumented in both places.

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 ('Full-text search') plus a precise resource set (laws, decrees, regulations, court rulings) and enumerates the covered jurisdictions. An agent can distinguish it from siblings like search_bills or search_news without opening the schema.

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

Usage Guidelines3/5

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

Coverage constraints (Spanish-language full text; Costa Rica, El Salvador, Dominican Republic, Nicaragua, Belize, plus Guatemala Congress decrees) imply when the tool applies, but there is no explicit when-to-use/when-not and no named alternative such as search_bills. Usage is inferable but not spelled out.

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.

Resources