get_cost_estimate
Estimate the USD cost of agent sessions using token counts and a static price table. Pass a session ID for one session's cost, or a lookback period in seconds to sum all sessions within that window.
Instructions
Estimated USD cost as a float.
Pass session_id for one session's cost, or period_seconds for the summed cost of your sessions in the last N seconds. Give exactly one; non-owners are scoped to their own sessions. These are estimates from token counts and a static price table, not billed amounts.
session_id: optional session id. period_seconds: optional lookback window in seconds (e.g. 86400 for the last day).
Returns 0.0 for an unknown or non-owned session_id, and for a period with no matching sessions.
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_cost_estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | No | ||
| period_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |