paperclip_get_costs_by_agent
Retrieve per-agent LLM token costs to pinpoint which agent consumes the most budget. Returns agent ID, name, total cost, and token counts.
Instructions
Get LLM token costs broken down by agent for the current company.
Args:
response_format: 'markdown' | 'json' (optional) — Output format (default: markdown)
Returns: Array of per-agent cost records: agentId, agentName, totalCents, tokenCounts.
Examples:
Use when: identifying which agent is consuming the most budget this period
Don't use when: you need project-level costs — use paperclip_get_costs_by_project instead
Error Handling:
401: authentication failed → check PAPERCLIP_API_KEY
403: permission denied → verify PAPERCLIP_COMPANY_ID is correct
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| response_format | Yes | Output format: 'markdown' (default, human-readable) or 'json' (structured) | markdown |