Skip to main content
Glama
firstshout
by firstshout

compare_providers

Compare API costs across Anthropic, OpenAI, and Google models by input and output tokens. Returns a table sorted by cheapest price to show where Claude stands.

Instructions

Compare API cost across 8 models from Anthropic, OpenAI, and Google for given token counts. Returns a table sorted cheapest-first so you can see where Claude sits vs alternatives.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
input_tokensYesInput tokens per call
output_tokensYesOutput tokens per call
calls_per_monthNoMonthly call volume (default 1)
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description fully bears transparency. It discloses the return format (table, sorted), the set of models (8 from 3 providers), and the purpose (compare Claude vs alternatives). It does not mention pricing source, update frequency, or limitations, but sufficiently conveys behavioral expectations for a comparison tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero waste. The first sentence states the core action, the second adds key output detail. Every word is purposeful and efficiently conveys the tool's value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema and moderate complexity (8 models, 3 providers), the description is largely complete. It specifies the output format (table, sorted), the purpose, and the required inputs. Minor gap: does not mention that prices are assumed current, but overall sufficient for agent selection and invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so baseline is 3. The description reiterates that token counts are used ('for given token counts') but adds no new parameter-level detail beyond the schema. The context of comparing across models is useful but does not enhance individual parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the tool compares API costs across 8 models from three providers (Anthropic, OpenAI, Google) given token counts, and specifies the output (sorted table, cheapest-first, shows Claude's position). This is a specific verb+resource+scope that distinguishes it from siblings like estimate_cost (single model) or batch_savings (batch pricing).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Description implies usage for comparing costs across providers, but does not explicitly state when to use this tool over alternatives like estimate_cost (for single-model cost) or batch_savings. No when-not or exclusion criteria provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/firstshout/claude-cost-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server