Skip to main content
Glama

Pay a quote from the API balance

order
Idempotent

Buys what a quote is for, charging its price to the account's prepaid API balance (never a card). At most $50 an order and $200 a day. Episodes that are never transcribed are refunded automatically. Needs the "order" scope.

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": {
      "quote_id": "<quote_id>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "order"
  }
}

Input Schema

NameRequiredDescriptionDefault
quote_idYes
idempotency_keyYesAny unique string; retrying with the same one never pays twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare this is a non-read-only, idempotent, non-destructive operation, and the description adds meaningful context: charges go to prepaid API balance, never a card; spending limits apply; untranscribed episodes are refunded; and the order scope is required. The only notable gap is that it does not describe the return value or failure behavior.

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 compact and front-loaded: payment method, spending limits, refund behavior, and auth scope are all stated in a few efficient sentences.

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 payment mutation tool, the description covers the critical behavioral context: funding source, limits, refund policy, and scope. It is slightly incomplete because it does not describe the result of a successful order, though the lack of an output schema makes that less critical.

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?

The schema documents idempotency_key fully, but quote_id has no schema description. The prose implies quote_id identifies the quote being paid, yet it does not explain where to obtain it or add constraints beyond the UUID format in the schema.

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 states a specific action and resource: it buys/pays for a quote using the prepaid API balance. It is clear enough to distinguish from quote-generation tools, though it does not explicitly contrast with checkout_quote or other siblings.

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?

It gives important constraints ($50 per order, $200 per day, requires order scope) and implies this is used with a quote_id. However, it does not explicitly say when to use this instead of checkout_quote or other ordering/payment siblings.

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