Skip to main content
Glama

Estimate monthly AI API cost and margin

estimate_cost
Read-onlyIdempotent

Estimate monthly AI API costs for one model and a SaaS workload, including token and request costs, revenue, gross profit, margin, and break-even points.

Instructions

Estimate the monthly AI API bill for one model and a SaaS workload: token costs (uncached input, cached input, output), cost per request, total cost with other variable and fixed costs, revenue, gross profit, gross margin, break-even price per user and break-even users. Start from a use_case preset and override any number.

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": "estimate_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoModel id or name from list_models, e.g. gpt-6.1-sol or Claude Sonnet 5.5. Default: gpt-6.1-sol.
usersNoMonthly active users.
use_caseNoPreset workload to start from: chat (AI chat assistant), support (support bot), summarizer, documents (document processing). Any number you pass overrides the preset. Default: chat.
custom_ratesNoUse your own rates instead of a listed model, for example a negotiated price or a model not in the list.
input_tokensNoAverage input (prompt) tokens per request.
output_tokensNoAverage output tokens per request.
price_per_userNoSubscription price per user per month in USD, used for revenue and margin.
cached_input_pctNoShare of input tokens served from the prompt cache, 0 to 100.
requests_per_userNoAI requests per user per month.
fixed_monthly_costNoFixed monthly cost in USD, such as hosting and team tools.
extra_cost_per_requestNoOther metered cost per request in USD, such as search, tool calls or storage. Default 0.
variable_cost_per_userNoOther variable cost per user per month in USD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so the safety profile is covered. The description adds valuable behavioral context by enumerating exactly which cost, revenue, profit, margin, and break-even figures are computed, compensating for the absent output schema.

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?

The description is front-loaded with the core purpose and then uses a colon to enumerate outputs, which is appropriate for a tool with no output schema. The single long sentence is dense but every clause maps to a computed result, so there is little wasted wording.

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?

For a 12-parameter calculator with nested custom_rates and no output schema, the description is largely complete: it covers preset usage, override behavior, and all returned financial metrics. Minor gaps remain, such as precedence between model and custom_rates, but the schema covers those details.

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 the schema already explains each parameter in detail. The description reinforces the preset-and-override behavior but adds little beyond what the schema already states for use_case and custom_rates.

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?

The description states a specific verb and resource: 'Estimate the monthly AI API bill for one model and a SaaS workload,' and enumerates the cost and margin outputs. It is clearly distinct from listing or comparing models, but it does not explicitly name or contrast with the sibling tools compare_models and list_models.

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?

It gives procedural guidance ('Start from a use_case preset and override any number') but does not explain when to choose this tool over compare_models or list_models. The implied usage is clear from the cost-estimation framing, but no explicit alternatives or exclusions are provided.

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

Deploy Server

Other Tools