Skip to main content
Glama

gateway_get_stats

Retrieve usage statistics including invocations, cache hits, token savings, and top tools to monitor performance and calculate costs in the MCP Gateway server.

Instructions

Get usage statistics including invocations, cache hits, token savings, and top tools

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
price_per_millionNoToken price per million for cost calculations (default 15.0 for Opus 4.6)

Implementation Reference

  • This k6 test uses 'tools/call' which handles calling gateway tools, including a potential 'gateway_get_stats' if it exists. Note that the codebase seems to be a binary built in Rust or similar (based on npm/run.js) and the actual tool definitions are likely inside the binary, not directly visible in these files.
    function mcpToolsCall(toolName, toolArgs) {
      return postMcp(
        "tools/call",
        {
          name: toolName,
          arguments: toolArgs || {},
        },
        mcpToolsCallLatency,
        "mcp_tools_call"
      );
    }

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/MikkoParkkola/mcp-gateway'

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