Skip to main content
Glama

Buscar resoluciones

search_decisions
Read-onlyIdempotent

Search Spanish and EU court judgments by legal issue, terms, body, date or source. Filter countries with ES, EU or both. Optional source_groups accepts only boe_tc, cendoj, tc_hj, curia; omit it to search all judicial sources. The judicial corpus excludes DYCTEA and PETETE. Returns matching decisions with identifiers, metadata, official links, and indexed excerpts. Free-text query defaults to natural hybrid thematic retrieval, requiring vectors and limited to a window of up to 50 decisions. Select search_mode=strict explicitly for textual operators and phrases. query_intent implies strict when search_mode is omitted; do not combine query_intent with explicit natural. The original free-text query is preserved; retrieval does not establish legal interpretation or exhaustive coverage. query_intent supports required, alternative, phrase and excluded terms.

Input Schema

NameRequiredDescriptionDefault
pageNo
courtNo
queryNo
date_toNo
per_pageNo
countriesNo
date_fromNo
search_modeNoFree-text query defaults to natural hybrid exploratory retrieval, requiring vectors and using up to 50 decisions. Select strict explicitly for textual operators and phrases. If query_intent is supplied without search_mode, strict is implied; explicit natural with query_intent is invalid. The original query is preserved; retrieval does not establish legal interpretation or exhaustive coverage.natural
query_intentNo
source_groupsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/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 the description is not carrying the safety burden. It still adds real behavior: the judicial corpus excludes DYCTEA and PETETE, natural mode depends on vectors and is capped at a 50-decision window, the original query is preserved, and results do not constitute legal interpretation or exhaustive coverage.

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

Conciseness3/5

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

Front-loaded and information-dense, with the core scope in the first sentence. It loses points for the search_mode paragraph being repeated almost verbatim in the schema description, and for the legal-disclaimer sentences ('retrieval does not establish legal interpretation or exhaustive coverage') which pad rather than guide invocation.

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?

Covers the hard parts of a 10-parameter search tool: corpus boundaries, mode selection rules, filter semantics, and an explicit statement of the return payload (identifiers, metadata, official links, indexed excerpts), which compensates for the absent output schema. Pagination behavior for page/per_page is the notable omission.

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 only 10% across 10 parameters, so the description must compensate and does so for countries, source_groups (with its exact enum values and the omit-for-all default), search_mode, and the query_intent keys (required, alternative, phrase, excluded). However, page, per_page, court, date_from/date_to and the query string itself get no syntactic or format guidance, leaving half the surface undocumented in either place.

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 and resource ('Search Spanish and EU court judgments') plus the facets it searches over (legal issue, terms, body, date, source). This clearly separates it from siblings such as search_administrative_documents, search_evidence, and lookup_decision, which operate on different corpora.

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?

Gives concrete selection rules: filter countries with ES, EU or both; omit source_groups to search all judicial sources; pick search_mode=strict only when textual operators or phrases are needed; and never combine query_intent with an explicit natural mode. What is missing is routing to sibling tools — it never says when to prefer answer_with_sources or lookup_decision over this search.

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