Offline CLI that costs an LLM request per context component, and flags tool definitions you ship but never call.
ctxprofile exposes 3 specialized analysis tools for LLM request profiling. All three have descriptions and input schemas present, but schemas lack parameter-level type definitions and descriptions. Tool names are action-oriented (analyze_, audit_, lint_) but descriptions are highly technical and assume deep knowledge of Anthropic API internals, making them difficult for general LLM agents to reason about. No output schemas are documented. Error handling is absent from visible code.
Cost-attribute one captured Anthropic Messages request per context component (system, each tool definition, history, tool results) and flag tools that are defined but not called. Pass a request object, or {"request": ..., "response": ...}.
Dead-tool cost grouped by MCP server: join tool schemas from a request (`defs`) with call counts from a Claude Agent SDK / `claude -p` JSONL trace corpus.
Find tool-definition weight no tool call can reference: `$defs` entries that no `$ref` reaches, and JSON Schema document annotations. Reports the tokens and dollars per request that removing them would return.
Parameter descriptions missing. 'capture' param in analyze_request and lint_tool_schemas lacks explanation of expected structure; 'defs' and 'traces_jsonl' in audit_mcp_servers are minimally described. LLMs cannot infer what data structure to pass.
Parameter types not specified in schema. 'capture' is declared as type 'object' with no properties defined; 'defs' and 'traces_jsonl' lack type constraints. Schema must define nested object structure or string format to guide LLM input.
No output schema documented. Tools return cost analysis and token counts, but response structure is not specified. LLMs cannot plan downstream operations or extract specific fields without knowing the output shape.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 44 | 2026-07-28+ | v2 |
Descriptions assume deep API knowledge. 'Cost-attribute one captured Anthropic Messages request per context component' and 'Dead-tool cost grouped by MCP server' are jargon-heavy and assume familiarity with Anthropic internals. Descriptions should explain WHAT the tool does, WHEN to use it, and WHAT it returns in plain language.
No error handling guidance. No visible error responses, recovery hints, or actionable error messages. If a malformed request is passed, the LLM has no guidance on what to fix.