petra_get_usage
Retrieve an organization-wide Petra billing snapshot by tenant, including service, billable status, licensed and billable users, proration, first billable date, and totals for invoice reconciliation.
Instructions
Get the whole-organization Petra billing snapshot in one call: for every tenant, the service (Monitoring or Autopsy), billableStatus (Trial, Active, NFR, Deleted), totalLicensedUsers, billableUsersThisMonth, proratingPercentageThisMonth and firstBillableDate, plus totals across the returned tenants. Use for invoice reconciliation against the PSA.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "petra_get_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | No | Usage as of this date (YYYY-MM-DD). Defaults to today. | |
| includePaused | No | Include paused tenants. Defaults to true. Set false so paused tenants do not inflate counts. | |
| billableStatus | No | Only return tenants with this billable status (filtered locally). |