Skip to main content
Glama

gateway_cost_report

Track API usage costs and call statistics with session-level breakdowns across backends and tools. View spending for current sessions or all keys with 24-hour, 7-day, and 30-day rolling windows.

Instructions

Return current session and API-key spend. Includes total cost, call count, and breakdown by backend and tool. Per-key totals are shown for 24 h / 7 d / 30 d rolling windows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
include_all_keysNoReturn all API key accumulators (admin view). Default false.
include_all_sessionsNoReturn all active sessions (admin view). Default false.
session_idNoSpecific session ID to report on. Defaults to current session.

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