get_usage
Read this account's usage and quotas. Use view=summary for one calendar month (omit periodYm for the current UTC month, or pass YYYY-MM). Returns usage totals, the budget view, and whether that month is current. Use view=periods to page stored months newest-first. Returns periods, hasMore, and currentPeriodYm. Use view=budget for remaining included quota, hard caps, soft thresholds, checkout URLs, and this key's op budget when one is set. Returns budget and keyBudget. Read only: no writes, no deletes, no quota spend, no email. Choose estimate_usage before a spend, and manage_billing to pay. ACL is not consulted; usage_get, usage_periods_list, and budget_get were ungated reads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | Yes | Which usage read to run. summary: one month (ACL name usage_get). periods: paged history (ACL name usage_periods_list). budget: remaining quotas and checkout URLs (ACL name budget_get). Required. No default. | |
| limit | No | Page size when view=periods. Default 12, maximum 100. Ignored by view=summary and view=budget. | |
| cursor | No | When view=periods, return months strictly older than this YYYY-MM. Omit for the first page. Ignored by other views. | |
| periodYm | No | UTC calendar month YYYY-MM. Used when view=summary. Omit for the current month. Ignored by view=periods and view=budget. |