get_pacer_case
Retrieve federal court case details by case ID to access metadata including parties, filing date, assigned judge, and nature of suit from PACER via CourtListener.
Instructions
Look up a single federal court case by its case ID. Returns full case metadata including title, parties, court, nature of suit, filing date, and assigned judge. Source: PACER via CourtListener, updated daily.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| case_id | Yes | The case ID to look up |
Implementation Reference
- src/tools/pacer.ts:118-165 (handler)The handler function for get_pacer_case uses the CourtListener API to fetch case metadata by case_id.
server.registerTool( "get_pacer_case", { title: "Get PACER Case", description: "Look up a single federal court case by its case ID. Returns full case metadata " + "including title, parties, court, nature of suit, filing date, and assigned judge. " + "Source: PACER via CourtListener, updated daily.", inputSchema: { case_id: z .string() .describe("The case ID to look up"), }, }, async ({ case_id }) => { const res = await apiGet<Record<string, unknown>>( `/api/v1/pacer/cases/${encodeURIComponent(case_id)}`, ); if (!res.ok) { if (res.status === 404) { return { content: [ { type: "text" as const, text: `Case ${case_id} not found in PACER dataset.`, }, ], }; } return { content: [ { type: "text" as const, text: `API error (${res.status}): ${JSON.stringify(res.data)}`, }, ], isError: true, }; } return { content: [ { type: "text" as const, text: JSON.stringify(res.data, null, 2) }, ], }; }, );