Skip to main content
Glama

get-usages

Retrieve usage analytics including compute units consumed and assets generated, with filtering by user, project, time range, and activity type.

Instructions

Provide usage data for the given filters. Such as consumed compute units, number of assets generated, etc. Maximum time range with custom startDate and endDate is 120 days. Granularity is calculated based on the time range.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdNoThe unique identifier of the user for the usage. If not provided, returns all usages for the team.
activityOffsetNoThe offset for the activity data. Default is 0. If bad offset or empty, 0 will be returned. Must be a positive integer.
userIdsNoThe unique identifiers of the users for filtering the usage data. If not provided, use all users. Can be one or more comma separated values.
typeNoThe type of the usage data. Can be one or more comma separated values. Default is all types. If bad type or empty, all types will be returned.
endDateNoThe end date of the usage in ISO 8601 format. If not provided, use default timeRange. If provided, startDate is required.
projectIdsNoThe project ids for filtering the usage data. If not provided, use all projects. Can be one or more comma separated values.
timeRangeNoThe time range of the usage. If not provided, use default timeRange. If startDate and endDate provided, timeRange is ignored.
startDateNoThe start date of the usage in ISO 8601 format. If not provided, use default timeRange. If provided, endDate is required.

Other Tools

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/pasie15/scenario.com-mcp-server'

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