session_report
Report token usage and cost at session end, save them to the agent record, and return tool-call stats plus a compliance score for project-context checks.
Instructions
Report token usage and cost at the end of a session. Saves them on your agent session record and returns this session's tool-call stats and a compliance score (whether you loaded project context before acting). All parameters are optional; omitted or zero values are not recorded.
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": "session_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | LLM model used (e.g. 'claude-sonnet-4'). | |
| tokens_in | No | Total input tokens this session. | |
| tokens_out | No | Total output tokens this session. | |
| estimated_cost | No | Estimated cost in USD. |