Get plan and usage
get_usageAn organization's subscription, how many tracked queries its projects the caller can access have, and how many checks they are projected to run per month. Plan entitlements (tracked-query and check limits) are included for owners only, as in the web app; for other members "entitlements" is null. For a member restricted to selected projects, the plan, billing cycle, check budget, consumption and deactivation reason in "subscription" are null too. Use it before creating tracked queries or raising check frequency, to stay within the plan.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"organizationId": "<organizationId>"
},
"name": "get_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| organizationId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entitlements | Yes | Null unless the caller owns the organization. | |
| subscription | Yes | The current subscription contract of an organization. For a member restricted to selected projects, the plan, the billing cycle, the check budget, its consumption and the deactivation reason are null. | |
| trackedQueries | Yes | How many tracked queries an organization has configured | |
| projectedMonthlyChecks | Yes | What an organization's current tracking configuration would consume in a month |