Skip to main content
Glama

Cost-to-Complete Estimate

cost_estimate
Read-onlyIdempotent

Cost-to-Complete Estimate: what will this agent job cost BEFORE it starts? Give the steps (model, input/output tokens, runs, retry rate) with your model prices, and paid tool calls (price, or an x402 URL we quote live without paying). Get the total, a realistic range, the biggest cost, budget fit, value multiple, and how much routing named steps to a cheaper model saves. Deterministic arithmetic. By OMENZ. (MCP calls run in AYNE, the free playzone; production: POST https://www.omenz.org/api/tollbooth/v1/cost-estimate, $0.002 via x402.)

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": {
      "job": "<job>"
    },
    "name": "cost_estimate"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobYesjob

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / job / description
      Added value: +"job"
  2. First observed

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), and the description adds real behavioral context beyond them: the arithmetic is deterministic, x402 URLs are quoted live without being paid, and calls are free in the AYNE playzone but $0.002 in production. Nothing contradicts the annotations; the only gap is that it does not describe failure modes for malformed job specs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The value proposition and required inputs are front-loaded, which is good, but the sentence is dense with stacked parentheticals, and the trailing branding plus endpoint/pricing note interrupts the operational content. Every element is arguably useful, but the packaging is cluttered rather than crisp.

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 a nested required object and no output schema, the description needs to carry both input shape and return values, and it does list the return values (total, realistic range, biggest cost, budget fit, value multiple, routing savings). What is missing is precise guidance on nesting/format of the job object and any error behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Formally coverage is 100%, but the schema entry for the single required parameter is literally 'job', so the structured data conveys nothing about its nested shape. The description compensates by spelling out the expected contents: steps with model, input/output tokens, runs and retry rate, plus paid tool calls with a price or x402 URL. That is a meaningful addition over an opaque nested object, though field names and formats are still not exact.

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 leads with a specific verb and resource: estimate the cost of an agent job before it starts, and enumerates concrete outputs (total, range, biggest cost, budget fit, value multiple, routing savings). It is clearly distinguishable from ledger/finance siblings in intent, though it never names an alternative to compare against.

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?

Timing is implied strongly ('BEFORE it starts'), which tells the agent this is a pre-flight call, and the parenthetical explains the free playzone vs the paid production endpoint. However, there is no explicit statement of when to prefer this over finance_forecast or finance_snapshot, nor any stated prerequisites or exclusions.

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