Skip to main content
Glama

npi_stats

Retrieve key statistics about the NPI dataset, including total records, state coverage, update timestamps, and data source details. This free tool provides essential insights for healthcare data analysis.

Instructions

Get statistics about the NPI dataset: total record count, number of states, last updated timestamp, and data source information. Free endpoint, no payment required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler implementation for the npi_stats tool.
      async () => {
        const res = await apiGet<NpiStatsResponse>("/api/v1/npi/stats");
    
        if (!res.ok) {
          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) },
          ],
        };
      },
    );
  • The registration of the npi_stats tool using the MCP server instance.
    server.registerTool(
      "npi_stats",
      {
        title: "NPI Dataset Statistics",
        description:
          "Get statistics about the NPI dataset: total record count, number of states, " +
          "last updated timestamp, and data source information. Free endpoint, no payment required.",
        inputSchema: {},
      },
  • The interface defining the response shape for the npi_stats tool.
    interface NpiStatsResponse {
      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