AI Agent Spend Analysis. MCP server that analyzes Claude Code session logs to find token waste and optimization opportunities. Free preview tier included.
AgentCost has 3 tools with basic schemas and descriptions, but significant gaps in parameter documentation, output schema clarity, and error handling. Tool names are descriptive (agentcost_preview, agentcost_analyze, agentcost_sample) but descriptions lack actionable context for LLM selection. The 'tier' enum in agentcost_analyze is well-constrained, but the 'logs' parameter in two tools lacks format guidance (JSONL structure, expected fields, size limits). No output schemas are documented, LLMs cannot predict response structure or plan downstream operations. Error handling is absent: apiRequest() returns raw API responses without recovery guidance. All three tools accept user-provided logs but lack input validation or injection safeguards.
Full AI agent spend analysis with waste detection, per-tool cost attribution, and optimization recommendations. Paid via x402 micropayment ($5 Pro, $15 Full). Pro: waste patterns + recommendations. Full: + benchmarks, savings projections.
Free cost analysis of AI agent session logs. Returns cost breakdown, token counts, model split, tool usage, and top-5 expensive turns. Upload your Claude Code JSONL session log to see where your money goes. No payment required.
Get a sample AgentCost analysis report showing the output format and typical cost patterns. No payment required.
No output schemas documented. LLMs cannot predict response structure (fields, types, nesting) or plan downstream operations. Tools return raw JSON.stringify() of API responses without shape documentation.
'logs' parameter lacks format guidance. No description of JSONL structure, required fields, size limits, or encoding. LLMs cannot validate input before calling.
No error handling or recovery guidance. apiRequest() returns raw HTTP status and text without actionable next steps. LLMs cannot self-correct on API failures.
No input validation or injection safeguards. User-provided 'logs' strings are passed directly to API without sanitization. Vulnerable to prompt injection or malformed JSONL.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 52 | 2026-07-28+ | v2 |
Tool descriptions lack WHEN/WHY context. 'Free cost analysis' does not explain when to call preview vs analyze, or what 'waste detection' means. LLMs cannot disambiguate.