Skip to main content
Glama

preview_cost

Read-onlyIdempotent

Return an expected cost estimate, latency estimate, and success-probability estimate for a proposed call before execution. Returns the exact price when it is fixed, and a min/max range when the cost depends on channel or outcome. It does not promise an accuracy percentage - check cost_range.

EXAMPLE USER QUERIES THAT MATCH THIS TOOL: user: "How much will this SMS cost me?" -> call preview_cost({"operation": "send_message", "params": {"preferred_channel": "sms"}}) user: "Estimate the cost of booking via voice fallback" -> call preview_cost({"operation": "schedule_appointment", "params": {"preferred_channel": "voice"}})

WHEN TO USE: Use before any operation when the agent is operating under a budget constraint and needs to decide whether to proceed. WHEN NOT TO USE: Do not use in a hot loop — cache the result for at least 60 seconds if repeating the same preview. COST: free - no key required LATENCY: ~100ms

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYesThe same request body you would pass to the operation
operationYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Major behavioral traits are disclosed beyond annotations: the response may be exact or a min/max range depending on channel/outcome, it 'does not promise an accuracy percentage - check cost_range,' and the cost is free with ~100ms latency. These details inform the agent's expectations and are not visible in the annotations or schema.

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?

The description is organized into clear sections (summary, examples, when to use, when not to use, cost, latency) with no filler. Every sentence contributes decision-relevant information, and the core purpose is front-loaded in the first sentence.

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

Completeness5/5

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

Given there is no output schema, the description explains what the response will contain (cost, latency, success-probability, exact vs range, cost_range field). It also covers usage constraints, caching, cost, and latency, so an agent has enough information to invoke the tool correctly without needing additional context.

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?

The schema only describes 'params' and leaves 'operation' undocumented (50% coverage). The description compensates with two concrete call examples showing the shape: preview_cost({"operation": "send_message", "params": {"preferred_channel": "sms"}}). It adds meaningful context for both parameters, though it does not explicitly define 'operation' in prose.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Return an expected cost estimate, latency estimate, and success-probability estimate for a proposed call before execution.' It clearly differentiates from siblings by being the only tool about cost preview, and it provides concrete example queries that demonstrate the intended use.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit WHEN TO USE guidance ('Use before any operation when the agent is operating under a budget constraint and needs to decide whether to proceed') and WHEN NOT TO USE guidance ('Do not use in a hot loop — cache the result for at least 60 seconds') are both present. Although no alternative sibling is named, none of the siblings serve a similar purpose, so this is complete.

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.

TDQS

A4.1/5.0
Disambiguation4/5

The three company-verification tools (verify_company_record, screen_sanctions, lookup_us_contracts) are clearly distinct by data source and purpose. get_status and get_outcome are the main potential confusion, but their lifecycle boundary (pending vs completed) is explicitly described.

Naming Consistency2/5

Naming mixes multiple verb styles: get_outcome/get_status, lookup_us_contracts, preview_cost, screen_sanctions, self_test, verify_company_record. There is no consistent verb_noun or resource-oriented pattern across the set.

Tool Count4/5

Seven tools is a reasonable count for a company-verification/due-diligence server. However, three of them (get_status, get_outcome, preview_cost) are generic infrastructure that feel bolted on rather than part of the core verification workflow.

Completeness3/5

The core verification surface covers company registry existence, sanctions screening, and US federal contracts, which addresses common due-diligence queries. The set is incomplete as a whole because get_status/get_outcome depend on async operations that no included tool can initiate, and preview_cost references operations unrelated to company verification.