Skip to main content
Glama
mcp-courtwatch

mcp-courtwatch

by haksanlulz

case_detail

Read-onlyIdempotent

Fetch a full case by cluster ID or retrieve a single opinion as paged text, with optional phrase search and offset controls for reading long documents.

Instructions

Fetch a full case by id: a cluster (the case: name, citations, date, judges, and its opinion ids) or a single opinion (paged text, with optional literal phrase search across the whole document). Requires COURTLISTENER_API_TOKEN (these endpoints are authentication-only). Use the cluster_id from opinion_search results.

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": {
      "id": "<id>"
    },
    "name": "case_detail"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesNumeric cluster id (default) or opinion id.
findNoOpinion only: literal case-insensitive phrase to find at or after offset, including beyond the first page. Returns text beginning at the match and the next match offset.
typeNoWhich resource `id` refers to (default "cluster"). A cluster is the case; an opinion is one document within it.
offsetNoOpinion only: normalized-text character offset, default 0. Use next_offset to continue reading or next_match_offset to find the next phrase.
max_charsNoOpinion only: characters per page (default and maximum 50000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.1.0
    • addedInput schema / properties / find
      Added value: +{
      +  "description": "Opinion only: literal case-insensitive phrase to find at or after offset, including beyond the first page. Returns text beginning at the match and the next match offset.",
      +  "maxLength": 500,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / max_chars
      Added value: +{
      +  "description": "Opinion only: characters per page (default and maximum 50000).",
      +  "maximum": 50000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Opinion only: normalized-text character offset, default 0. Use next_offset to continue reading or next_match_offset to find the next phrase.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description adds context the annotations can't: that these endpoints are authentication-only and need an API token, and that opinion retrieval is paged with optional literal phrase search spanning the whole document — meaningful behavioral detail for a reader.

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?

Three sentences, front-loaded with the core action and the cluster/opinion split, then requirements, then the id source. Dense but every clause carries information; the parenthetical lists are justified by the absence of an output schema.

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 takes on responsibility for describing returns, and it does so at a useful level — cluster fields, opinion ids, paged text. Minor gaps remain (e.g. it doesn't say what happens if the id is unknown or how errors surface), but an agent has enough to call it 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 schema already documents id, type, offset, find, and max_chars thoroughly, making 3 the baseline. The description contributes mainly that `id` is a cluster_id sourced from opinion_search and that `find` is opinion-scoped and crosses page boundaries, but it doesn't extend the offset/max_chars semantics beyond what the schema states.

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?

"Fetch a full case by id" gives a specific verb and resource, then immediately splits the two modes: a cluster (name, citations, date, judges, opinion ids) and a single opinion (paged text with phrase search). That enumeration of returned fields lets an agent tell this apart from opinion_search or case_authorities without opening any 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?

It states the prerequisite explicitly ("Requires COURTLISTENER_API_TOKEN") and routes the agent from a sibling: "Use the cluster_id from opinion_search results." What's missing is any exclusion guidance — e.g. when to prefer opinion_search or a docket tool instead of a direct id fetch — so it stops short of a full when/when-not discussion.

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