Skip to main content
Glama
mcp-courtwatch

mcp-courtwatch

by haksanlulz

docket_lookup

Read-onlyIdempotent

Search CourtListener court dockets by case name, free text, or docket number, optionally scoped to a court, and return case details and links.

Instructions

Search court dockets (CourtListener type=r) by case name, free text, and/or docket number, optionally scoped to a court. Returns case name, court, docket number, filed/terminated dates, nature of suit, and a link. Needs COURTLISTENER_API_TOKEN: CourtListener refuses anonymous requests (HTTP 401 since 2026-11-28), so without one this tool stops before sending anything.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "docket_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoCase name or free-text query (e.g. an employer or agency name).
courtNoOptional court id filter (e.g. "nysd"). Get ids from court_list.
limitNoMax results from this page (1-20, default 20). The /search/ endpoint returns one fixed page of ~20; to get more, pass the response's next_cursor back as cursor.
cursorNoOpaque pagination cursor from a previous response's next_cursor; fetches the next page (keep the other args the same).
docket_numberNoDocket number to match (e.g. "1:20-cv-03590").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world, so the safety profile is covered. The description adds genuinely valuable behavior beyond that: it enumerates the returned fields and, most importantly, discloses the COURTLISTENER_API_TOKEN requirement and the fact that the tool fails before issuing any request (401 since 2026-11-28), which prevents blind retries. It does not mention rate limits or result ordering, keeping it below a 5.

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?

The description is front-loaded with the operation and scope, then returns, then the auth caveat — a sensible order with no filler. The auth sentence is long but each clause (token required, anonymous rejected, fails before sending) carries distinct operational value, so nothing is clearly wasteful.

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?

With no output schema, the description correctly fills that gap by listing returned fields, and it covers the blocking auth prerequisite that would otherwise cause confusing failures. The one gap is that all five parameters are optional, yet the description never says whether a zero-argument call is legal or what happens to result volume/ordering, which matters for a search tool an agent may call cold.

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; the schema already documents q, court, limit, cursor, and docket_number with examples and explains the ~20-result fixed-page pagination model. The description only restates which fields are searchable and adds no semantics (matching behavior, boolean/quoting syntax, or partial docket-number matching) beyond the schema.

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 opens with a specific verb and resource ("Search court dockets") and narrows scope precisely with the CourtListener type=r qualifier plus the three query modes (case name, free text, docket number) and optional court scoping. It stops short of explicitly distinguishing itself from siblings like docket_entries, case_detail, or opinion_search, so an agent must infer that this is the search-level tool rather than the detail or retrieval tool.

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 implied by the query modes and the optional court scoping, and the schema points at court_list for court ids. However, there is no explicit when-to-use vs. alternative guidance, no statement of when this tool is the wrong choice (e.g., when you already have a docket id and should use docket_entries or case_detail), and no guidance on which of q or docket_number to prefer.

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