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

io.github.ufhouck/aicost-cli

estimate_monthly_cost

Calculates daily, monthly, and annual AI API costs from model, request volume, and token usage to budget recurring production workloads.

Instructions

Estimate daily, monthly, and annual AI API costs for a recurring production workload.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "model_id": "<model_id>",
      "requests_per_day": "<requests_per_day>"
    },
    "name": "estimate_monthly_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoDays in billing cycle (default: 30)
batchNoWhether requests use Batch API (default: false)
currencyNoTarget currency code (default: 'USD')
model_idYesModel ID or alias (e.g., 'gpt-6.2-sol', 'claude-sonnet-5.5')
avg_unitsNoAverage units per request (for non-text models)
avg_input_tokensNoAverage uncached input tokens per request
requests_per_dayYesAverage requests per day
avg_output_tokensNoAverage output tokens per request
avg_cached_input_tokensNoAverage cached input tokens per request

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and offers very little: it does not say the result is an approximation versus billed actuals, whether pricing is sourced live or from synced metadata, how currency conversion or batch discounts are handled, or what happens for unknown models. Only the word 'Estimate' signals the approximate nature of the output.

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?

A single front-loaded sentence with the verb, resource, output granularity, and target scenario in that order; nothing is redundant or padded.

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

Completeness3/5

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

For a nine-parameter, no-annotation, no-output-schema tool, the description names the return shape (daily/monthly/annual costs) but omits error behavior, pricing-data dependency, and any caveat about estimate accuracy. Adequate to call the tool, but thin relative to the tool's complexity.

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?

All nine parameters are documented at 100% schema coverage, so the schema already explains model_id, requests_per_day, token averages, batch, days, currency, and avg_units. The description adds no meaning beyond that—it does not clarify the trade-off between avg_units and token fields or which fields matter for text versus non-text models. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

States a specific verb ('Estimate') and resource ('AI API costs') and names the outputs (daily, monthly, annual) plus the intended scenario (recurring production workload). It does not differentiate itself from closely overlapping siblings such as calculate_ai_cost or get_ai_cost, so the agent cannot tell from the text alone which cost tool 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?

The phrase 'recurring production workload' hints at a forecasting use case, but there is no explicit when-to-use, when-not-to-use, or named alternative. No prerequisites (e.g. that model pricing must be known or synced) are stated, leaving the agent to infer selection between the several cost-related siblings.

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