Skip to main content
Glama

PrivateByte

Order a product

order_product

Order something that is not a server (a Gateway, a static proxy address, proxy credit) AND pay for it from the account wallet. THIS SPENDS REAL MONEY. Two steps, like create_server. Step 1: call it with only product_id; nothing is ordered, and the reply lists the questions (each option such as the country, billing cycle, quantity, coupon) with choices and prices. Ask the person every question; never choose for them. Step 2: call it again with every answer, the ceiling max_price_minor (whole minor units) and a request_id. Needs a key with orders:create, billing:read and invoices:pay. For servers use create_server.

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": {
      "product_id": "<product_id>"
    },
    "name": "order_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
extrasNoOne entry per option the product has: the option name (or id) mapped to the chosen value name (or id), for example {"ISP Country": "United States"}
quantityNoHow many units
product_idYesFrom list_products
request_idNoAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.
coupon_codeNoA coupon code, or null when the person has none
billing_cycleNoOne of the cycles the product is sold in
max_price_minorNoSpending ceiling for the first invoice, in whole minor units

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations, it warns 'THIS SPENDS REAL MONEY', names the required scopes (orders:create, billing:read, invoices:pay), and describes the dry-run first step and request_id idempotency contract. The annotations only declare readOnlyHint=false and destructiveHint=false, so this added cost and auth context is genuinely valuable. It stops short of saying what happens if the price exceeds max_price_minor or if the wallet balance is insufficient.

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?

Dense but front-loaded: the cost warning and the server exclusion come first, then the two steps in order, then the scopes, then the sibling pointer. No sentence is decorative and the numbered steps mirror the actual call sequence.

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 7-parameter, nested-object, money-spending tool with no output schema and no annotations covering cost, the description covers the critical gaps: money, auth, two-phase flow, and the alternative for servers. It omits failure modes (price above ceiling, insufficient funds) and what the step-2 response contains beyond the implicit success, which keeps it from a 5.

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?

Schema comment coverage is already 100%, so the baseline is 3. The description nonetheless adds cross-field meaning that the schema cannot convey: product_id alone triggers the question-listing mode, step 2 requires every answer plus max_price_minor as a ceiling and a request_id for retry safety. It does not explain how the extras object keys map to the questions returned, but the overall flow semantics are clarified.

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 gives a specific verb and resource ('Order something that is not a server'), enumerates the product types covered (Gateway, static proxy address, proxy credit), and explicitly routes server purchases to the sibling create_server. An agent can distinguish this from create_server and list_products without opening any schema.

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?

It spells out an exact two-call protocol (step 1 with product_id only, step 2 with all answers), states that step 1 orders nothing, instructs the agent to ask the user every question and never choose for them, and names the alternative tool for servers. Both the when-to-use and the when-not-to-use cases are explicit.

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