credits_history
Credit usage history: balance, 30-day spend by reason, and ledger entries (newest first).
Each entry has delta, reason (pipeline_run, ai_agent, schedule_run, chat_turn, agent_job, builder_call,
debug_chat, mcp_usage, llm_usage = model tokens beyond the flat fee (one row per run/call), purchase,
signup_grant, refund, ...), detail (what it was for), balance_after.
kind: "spend" (charges only) or "credit" (grants/purchases/refunds only). limit max 200.
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": "credits_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| limit | No | ||
| offset | No |