io.github.vpatser1/ai-cost-analyzer
NPM · AI-COST-ANALYZER · SCANNED AUG 7
Analyze LLM API costs: token waste detection, caching savings estimates, model comparison
Available components
How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score →
Supply Chain Security87
- No malware found by supply-chain analysis.Pass
- Known CVEs were checked across the 95 of 99 dependencies we could resolve, so this covers what we could see, not the whole tree.Partial
- No install/post-install scripts declared.Pass
- Dependency health was assessed across the 95 of 99 dependencies we could resolve, so this covers what we could see, not the whole tree. View diagnostics → Partial
Provenance & Transparency19
- Repository check failed: no source repository is declared. See how to fix → View diagnostics → Fail
- Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
- Clear OSI-approved license (MIT).Pass
- Actively maintained (last published 2 days ago).Pass
- Security-disclosure policy not yet verified: we couldn't inspect the source repository.Unverified
Schema Quality & AI Usability71
- AI-judged instruction clarity (good).Pass
- Tool/resource definitions use about 375 tokens (~75/item across 5 items; 5 tools + 0 resources), lean.Pass
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management0
- Stability not yet verified: not enough scan history yet (needs a 30-day window).Unverified
Tool Coverage100
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 100% of tool parameters carry a description.Pass
Capabilities100
- Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Unverified: 1 category
A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.
Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.
npm · ai-cost-analyzer
claude mcp add vpatser1-ai-cost-analyzer -- npx -y ai-cost-analyzer
codex mcp add vpatser1-ai-cost-analyzer -- npx -y ai-cost-analyzer
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"vpatser1-ai-cost-analyzer": {
"type": "local",
"command": [
"npx",
"-y",
"ai-cost-analyzer"
],
"enabled": true
}
}
} openclaw mcp add vpatser1-ai-cost-analyzer --command npx --arg -y --arg ai-cost-analyzer
mcp_servers:
vpatser1-ai-cost-analyzer:
command: "npx"
args: ["-y", "ai-cost-analyzer"] {
"mcpServers": {
"vpatser1-ai-cost-analyzer": {
"command": "npx",
"args": [
"-y",
"ai-cost-analyzer"
]
}
}
} Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 4 Aug 26 59
First indexed and scored.
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 7 Aug 2026 · Analysed npm/[email protected]
Provenance No attestation
The registry publishes no build provenance for this version, so there is nothing to verify.
| Result | No attestation |
|---|---|
| Ecosystem | npm |
Dependencies 95 packages
| Packages resolved | 95 |
|---|---|
| Deprecated | 95 |
| Stale | 29 |
| Tree resolution | Partial |
The dependency tree was only partially resolved, so these counts may be incomplete.
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability.
analyze_usage ~56
Analyze AI API usage data and return cost breakdowns by model, average cost per request, token waste estimation, and daily/weekly trends.
| Name | Type | Req | Description |
|---|---|---|---|
| usage_data | array | yes | Array of API usage records with model, tokens, and timestamps |
No output schema declared.
No examples provided.
compare_models ~93
Compare cost and quality tradeoffs across Claude, GPT-4o, GPT-4o-mini, and Gemini models for a given task. Returns cost per request, monthly projections, and recommendations.
| Name | Type | Req | Description |
|---|---|---|---|
| estimated_input_tokens | integer | – | Override estimated input tokens per request |
| estimated_output_tokens | integer | – | Override estimated output tokens per request |
| task_description | string | yes | Description of the task to compare models for |
No output schema declared.
No examples provided.
estimate_savings ~76
Estimate potential monthly savings from prompt caching, model routing, and context pruning based on current usage patterns.
| Name | Type | Req | Description |
|---|---|---|---|
| monthly_multiplier | number | – | If the usage_data is a sample, multiply costs by this factor to project monthly totals (default: 1) |
| usage_data | array | yes | Array of API usage records representing current usage patterns |
No output schema declared.
No examples provided.
get_pricing ~39
Return current pricing for all major LLM APIs (Claude, OpenAI, Gemini) with input, output, and cached token rates per million tokens.
Input schema present but exposes no named parameters.
No output schema declared.
No examples provided.
optimize_prompt ~111
Analyze a system prompt and tool definitions, return an optimized version with redundant content removed, token counts before/after, and cost reduction estimates.
| Name | Type | Req | Description |
|---|---|---|---|
| model | string | – | Model name for pricing calculation (default: claude-sonnet) |
| requests_per_month | integer | – | Estimated requests per month for cost projection (default: 10,000) |
| system_prompt | string | yes | The system prompt text to optimize |
| tool_definitions | array | yes | Array of tool definition strings (JSON or plain text) |
No output schema declared.
No examples provided.