Skip to main content
Glama

US court opinions by keyword: case name, court and citation

gov_justia_case_law
Read-only

US court opinions (federal and state case law) by keyword: case name, court and citation string, docket number, date filed and argued, citations (official, neutral), how many later opinions cite it, publication status, judges, a text snippet and the opinion URL; plus the number of matches. Filter by court (e.g. scotus, ca9, cal, ny) and filing-date range; sort by relevance, newest, oldest or most cited. Use the returned next cursor for more. Takes about 20 s; allow a 30 s timeout. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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": {
      "q": "<q>"
    },
    "name": "gov_justia_case_law"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesSearch words; quotes for phrases, e.g. "qualified immunity" (required)
courtNoOptional CourtListener court IDs, space-separated, e.g. scotus, ca9, cal
orderNorelevance (default), newest, oldest or cited
cursorNoCursor from a previous answer's next field
filedAfterNoOptional earliest filing date YYYY-MM-DD
filedBeforeNoOptional latest filing date YYYY-MM-DD

Output Schema

NameRequiredDescriptionDefault
qNo
nextNo
casesNo
countNo
courtNo
orderNo
totalNo
sourceNo
checkedAtNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only say read-only and open-world, but the description adds latency (~20 s, allow a 30 s timeout), a pay-per-call model ($0.002 per successful call via x402 USDC on Base/Solana and other networks), and that failed calls are not charged. It also discloses pagination via cursor, which an agent needs to plan multi-page retrieval.

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-loads the resource and returned fields, then filtering/sorting, then pagination, latency and pricing, so the scan order is sensible. The long comma-separated field list is dense and partly redundant with the output schema, costing some tightness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Even though an output schema exists, the description still signals the shape of results and match counts; combined with explicit latency, timeout, payment and pagination behavior, an agent has everything needed to call and budget the tool correctly.

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 coverage is 100%, so the six parameters are already documented structurally; the description mostly restates them (court examples, sort options, date range). It does misalign slightly by saying 'most cited' where the schema value is 'cited', but otherwise adds no syntax or format detail beyond the schema baseline of 3.

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+resource (US federal and state court opinions by keyword) and enumerates the distinguishing fields returned: case name, court, citation, docket number, dates, citation counts, publication status, judges, snippet, URL, plus match count. An agent can tell this is a keyword case-law search rather than a docket lookup or aggregator 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?

Explains the usable dimensions (filter by court IDs such as scotus/ca9/cal/ny, filing-date range, sort by relevance/newest/oldest/most cited) and tells the agent to reuse the returned next cursor for more results. It does not explicitly say when to prefer this over a sibling like gov_caselaw_access or gov_findlaw, so the routing guidance is incomplete but the operational context is clear.

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