io.github.sachinuppal/modelcostsaver
NPM · @WORKSWARM/MODELCOSTSAVER · SCANNED AUG 3
Offline MCP: predict LLM call cost and pick the cheapest capable model. No keys, no network.
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
- Only part of the dependency tree could be resolved (95 of 99), so this covers what we could see, not the whole tree.Partial
- No install/post-install scripts declared.Pass
- Only part of the dependency tree could be resolved (95 of 99), so this covers what we could see, not the whole tree. View diagnostics → Partial
Provenance & Transparency45
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
- Clear OSI-approved license (Apache-2.0).Pass
- Actively maintained (last published 40 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability74
- 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).Pass
- AI-judged instruction clarity (good).Pass
- Context-footprint check failed: tool/resource definitions use about 1395 tokens (~174/item across 8 items; 7 tools + 1 resources), over budget; trim descriptions and params. See how to fix → Fail
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management23
- Stability observed for 7 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage98
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 92% of tool parameters carry a description.Partial
- Structured output schemas are declared (100% of tools); any adoption earns full credit.Pass
Capabilities100
- Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
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 · @workswarm/modelcostsaver
claude mcp add sachinuppal-modelcostsaver -- npx -y @workswarm/modelcostsaver
codex mcp add sachinuppal-modelcostsaver -- npx -y @workswarm/modelcostsaver
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"sachinuppal-modelcostsaver": {
"type": "local",
"command": [
"npx",
"-y",
"@workswarm/modelcostsaver"
],
"enabled": true
}
}
} openclaw mcp add sachinuppal-modelcostsaver --command npx --arg -y --arg @workswarm/modelcostsaver
mcp_servers:
sachinuppal-modelcostsaver:
command: "npx"
args: ["-y", "@workswarm/modelcostsaver"] {
"mcpServers": {
"sachinuppal-modelcostsaver": {
"command": "npx",
"args": [
"-y",
"@workswarm/modelcostsaver"
]
}
}
} 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.
- 3 Aug 26 +3
- Stability: unverified → 0.23 ▲ functional
- 2 Aug 26 +60
- Provenance: unverified → fail ▼ security
- Malware scan: unverified → pass ▲ security
- Install scripts: unverified → pass ▲ security
- Known CVEs: unverified → partial ▲ security
- Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window). security
- Tool coverage: unverified → 100 ▲ functional
- Schema quality: unverified → 100 ▲ functional
- Dependency health: unverified → partial ▲ functional
- Maintenance: unverified → pass ▲ functional
- MCP protocol: unverified → pass ▲ functional
- Schema quality: unverified → good ▲ functional
- License: unverified → pass ▲ functional
- Licence: Apache-2.0 functional
- 1 Aug 26 −20
- Tool coverage: 100 → unverified ▼ functional
- Schema quality: 100 → unverified ▼ functional
- 31 Jul 26 −8
- We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
- 30 Jul 26 −18
- Malware scan: pass → unverified ▼ security
- 27 Jul 26 51
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 3 Aug 2026 · Analysed npm/@workswarm/[email protected]
Provenance none
Ecosystem: npm · Outcome: none
Dependencies 95 packages
95 packages in the resolved dependency tree · 95 deprecated · 29 stale.
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.
compare_models Compare models ~120
Compare models side by side for a fixed token shape, cheapest first, with the multiple of the cheapest. Offline.
| Name | Type | Req | Description |
|---|---|---|---|
| inputTokens | integer | yes | Input tokens for the comparison. |
| models | array | yes | Models to compare (alias or id). |
| outputTokens | integer | yes | Output tokens for the comparison. |
| providers | array | — | Axis 1: provider availability allowlist (spec 5.4). |
| target | string | — | Axis 2: "self" (default) applies the client scope; "code" considers all providers. |
| Name | Type | Req | Description |
|---|---|---|---|
| asOf | string | yes | — |
| catalogVersion | string | yes | — |
| cheaperIfAvailable | object | — | — |
| cheapest | — | yes | — |
| mostCapable | — | yes | — |
| providerScope | array | yes | — |
| rows | array | yes | — |
| scopeSource | string | yes | — |
| unknownModels | array | yes | — |
No examples provided.
estimate_cost Estimate cost ~152
Estimate the cost of a single LLM call for one model from known or estimated token counts. Offline, no keys.
| Name | Type | Req | Description |
|---|---|---|---|
| charsPerToken | number | — | Override the chars-per-token heuristic divisor. |
| expectedOutputText | string | — | Expected output text; estimated if outputTokens is absent. |
| inputText | string | — | Prompt text; estimated to tokens if inputTokens is absent. |
| inputTokens | integer | — | Exact input tokens; optional if inputText is given. |
| model | string | yes | Model alias or full id, e.g. "sonnet" or "claude-sonnet-4-6". |
| outputTokens | integer | — | Exact output tokens; defaults to the model output cap. |
| Name | Type | Req | Description |
|---|---|---|---|
| asOf | string | yes | — |
| breakdown | object | yes | — |
| catalogVersion | string | yes | — |
| cost | object | yes | — |
| inputTokens | number | yes | — |
| model | string | yes | — |
| outputTokens | number | yes | — |
| pricing | object | yes | — |
| provider | string | yes | — |
| tier | string | yes | — |
| tokensWereEstimated | boolean | yes | — |
No examples provided.
get_pricing List models / pricing ~103
Return the model catalog with pricing, optionally filtered. capabilities are arrays. Offline.
| Name | Type | Req | Description |
|---|---|---|---|
| capability | string | — | Require a capability. |
| includeLocal | boolean | — | Include local / self-hosted $0 models (off by default). |
| maxInputPerMillion | number | — | Only models at or below this input price per 1M tokens. |
| provider | string | — | Filter to a single provider. |
| tier | string | — | Filter to a single tier. |
| Name | Type | Req | Description |
|---|---|---|---|
| asOf | string | yes | — |
| catalogVersion | string | yes | — |
| count | number | yes | — |
| models | array | yes | — |
| source | string | yes | — |
No examples provided.
list_models List models / pricing ~102
Return the model catalog with pricing, optionally filtered. capabilities are arrays. Offline.
| Name | Type | Req | Description |
|---|---|---|---|
| capability | string | — | Require a capability. |
| includeLocal | boolean | — | Include local / self-hosted $0 models (off by default). |
| maxInputPerMillion | number | — | Only models at or below this input price per 1M tokens. |
| provider | string | — | Filter to a single provider. |
| tier | string | — | Filter to a single tier. |
| Name | Type | Req | Description |
|---|---|---|---|
| asOf | string | yes | — |
| catalogVersion | string | yes | — |
| count | number | yes | — |
| models | array | yes | — |
| source | string | yes | — |
No examples provided.
optimize_request Optimize request ~172
Check whether a cheaper capable model exists for a call you plan to make, and report the savings. Offline.
| Name | Type | Req | Description |
|---|---|---|---|
| crossProvider | boolean | — | Consider other providers too (may need a different API key). Default false. |
| currentModel | string | yes | The model you plan to call (alias or id). |
| includeLocal | boolean | — | — |
| inputTokens | integer | yes | Input tokens for the call. |
| outputTokens | integer | yes | Output tokens for the call. |
| providers | array | — | Axis 1: provider availability allowlist (spec 5.4). |
| target | string | — | Axis 2: "self" (default) applies the client scope; "code" considers all providers. |
| taskClass | string | — | Task class; sets the tier the recommendation must still meet. |
| Name | Type | Req | Description |
|---|---|---|---|
| alreadyOptimal | boolean | yes | — |
| asOf | string | yes | — |
| catalogVersion | string | yes | — |
| current | — | yes | — |
| providerScope | array | yes | — |
| reasoning | array | yes | — |
| recommended | — | yes | — |
| savingsPct | number | yes | — |
| savingsUsd | number | yes | — |
| scopeSource | string | yes | — |
No examples provided.
predict_cost Predict cost ~197
Forecast the cost of a prompt across candidate models before the call. Returns a cheapest-first ranking with assumptions. Offline.
| Name | Type | Req | Description |
|---|---|---|---|
| candidates | array | — | Candidate models (alias or id); defaults to all chat-capable. |
| charsPerToken | number | — | — |
| contextTokens | integer | — | Known context tokens already loaded. |
| expectedOutputTokens | integer | — | Exact output tokens; else inferred from taskClass/model. |
| includeLocal | boolean | — | — |
| inputTokens | integer | — | Exact input tokens (skips prompt estimation). |
| prompt | string | — | The prompt to forecast; estimated to tokens if inputTokens absent. |
| providers | array | — | Axis 1: provider availability allowlist (spec 5.4). |
| target | string | — | Axis 2: "self" (default) applies the client scope; "code" considers all providers. |
| taskClass | string | — | Drives the default output cap. |
| Name | Type | Req | Description |
|---|---|---|---|
| asOf | string | yes | — |
| catalogVersion | string | yes | — |
| cheaperIfAvailable | object | — | — |
| cheapest | — | yes | — |
| forecasts | array | yes | — |
| notes | array | yes | — |
| providerScope | array | yes | — |
| scopeSource | string | yes | — |
No examples provided.
select_optimal_model Select optimal model ~189
Pick the single cheapest model that meets the task tier, capabilities, and budget, with full reasoning and a fallbackChain. Offline.
| Name | Type | Req | Description |
|---|---|---|---|
| estimatedInputTokens | integer | yes | Estimated input tokens for the forecast. |
| estimatedOutputTokens | integer | yes | Estimated output tokens for the forecast. |
| includeLocal | boolean | — | — |
| maxCostUsd | number | — | Budget ceiling for the predicted call cost. |
| providers | array | — | Axis 1: provider availability allowlist (spec 5.4). |
| requiredCapabilities | array | — | Capabilities the model must support. |
| target | string | — | Axis 2: "self" (default) applies the client scope; "code" considers all providers. |
| task | string | — | Free-text task; used for the tier heuristic when taskClass is absent. |
| taskClass | string | — | Explicit task class; overrides the heuristic. |
| Name | Type | Req | Description |
|---|---|---|---|
| asOf | string | yes | — |
| budgetExceeded | boolean | — | — |
| catalogVersion | string | yes | — |
| cheaperIfAvailable | object | — | — |
| fallbackChain | array | yes | — |
| providerScope | array | — | — |
| reasoning | array | yes | — |
| rejected | array | yes | — |
| runnerUp | object | — | — |
| scopeSource | string | — | — |
| selected | — | yes | — |
| shortfallUsd | number | — | — |
No examples provided.