Skip to main content
Glama
io.github.ufhouck/aicost-cli

io.github.ufhouck/aicost-cli

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

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

CapabilityDetails
tools
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
pricing-modelsComplete JSON catalog of AI model prices, context windows, billing units, and platform fees.
pricing-metadataCurrent pricing database version, last update date, live catalog count, and currency rate cache timestamp.

TDQS

A3.6/5.0

Scored across 8 tools

Disambiguation4/5

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.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness4/5

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.