Skip to main content
Glama

ARCNM pay

Preview cost

preview_cost
Read-onlyIdempotent

What-if on a paid result: what one part or component of it costs at another lot size, as its itemised cost sheet at lot_size, from the paid result; nothing new is calculated. Answers: status paid, view cost_sheet, with the item, environment and lot_size it states. Read-only and free.

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": {
      "purchase_id": "<purchase_id>",
      "result_token": "<result_token>"
    },
    "name": "preview_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemNoOne item, from 1.
lot_sizeNoThe lot of `view=cost_sheet`.
componentNoOne component, by its key in `components`.
environmentNoOne environment, by id.
purchase_idYesThe purchase's id (a UUID).
result_tokenYesThe result_token the paid answer carried (30 days).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real value beyond that with 'nothing new is calculated' (a fidelity/no-recompute caveat) and 'free' (no billing impact). It still does not say what happens with an invalid or expired result_token, nor what the returned sheet looks like.

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

Conciseness2/5

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

The definition is a single run-on sentence that repeats the same idea twice ('what ... it costs at another lot size' and 'from the paid result'), and the trailing 'Answers: status paid, view cost_sheet, with the item, environment and lot_size it states' is cryptic and unparsable as written. The front-loaded 'What-if on a paid result' is good, but overall the wording obscures rather than clarifies.

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?

With six parameters, no output schema, and a read-only preview that echoes item, environment and lot_size, the description should clearly state what the agent gets back and under what conditions it fails. The 'Answers: status paid, view cost_sheet' fragment gestures at the return but is too ambiguous to stand in for an output schema, leaving a real 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%, so all six parameters are already documented and the baseline is 3. The description does tie lot_size to the cost_sheet view and clarifies that item/component select a single part of the result, but it adds no formats, defaults, or constraints beyond what the schema states.

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?

It names a specific operation on a specific resource: re-costing one item or component of an already-paid result at a different lot_size, returning an itemised cost_sheet. The opening 'What-if on a paid result' plus 'nothing new is calculated' pins down the semantics. It does not name or contrast the siblings get_result or price_parts, so an agent must infer that this is the what-if variant.

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 phrase 'What-if on a paid result' implies the precondition (you must already hold a paid result with a result_token) and the intent (see cost at another lot size). However, there is no explicit 'use this instead of X' routing against get_result or price_parts, and no statement of when not to use it (e.g., when nothing has been paid for yet).

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