cursor_usage
Check Cursor API usage and spending, monitor billing alerts, and set spend guardrails with scheduled alert checks.
Instructions
Cursor billing and spend guardrails (read-only).
Requires CURSOR_API_KEY. Admin endpoints also accept CURSOR_ADMIN_API_KEY (crsr_ team key). Use alert_check on a schedule (e.g. Fritz every 2h) instead of manual dashboard checks.
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": {
"operation": "<operation>"
},
"name": "cursor_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | Usage operation to run. | |
| hours | No | Lookback window for events/alert_check. | |
| No | Filter spend row by email (Admin API). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||