Get spending summary
get_spending_summaryGet current spending vs. configured limits. Per-agent fields (daily_spent, weekly_spent, monthly_spent, total_budget_spent) reflect rules set on this agent. The optional user_aggregate object reports the owner's cross-agent caps — these apply across every agent on the account and will deny a purchase even if this agent's per-agent rules are not exceeded. The optional team object appears only when this agent belongs to a team. team.daily, team.weekly and team.monthly are ceilings across every agent in that team (so they can already be near their limit even if this agent has spent nothing). team.per_agent holds the team's limits for each agent (daily, weekly, monthly, total_budget): they apply to this agent alone, alongside its own rules, and count only its purchases on the team; each has a binding field, team or agent, naming whichever of the team's limit and this agent's own leaves less room. team.auto_approve_threshold, when present, is the threshold that decides what needs human approval, and team.threshold_source says whether it is the team's or this agent's own lower one. Team periods follow the team's timezone. Only configured limits appear in the response.
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": "get_spending_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||