Skip to main content
Glama

pacer_stats

Retrieve statistics about PACER federal court records, including total cases indexed, courts covered, date range, and last updated timestamp.

Instructions

Get statistics about the PACER court records dataset: total cases indexed, courts covered, date range, and last updated timestamp. Free endpoint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration of the pacer_stats tool.
    server.registerTool(
      "pacer_stats",
      {
        title: "PACER Dataset Statistics",
        description:
          "Get statistics about the PACER court records dataset: total cases indexed, " +
          "courts covered, date range, and last updated timestamp. Free endpoint.",
        inputSchema: {},
      },
  • Handler implementation for the pacer_stats tool.
      async () => {
        const res = await apiGet<PacerStatsResponse>("/api/v1/pacer/stats");
    
        if (!res.ok) {
          if (res.status === 404) {
            return {
              content: [
                {
                  type: "text" as const,
                  text: "PACER dataset is not yet available. This data source is coming soon.",
                },
              ],
            };
          }
          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) },
          ],
        };
      },
    );
  • Schema definition for pacer_stats response.
    interface PacerStatsResponse {
      dataset: string;
      source: string;
      update_frequency: string;
      stats: Record<string, unknown>;
    }

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