Cost and tokens
costRetrieve daily agent spend and token usage for a repository or all repositories, with totals by model using Caprock's model table.
Instructions
Agent spend and tokens per day for a repository (or all of them), with totals by model. Figures are Caprock's, priced from its model table.
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": "cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Days back, today included (default 7, at most 90). | |
| repo | No | A directory inside the repository; defaults to the directory this server was started in (normally the project the agent is working in). | |
| all_repos | No | Every repository, with a total per repository. |