Skip to main content
Glama

Court cases, citations, judges and dockets, AgentNative data exchange

Court cases: search, precedent, decisions

query_court_cases
Read-onlyIdempotent

US Supreme Court and federal appellate cases (CourtListener bulk data) and Caribbean Court of Justice documents: keyword search with snippets, citation graph (cited by, cites, shortest path, counts by year), stated dispositions and time to decision, judges, docket activity. Counts and the court's own words only, never good or bad law. Free: case, ccj, yearly activity, 5-result keyword search. The rest is a query fee. Ops: search {q, court_id, year_from, year_to, sort}, case {case}, cites {case, direction}, most_cited {q, court_id, cited_year_from}, path {from, to}, decisions {group_by, court_id}, judge {name}, activity {court_id}, related {case}, ccj {group_by, country}. GET /v1/courts lists every parameter of every op.

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": {
      "op": "<op>"
    },
    "name": "query_court_cases"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNo
opYes
topNo
caseNocluster id or citation such as 410 U.S. 113
court_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: data provenance (CourtListener bulk data), a cost model (free for case, ccj, yearly activity and 5-result keyword search; query fee for the rest), and the crucial output caveat that results are counts and the court's own words, never an assessment of good or bad law. That last point materially shapes how an agent should report results and is unavailable anywhere in the structured fields.

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 resource and scope, then the op/parameter map, then the cost and output caveats — a sensible ordering with no filler sentences. The prose is telegraphic and slightly run-on ('Free: case, ccj, yearly activity, 5-result keyword search.'), but each fragment carries information an agent needs.

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 ten-operation tool with no output schema and 20% schema coverage, the description supplies data source, per-op parameters, cost tiers and a behavioral caveat on results, which is close to what an agent needs to select and invoke correctly. The gaps are return-shape/pagination expectations and enumerable values for court_id, direction and group_by, mitigated but not closed by the pointer to GET /v1/courts.

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

Parameters4/5

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

Schema coverage is only 20% (only `case` is documented), but the description compensates unusually well by mapping each op to its parameters — search {q, court_id, year_from, year_to, sort}, cites {case, direction}, path {from, to}, decisions {group_by, court_id}, ccj {group_by, country} — including parameters absent from the visible schema, which `additionalProperties: true` permits. It loses a point because value semantics (valid court_id values, allowed direction/sort/group_by values) are only deferred to GET /v1/courts, and `top` is never explained.

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?

Names a specific verb plus resource and scope: US Supreme Court and federal appellate cases from CourtListener bulk data, plus Caribbean Court of Justice documents, with keyword search, citation graph, dispositions, judges and docket activity enumerated. An agent can tell this is the case-law query tool and not one of the dataset siblings (query_any_dataset, aggregate_imported_dataset) 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 Guidelines4/5

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

The op list effectively maps intent to operation (keyword search, cited-by/cites, shortest path, dispositions, judge, docket activity), and the free-versus-fee breakdown tells the agent which calls are unconditionally cheap, which is real routing guidance. It stops short of explicit when-not-to-use guidance or naming a sibling alternative, so it is not a 5.

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