Get What Used the Allowance
getUsageBySourceWhat used a calendar month's allowance (period=YYYY-MM, default this month; not the billing period): billed seconds and tokens per standard test, mission test, mapping job, load test and Quinn, largest first, at most 20, each with its id and name where they can be found (null otherwise). otherSources counts the sources left out. Mission testing is not itemised per test today and shows as one mission_test row with no id. Use when: someone asks which tests or maps used their minutes. Owner or billing admin only; other roles get 403. Only a person signed in to the nopaque web app can call this; an API key is refused.
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": {
"workspaceId": "<workspaceId>"
},
"name": "getUsageBySource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | The month, YYYY-MM (UTC). Default is the current month. | |
| workspaceId | Yes | Workspace identifier. Must be the caller's current workspace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sources | Yes | ||
| otherSources | Yes | ||
| billingPeriod | Yes |