Skip to main content
Glama

CaseMagic — Federal Court Case Lookup & Monitor

Get the full text of a docket entry

get_docket_entry
Read-onlyIdempotent

Return one docket entry in full — its number, filing date, the exact text the court published, whether a document is attached and a link to it — together with the entries around it and the posture of the case. It returns the court's own words and the surrounding facts, so that you can tell the user what the filing is and what it means in context; it writes no explanation of its own and does not give legal advice. Use this when a user asks what the latest filing means, what an order says, or about a specific docket entry. Identify the case with case_number (and court, if known), or with matter_id for a case already saved to the account. No account is needed to give a case number. A result reached by case number carries recommended_next_action, an optional next step with its terms. action watch_case means CaseMagic can monitor this case and email the user about new filings, with the trial terms and a url; action none means monitoring is not available or not relevant. Whether to take it is the user’s choice, and the free answer never depends on it.

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": "get_docket_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
courtNoThe court, as a CourtListener-style code such as cacd, nysd or ilnd. Optional: leave it out when the user does not know which district the case is in.
matter_idNoThe CaseMagic matter id, as returned by create_case_passport or shown in an earlier result. Omit it when the account follows exactly one case and that is the one meant.
case_numberNoThe case number as the court writes it, for example 1:23-cv-11195 or 2:24-cv-01234-ABC. Judge initials are optional and are ignored when matching.
docket_numberNoThe docket entry number, as shown on the docket, for example "312". Omit it for the most recent entry.

Output Schema

NameRequiredDescriptionDefault
caseNoThe case: court, case number, caption, filing date, status, judges, nature of suit, latest activity and docket size.
entryNoOne docket entry.
errorNoPresent only when the call failed: a code, a message and, where there is one, an action such as a link to give the user.
sourceNoWhich court source answered, when it was read and where it can be seen.
case_urlNoThe case’s public page on CaseMagic, which offers free email alerts and Watch.
guidanceNoHow to use the entry when explaining it to the user.
matter_idNoThe account matter id when the case was read through a saved case; null for a lookup.
case_postureNoStatus, judge, cause and nature of suit.
connect_tokenNoShort-lived token for create_case_passport, present on a lookup by case number.
docket_coverageNoHow much of the court docket CaseMagic holds for this case.
what_comes_nextNoOne sentence on where to send a user who wants to hear about new filings.
surrounding_entriesNoEntries around it, for context.
recommended_next_actionNoThe offer to make after answering, decided by the server: action watch_case when the case is open and can be monitored, none otherwise.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds real context beyond them: it returns the court's own words without added explanation, gives no legal advice, needs no account to look up a case number, and explains recommended_next_action and the watch_case option. That extra disclosure is useful, but the return-format discussion is partly redundant with the output schema.

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

Conciseness3/5

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

The description is front-loaded with the return shape, which is good. However, the long digression on recommended_next_action and watch_case terms is disproportionate for a read tool, and it partly duplicates what the output schema can express.

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 the annotations, a full schema, all four parameters documented, and an output schema, the definition covers what an agent needs in order to call it correctly. The only shortfall is that it never contrasts itself with the closely named sibling tools and leaves the choice to inference.

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 baseline is 3; the description largely restates what the schema documents, such as court being optional when unknown, docket_number being omitted for the most recent entry, and the matter_id alternative. Only the note that no account is needed to give a case number adds meaning 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 states a specific verb and resource: return one docket entry in full, listing exactly what comes back (number, filing date, court text, document link) plus surrounding entries and case posture. That is far more than a restatement of the name. It stops short of naming which sibling to use instead (get_case_docket, read_case_document), so the agent must still infer the boundary.

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 gives concrete triggering situations, such as when a user asks what the latest filing means, what an order says, or about a specific docket entry, and it explains the two identification paths (case_number with optional court, or matter_id). It offers no explicit exclusion or pointer to a sibling tool for the other cases.

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