Skip to main content
Glama

SQLPulse PostgreSQL Slow-Query & Lock Diagnostics MCP

estimate_llm_agent_cost

Deterministic multi-turn agent + prompt-cache + 200k-context-cliff FinOps cost calculator for Gemini 4 Argon, Gemini 4 Carbon, Claude Opus 5.5, Claude Sonnet 5.5, Claude Haiku 5.5, and Grok 4.7 Heavy.

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

Input Schema

NameRequiredDescriptionDefault
modelNoCanonical model name or key (Gemini 4 Argon, Gemini 4 Carbon, Claude Opus 5.5, Claude Sonnet 5.5, Claude Haiku 5.5, Grok 4.7 Heavy, or 'all').
turnsNoNumber of agent turns per run (default: 8).
monthly_runsNoTotal agent runs per month (default: 1000).
cache_hit_ratioNoPrompt cache hit ratio between 0 and 1 on accumulated context (default: 0.65).
base_input_tokensNoInitial system + prompt input tokens on turn 1 (default: 12000).
output_tokens_per_turnNoVisible completion tokens generated per turn (default: 1200).
context_growth_per_turnNoNew tool/observation tokens appended per turn (default: 4500).
include_reasoning_tokensNoInclude model reasoning token multiplier (default: true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/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. 'Deterministic' usefully signals a pure computation with no side effects, but the description never states what the result contains (per-turn vs per-run vs monthly totals), what currency or units are used, or how the 200k-context cliff changes pricing.

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 dense sentence with no filler, and the differentiating details (deterministic, prompt cache, context cliff, supported models) are front-loaded. The long model enumeration is somewhat list-like but each item earns its place as a supported-input declaration.

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 an eight-parameter calculator with no annotations and no output schema, the description should say what the estimate returns and how the modeled features surface in the result. It covers inputs and scope adequately but leaves the output shape entirely unspecified, which is the main gap.

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% with all eight parameters documented and defaulted in the schema, so the baseline is 3. The description only restates the model names already listed in the model parameter and adds no semantics for turns, cache_hit_ratio, context_growth_per_turn, or the reasoning multiplier.

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 names the resource (a FinOps cost calculator) and enumerates the exact models covered, plus the three modeling features (multi-turn agent, prompt cache, 200k context cliff). It is a noun phrase rather than a verb phrase, but an agent can still tell immediately that this estimates LLM agent spend, and no sibling tool overlaps that purpose.

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?

There is no guidance on when to call this versus alternatives, no mention of prerequisites, and no statement of when-not to use it. The only implicit cue is the model list, which tells the agent which models are supported but not when an estimate is warranted.

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.