Skip to main content
Glama

sanctions_stats

Retrieve statistics for sanctions screening datasets including total entries, covered lists, update timestamps, and source details to verify data coverage and freshness.

Instructions

Get statistics about the sanctions dataset: total entries, lists covered, last updated timestamp, and data source information. Free endpoint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler and registration for the "sanctions_stats" tool, which fetches data from "/api/v1/sanctions/stats" and returns it as a formatted JSON string.
    server.registerTool(
      "sanctions_stats",
      {
        title: "Sanctions Dataset Statistics",
        description:
          "Get statistics about the sanctions dataset: total entries, lists covered, " +
          "last updated timestamp, and data source information. Free endpoint.",
        inputSchema: {},
      },
      async () => {
        const res = await apiGet<SanctionsStatsResponse>("/api/v1/sanctions/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) },
          ],
        };
      },
    );
  • TypeScript interface defining the structure of the response for the sanctions statistics tool.
    interface SanctionsStatsResponse {
      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