io.github.ufhouck/aicost-cli
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_ai_modelsA | List AI models and their effective pricing across text, image, video, audio, and gateway providers. Supports curated flagship models plus optional 400+ live OpenRouter catalog. |
| calculate_ai_costB | Calculate the exact cost of an AI API call with full base cost, prompt-caching, batch discount, and aggregator platform fee breakdown. Supports 60+ curated models and 400+ live OpenRouter models. |
| get_ai_costC | Alias for calculate_ai_cost: calculate the cost of an AI model usage based on tokens or units. |
| compare_ai_modelsA | Compare two or more AI models side-by-side on pricing, platform fees, context window, and optional sample workload cost. |
| recommend_ai_modelA | Recommend the best cost-effective AI models for a task description. Supports keywords like 'coding', 'cheap', 'fast', 'agentic', 'vision', 'reasoning', 'video', 'image', 'music'. |
| estimate_monthly_costB | Estimate daily, monthly, and annual AI API costs for a recurring production workload. |
| get_pricing_metadataA | Get metadata about the current pricing database (schema version, model count, live catalog count, last update date, currency cache timestamp). |
| sync_pricing_dataB | Fetch the latest curated pricing database, refresh 400+ live OpenRouter models, and update currency exchange rates. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| pricing-models | Complete JSON catalog of AI model prices, context windows, billing units, and platform fees. |
| pricing-metadata | Current pricing database version, last update date, live catalog count, and currency rate cache timestamp. |
TDQS
Scored across 8 tools
Most tools are cleanly separated by intent: listing catalog models, calculating a single call's cost, comparing models, recommending models, estimating recurring spend, and syncing/auditing the pricing database. The one weak spot is get_ai_cost, which is an exact duplicate of calculate_ai_cost; it is explicitly labeled as an alias, so misselection is unlikely, but the overlap is real.
All eight tools use snake_case verb_noun construction (list_, calculate_, get_, sync_, compare_, recommend_, estimate_) with predictable noun targets. The only nuance is get_ai_cost acting as an alias, but its naming still fits the same convention.
Eight tools is well-scoped for a pricing/cost-estimation server, with each tool mapping to a distinct user need (discover, price, compare, recommend, forecast, refresh, inspect). No padding beyond the single alias.
The surface covers the full lifecycle: model discovery, per-call cost math, comparison, recommendation, monthly forecasting, data sync, and metadata inspection. Minor gaps exist — no per-model detail lookup, no direct currency conversion tool, and no batch/multi-model cost calculation — but agents can work around these via the existing tools.