Skip to main content
Glama

RenewalMath: verified small-business software prices

Estimate AI usage cost

estimate_ai_cost
Read-onlyIdempotent

Monthly cost of an AI workload at verified list prices: requests per day, tokens in and out per request, and the share of input served from cache. Returns every tracked model (or the ones named) by cost, cheapest first. Cost only: models differ in capability and in tokens used per task.

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_ai_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelsNoOptional model names or ids to limit the result to
cached_shareNoShare of input tokens served from the prompt cache, 0 to 1. Default 0.
input_tokensNoInput tokens per request. Default 2000.
output_tokensNoOutput tokens per request, including reasoning tokens. Default 500.
requests_per_dayNoRequests a day. Default 1000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description's added value is the output shape: it returns every tracked model or the named subset, sorted cheapest first, at 'verified list prices.' That ordering and scoping detail is genuinely useful and not present in the annotations, though currency and whether prices include discounts are unstated.

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 core definition is front-loaded in the first clause, and the sort order plus the capability caveat follow compactly. The trailing fragment 'Cost only: models differ in capability and in tokens used per task' is slightly clipped but still earns its place as a scope warning.

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 five optional parameters and no output schema, the description supplies the return ordering and result scope, which is what an agent most needs. The main remaining gap is that the cost basis is only loosely specified — 'verified list prices' and 'monthly' leave currency and any billing assumptions unstated.

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%, so all five parameters and their defaults are already documented in structured form. The description restates the same dimensions (requests per day, tokens in and out, cache share) without adding units, format, or edge-case behavior beyond the schema, so the baseline 3 applies.

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 resource and computation: monthly cost of an AI workload from requests/day, tokens in/out, and cache share. It is clearly an estimation tool rather than a pricing lookup, though it never names a sibling (e.g. compare_costs or get_model_pricing) to sharpen the boundary.

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?

Usage is implied by the enumerated inputs and the caveat 'Cost only: models differ in capability and in tokens used per task,' which signals this is not a capability comparison. However, no explicit when-to-use or when-to-prefer-an-alternative guidance is given, and the sibling that would handle multi-scenario comparison is never referenced.

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