Summarize LLM usage
stack_llm_usage_summaryAggregate LLM usage by product surface, payer, provider, optional model, and UTC day. Returns calls, tokens, provider cost and STACK fee as separate values for the calling account. group_by_model=false collapses models while keeping surface and payer separate.
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": "stack_llm_usage_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | ISO timestamp lower bound (inclusive) | |
| until | No | ISO timestamp upper bound (exclusive) | |
| agent_id | No | ||
| provider | No | ||
| mission_id | No | ||
| passport_jti | No | ||
| group_by_model | No | Default true. false collapses models per provider. |