Skip to main content
Glama

Search Case Law

search_case_law

Search Spanish court decisions and binding precedents by legal issue, party, ECLI, or case number; filter results by Tribunal Supremo, Constitucional, Audiencia Nacional, or TSJ.

Instructions

Search Spain (ES) court decisions and binding precedents via CENDOJ (Poder Judicial) & Tribunal Constitucional / ECLI Spain and open national judicial archives (Supported courts: Tribunal Supremo, Tribunal Constitucional, Audiencia Nacional, TSJ).

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": {
      "query": "<query>"
    },
    "name": "search_case_law"
  }
}

Input Schema

NameRequiredDescriptionDefault
courtNoOptional court filter (Tribunal Supremo, Tribunal Constitucional, Audiencia Nacional, TSJ).
limitNoMaximum number of judgments to return.
queryYesLegal issue, keywords, party name, or ECLI/case number.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral weight, and it does disclose the data sources and court coverage, which helps an agent judge result provenance. However, it says nothing about pagination, rate limits, authentication, or whether results are full text or metadata snippets — an output schema exists, so return shape needn't be restated, but operational traits remain undisclosed.

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?

It is a single front-loaded sentence leading with the action and jurisdiction, with no filler. The stacked parentheticals of sources and court names make it slightly dense to parse, but every element conveys scope information.

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 three-parameter read-only search with a fully documented schema and an output schema, the description supplies the essential context: jurisdiction, sources, and supported courts. The main gap is sibling differentiation against search_tiered_court_decisions, which leaves some routing ambiguity for an agent.

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%, so the baseline is 3; all three parameters (query, court, limit) are already documented in the schema with defaults and bounds. The description adds no extra meaning about query syntax beyond what the schema says, so it does not exceed the baseline.

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?

The description states a specific verb and resource ("Search Spain (ES) court decisions and binding precedents") and names the underlying sources (CENDOJ/Poder Judicial, Tribunal Constitucional, ECLI Spain) plus supported courts. It is clearly distinguishable from search_legislation by jurisdiction and material type, but it does not differentiate itself from the sibling search_tiered_court_decisions, so it stops short of a 5.

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 is only implied: an agent can infer this is the tool for Spanish case law, but there is no explicit statement of when to prefer it over search_tiered_court_decisions or verify_citation, and no prerequisites or exclusions. The scope hint (Spain only) gives some implicit routing value but not explicit guidance.

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