Skip to main content
Glama

RenewalMath: verified small-business software prices

Get AI model API pricing

get_model_pricing
Read-onlyIdempotent

Current verified API prices for AI models from OpenAI, Anthropic and Google, in USD per million tokens: input, output and cached input, with any dated price change the provider has announced, the checked date and the source page. Optionally for one provider or model.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_model_pricing"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoOptional model name or id, for example "Claude Sonnet 5.5" or "gpt-6.2-sol"
providerNoOptional: openai, anthropic or google

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive and closed-world behavior, so the safety profile is covered. The description adds genuinely useful context beyond that: prices are "current" and "verified", results include announced dated price changes plus the checked date and source page, which tells the agent about data freshness and provenance.

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

Conciseness4/5

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

A single front-loaded sentence that leads with the resource and prices. It is clause-dense (currency unit, three price types, dated changes, checked date, source), but each clause carries information the agent needs, especially with no output schema. Slightly run-on rather than padded.

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?

With no output schema, the description does the work of describing return contents: input/output/cached prices, announced price changes, checked date and source page. Optionality of both parameters is stated. Missing only secondary details such as whether a model filter must match a provider, or result ordering/size when unfiltered.

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 coverage is 100% and both parameters already carry descriptions including examples and provider values. The description only restates that filtering is optional and limited to one provider or model, adding marginal meaning such as the single-provider restriction. Baseline 3 is appropriate.

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

Purpose4/5

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

Names a specific resource and its scope: verified USD-per-million-token API prices for OpenAI, Anthropic and Google models, covering input, output and cached input. An agent knows exactly what data comes back. It stops short of differentiating from near-identical siblings such as get_pricing or recent_price_changes, which creates real ambiguity about which to pick.

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

Usage Guidelines2/5

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

"Optionally for one provider or model" describes optional filtering, not when to use this tool versus alternatives. With siblings named get_pricing, compare_costs and recent_price_changes, the absence of any routing guidance (e.g. use this for a current price lookup, use recent_price_changes for history) is a meaningful gap.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources