log_cost
Record token usage and cost per task after each AI interaction to track spending and enable budget monitoring.
Instructions
Log token usage and cost for a task. Call this after each AI interaction.
Args: model: Model name (e.g., 'claude-sonnet-4-6', 'gpt-5.4') tokens_in: Number of input tokens tokens_out: Number of output tokens task: Description of what the task was
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| tokens_in | Yes | ||
| tokens_out | Yes | ||
| task | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |