Skip to main content
Glama

Price an order before buying

preview_order
Read-onlyIdempotent

Price an order before buying

What booking a plan, changing or renewing a subscription or buying add-ons would cost, with VAT, term and whether it is refused (refusal). Nothing is charged. Buy with POST /billing/orders.

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": {
      "kind": "<kind>"
    },
    "name": "preview_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes`subscription_book` a new plan, `subscription_change` another plan, `subscription_renew` the running term again, `addon` extra minutes or conversations.
planIdNoFor `subscription_book` and `subscription_change`: `id` from `GET /billing/plans`.
timingNoFor `subscription_change`.
quantityNoFor `addon`.
addonTypeNoFor `addon`.
subscriptionIdNoFor `subscription_change` and `subscription_renew`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered; the description usefully confirms no charge occurs and adds that a `refusal` outcome and VAT/term are returned. It does not describe the shape of the priced response beyond refusal, nor any permission or rate-limit considerations.

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?

Short and front-loaded: purpose first, then what the result contains, then the buy alternative. The middle clause ("What booking a plan, changing or renewing...") is slightly convoluted but earns its place by scoping the priced actions.

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 pricing tool with full schema coverage and no output schema, the description gives enough context to call it correctly and tells the agent the response includes cost, VAT, term and refusal. A brief note on what else the priced result contains would close the remaining 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 coverage is 100% and each parameter already carries a description tying it to a `kind` value, so the description adds essentially nothing new about parameters. Baseline 3 is appropriate when the schema does the work.

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 names a specific verb and resource ("Price an order before buying") and enumerates exactly which operations are priced: booking a plan, changing or renewing a subscription, buying add-ons. It reads clearly against place_order because it states "Nothing is charged" and points to the buy path.

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

Usage Guidelines4/5

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

Usage is clear: price first, then "Buy with `POST /billing/orders`", which names the alternative channel explicitly. It covers the four priced scenarios but gives no exclusions or prerequisites (e.g., auth/plan availability) that would make selection fully unambiguous.

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.