Skip to main content
Glama

get_usage_events

Retrieve detailed usage events with model information, token counts, costs, and chargeable status. Filter by user email and date range to analyze AI coding session expenses.

Instructions

Get granular per-request usage events with model, token counts, costs, and whether the request was chargeable. Supports filtering by user email and date range.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailNoFilter by user email
startDateNoStart date as Unix timestamp in milliseconds
endDateNoEnd date as Unix timestamp in milliseconds
pageNoPage number (default: 1)
pageSizeNoResults per page (default: 500, max: 500)

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/ofershap/cursor-usage'

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