Skip to main content
Glama

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
NameRequiredDescriptionDefault
case_idYesThe case ID to look up

Implementation Reference

  • 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) },
          ],
        };
      },
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/carrierone/verilexdata-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server