aanet_get_activity_summary
Spend totals from the audit log instead of reading every entry: for each group, total_cost (units) and calls. Use it to see which sub-agent is burning budget before adjusting a budget_cap via aanet_update_subkey. Owner_key required. An unknown group_by is an error.
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": {
"api_key": "<api_key>",
"workspace_id": "<workspace_id>"
},
"name": "aanet_get_activity_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | ISO timestamp — only count entries at or after this time. | |
| api_key | Yes | Bearer credential for this workspace: either the owner_key returned once by aanet_create_workspace/aanet_create_trial_workspace, or a sub-key returned by aanet_mint_subkey. Sent under the hood as `Authorization: Bearer <api_key>`. Owner-only tools reject a sub-key with a 403. | |
| group_by | No | How to group the totals: "subkey_operation" (default), "subkey" or "operation". | subkey_operation |
| workspace_id | Yes | The workspace_id from aanet_create_workspace or aanet_create_trial_workspace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |