Skip to main content
Glama

buscar_jurisprudencia

Searches Spanish court judgments in CENDOJ by keywords, court body, jurisdiction, and date range, returning up to 50 matching rulings for legal research.

Instructions

Busca sentencias en el CENDOJ (Poder Judicial, por internet). La materia tributaria está en la Sala 3ª (contencioso) del TS, Sección 2ª; los delitos contra la Hacienda Pública, en la Sala 2ª (penal).

Args: consulta: palabras clave jurídicas, SIN datos del cliente. organo: «TS», «AN», «TSJ» o «TSJ » (p. ej. «TSJ Madrid»). jurisdiccion: «contencioso», «penal», «civil» o «social». desde, hasta: opcional, fechas de la sentencia AAAA-MM-DD. max_resultados: 1-50.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "consulta": "<consulta>"
    },
    "name": "buscar_jurisprudencia"
  }
}

Input Schema

NameRequiredDescriptionDefault
desdeNo
hastaNo
organoNoTS
consultaYes
jurisdiccionNocontencioso
max_resultadosNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden and it does add one real behavioral fact: the search happens "por internet" against CENDOJ, signalling an external network dependency and possible latency. It says nothing about rate limits, failure modes, result ordering, or pagination, which is a meaningful gap for a scraped external source. The presence of an output schema removes the need to describe return values, which keeps this from dropping lower.

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?

Front-loaded with the purpose, then a compact Args block with one line per parameter; almost no wasted wording and the privacy warning sits next to the parameter it governs. The colon-style prose formatting of the Args block is slightly dense but still scannable.

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?

For a six-parameter tool with an output schema and zero annotation coverage, the description supplies allowed values, date format, result cap, and a privacy constraint, which is close to sufficient. The remaining omission is practical context about how results are paginated or ranked and how this differs from fetching a single sentencia.

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

Parameters5/5

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

Schema description coverage is 0%, yet the description documents every one of the six parameters: consulta (legal keywords, explicitly WITHOUT client data), organo with concrete examples including the parameterised "TSJ <comunidad>", jurisdiccion with all four admissible values, desde/hasta with the AAAA-MM-DD format and optional status, and max_resultados with its 1-50 range. The allowed-value lists and range constraint exist nowhere in the schema, so this is genuine compensation rather than repetition.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Busca sentencias en el CENDOJ") and adds a scope note mapping tax matters to Sala 3ª contencioso and Hacienda Pública offences to Sala 2ª penal, which lets an agent distinguish this from normativa/DGT/consultas siblings by resource type. It stops short of distinguishing itself from obtener_sentencia (search vs. retrieve one document), so an agent still has to infer that boundary.

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?

Usage guidance is implicit rather than explicit: there is no statement of when to prefer this over buscar_normativa or obtener_sentencia. What it does give is substantive routing advice (which Sala and jurisdiccion handles which subject matter), which helps invocation but is parameter-level guidance rather than tool-selection guidance.

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