Skip to main content
Glama

Quote credit purchase

create_billing_order
DestructiveIdempotent

Prepare a one-time credit quote for an eligible active USD subscriber, without paying or generating. Use a fresh UUID for a new quote and reuse it for quote retries. Show seller, beneficiary team, credits, total, currency, taxes, fees, expiry and refund terms before asking approval. API keys inherit their owner's team billing permissions; OAuth integrations require explicit billing consent in VideoGen.

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": {
      "orderId": "<orderId>",
      "credits": "<credits>"
    },
    "name": "create_billing_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
creditsYes
orderIdYes

Output Schema

NameRequiredDescriptionDefault
stateYesPayment and credit fulfillment state.
sellerNoSeller of record.
teamIdNoBeneficiary team id.
creditsNoCredits purchased by this order.
orderIdYesClient-generated order UUID.
currencyNoOrder currency.
revisionYesQuote revision to approve when completing.
taxMinorNoTax in minor units.
teamNameNoBeneficiary team name.
expiresAtNoQuote expiry in Unix seconds.
feesMinorNoFees in minor units.
receiptUrlNoReceipt URL once paid.
totalMinorNoTotal to approve, in minor units.
refundTermsNoRefund terms to show before approval.
refundStatusNoRefund request status, separate from the payment state.
discountMinorNoDiscount in minor units.
retryGuidanceNoHow to safely resolve or retry this order.
subtotalMinorNoSubtotal in minor units.
verificationUrlNoSecure verification continuation for the purchaser, when required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=true), the description discloses the authorization model — API keys inherit the owner's team billing permissions while OAuth integrations need explicit billing consent in VideoGen — plus the no-charge/no-generation guarantee and the approval gating step. The orderId-retry rule reinforces the idempotency hint with concrete semantics rather than just restating it.

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?

Four sentences, front-loaded with the core action and its no-payment constraint, followed by idempotency, display requirements and auth. The long field list ("seller, beneficiary team, credits, total, currency, taxes, fees, expiry and refund terms") is dense but is genuinely actionable instruction, not filler.

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?

With an output schema present, the description need not explain return values, and it covers the areas that matter for a financially sensitive, idempotent create: authorization, approval workflow, and effect boundaries. It leaves undefined what makes a subscriber "eligible" and what error/failure behavior to expect on an invalid or expired quote.

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 description coverage is 0%, so the description must carry the load; it explains orderId as an idempotency key (fresh for a new quote, reused for retries), which the schema's UUID pattern cannot convey. It says less about credits beyond naming it in the displayed terms, leaving the units/step constraints to the schema's own minimum/maximum/multipleOf keywords.

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 ("Prepare a one-time credit quote") and immediately scopes it as a quote only — "without paying or generating" — which separates it from complete_billing_order or cancel_billing_order without needing to name them. It also states the eligible audience (active USD subscriber), so an agent knows both the action and the precondition.

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?

It gives concrete operational guidance: use a fresh UUID for a new quote, reuse it for retries, and present the full terms before requesting approval. What is missing is an explicit pointer at the lifecycle siblings (complete_billing_order, cancel_billing_order, get_billing_order) for what happens after the quote is approved.

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.