Skip to main content
Glama
QuickRouter MCP Server

QuickRouter MCP Server

estimate_cost

Read-onlyIdempotent

Calculate USD charges for uncached text chat from published QuickRouter rate tiers using model, input/output token counts, optional request count, and billing group.

Instructions

Estimate USD charges for uncached text chat from published QuickRouter rate tiers. Uses token counts per request and an optional repeat count and billing group.

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>",
      "input_tokens": "<input_tokens>",
      "output_tokens": "<output_tokens>"
    },
    "name": "estimate_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupNoExact billing group ID; omit to compare published groups.
model_idYesExact ID or a unique partial model ID or name.
requestsNoNumber of requests with the same token counts.
input_tokensYesUncached text input tokens per request.
output_tokensYesText output tokens per request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, lowering the bar. The description adds useful behavioral scope: only uncached text chat is covered and rates come from published tiers, which tells the agent what the estimate excludes. It stops short of stating accuracy caveats or whether the result reflects current vs. snapshot 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?

Two tight sentences with the core purpose front-loaded and the inputs summarized second. No filler, though the second sentence largely duplicates information already in the 100%-covered schema.

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 read-only estimation tool with fully documented parameters and no output schema, the description gives enough to call it correctly and know what the result represents (USD charges). Minor gaps around estimate precision or rate-tier staleness are not critical.

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 baseline is 3. The description restates token counts per request and the optional repeat count and billing group, which aligns with the schema but adds no syntax or edge-case detail beyond it.

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 (USD charges) with clear scope: 'uncached text chat from published QuickRouter rate tiers.' This distinguishes it from get_model_pricing by framing it as a cost calculation rather than a pricing lookup, though it never names the sibling explicitly.

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?

The scope is strongly implied by 'uncached text chat' and the mention of token counts, but there is no explicit when-to-use guidance, no statement of when to prefer get_model_pricing, and no mention of prerequisites or limitations on the estimate.

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