Skip to main content
Glama
Vaquill-AI/vaquill-mcp

Vaquill-AI/vaquill-mcp

Official
by Vaquill-AI

Search US Case Law

search_us_cases
Read-only

Searches full-text opinions from US federal and state courts by keyword or phrase, returning ranked cases with matching snippets; filter by court, state, date, judge, and publication status.

Instructions

Full-text keyword search over the opinions of US federal and state courts, best match first: one result per case, with the opinion that matched and a snippet. Use to find decisions by topic, phrase, party or judge. Narrow with courtIds (ids from list_us_courts), state, dateFrom/dateTo, publicationStatus, judgeId. For a known citation use resolve_case_citations; for statutes use search_us_statutes. Page with limit and offset while hasMore; an empty page is 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": {
      "query": "<query>"
    },
    "name": "search_us_cases"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo`relevance` (default), `decision_date` (newest first), `decision_date_asc` or `cited_by`. The last three reorder the best matches, not every match, so narrow the query when order matters.relevance
limitNo
queryYesWords, or a quoted phrase, matched against opinion text. Keyword matching, not meaning: use the opinion's own vocabulary (`qualified immunity`, not `police cannot be sued`).
stateNoTwo-letter state or territory code: only that state's courts. Case-insensitive (`CA` and `ca` both work); an unknown code is a 422.
dateToNoLatest decision date, YYYY-MM-DD. Optional.
offsetNo
judgeIdNoCases this judge sat on or wrote an opinion in.
caseNameNoOnly cases whose title contains this text, any letter case. At least 3 characters.
courtIdsNoOnly these courts. Combined with `state` as an intersection.
dateFromNoEarliest decision date, YYYY-MM-DD. Optional.
passagesNoHow many passages of the best matching opinion each hit carries, 1 to 3 (about 500 characters each, best first). The price does not change.
courtLevelNoOnly courts of this level. Combined with `courtIds`, `state` and `courtSystem` as an intersection.
minCitedByNoOnly cases cited by at least this many other cases. Applied to the first 5,000 matching opinions in the chosen order (by relevance for `cited_by`), not to every match: a highly cited case that ranks lower for the query is missed, so narrow the query when the filter must be complete.
courtSystemNoOnly courts of this system. Combined with `courtIds`, `state` and `courtLevel` as an intersection.
docketNumberNoOnly cases whose docket number contains this text, any letter case. At least 3 characters.
Idempotency-KeyNoOptional, 16 to 255 visible ASCII characters (a UUIDv4 is ideal). A retry with the same key and request replays the original 2xx for 24 hours without charging again; the same key with a different request is rejected.
publicationStatusNoOnly decisions with one of these publication statuses; omit for all. A result's `publicationStatus` says which one it has.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.1

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered; the description adds non-obvious behavior beyond that: relevance-first ordering, one-hit-per-case deduplication, inclusion of the matching opinion and snippet, and the fact that an empty page is still charged. It does not mention the idempotency/retry semantics or covered-result caveats, but those live in the schema, so the gap is small.

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

Conciseness5/5

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

Four front-loaded sentences: what it searches, how to use it, which filters narrow it, which siblings to prefer, and how to page. No restatement of the title and no filler; every clause carries a decision the agent needs.

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?

For a 17-parameter search tool with an output schema and annotations in place, the description covers the remaining burden: query semantics, routing to alternatives, filter entry points, and pagination/cost. Nothing an agent needs in order to call it correctly is missing.

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 88%, so the baseline is 3, but the description adds meaning beyond it by grouping the narrowing filters and pointing to list_us_courts as the source of courtIds values, and by tying limit/offset to the hasMore flag. It does not explain sort modes or minCitedBy truncation, which the schema already handles well.

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 ('full-text keyword search over the opinions of US federal and state courts') and pins the result shape (one result per case, best match first, with the matched opinion and snippet). It explicitly distinguishes itself from resolve_case_citations and search_us_statutes, so an agent can route without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives positive usage ('find decisions by topic, phrase, party or judge'), names two alternatives with the condition that selects them (known citation, statutes), and lists the narrowing filters with a cross-reference to list_us_courts for court ids. Paging guidance ('limit and offset while hasMore') plus the cost warning closes the loop.

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