Estimate an AI session's footprint from token counts
estimate_session_footprintEstimate the water and energy of an AI session (e.g. an agent or coding-assistant run) from its token usage. Pass the SUM across all model calls: input_tokens (uncached prompt tokens), output_tokens (including any reasoning/thinking tokens) and cached_input_tokens (prompt-cache reads). model_class: 'small' (Haiku/mini/Flash-class), 'frontier' or 'reasoning'. Returns a central estimate and a 0.3x–3x range – this is an order-of-magnitude estimate calibrated to published per-prompt figures, not a measurement.
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": {
"input_tokens": "<input_tokens>",
"output_tokens": "<output_tokens>"
},
"name": "estimate_session_footprint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boundary | No | Accounting boundary: 'onsite' = data-centre cooling water only (as vendors report); 'comprehensive' = also counts water used to generate the electricity (the wider boundary most researchers use). | comprehensive |
| model_class | No | Model size: 'small' = Haiku/mini/Flash-class, 'frontier' = flagship models, 'reasoning' = extended-thinking models. | frontier |
| input_tokens | Yes | Uncached input (prompt) tokens, summed across every model call in the session. | |
| output_tokens | Yes | Output tokens, including any reasoning/thinking tokens, summed across every model call. | |
| cached_input_tokens | No | Prompt-cache read tokens, summed across every model call. 0 if unknown. |