Skip to main content
Glama

purchase_credits

Idempotent

Purchase organization-bound prepaid service credits in USD cents. Requires billing scope and an idempotency key. A live 402 response returns an MPP card-payment challenge; retry the same purchase/key with payment_authorization separately from the account Bearer token. Authenticated provider confirmation credits the balance exactly once. Sandbox purchases are simulated. Cards are supported; stablecoins are not enabled.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
automaticNoUse a previously recorded bounded funding mandate; false for an ordinary one-time purchase.
amount_centsYesPurchase amount in USD cents, from 50 ($0.50) to 100000 ($1000); live account spending and launch limits also apply.
idempotency_keyYesCaller-generated key, 8–128 letters, digits, underscores, dots, colons or hyphens. Reuse for retries of the same purchase or operation. Different input with the same organization-bound key returns a conflict.
payment_authorizationNoMPP card authorization responding to this purchase's payment_challenge. Omit on the first call; never place the account Bearer token here.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / amount_cents / description
      Added value: +"Purchase amount in USD cents, from 50 ($0.50) to 100000 ($1000); live account spending and launch limits also apply."
    • addedInput schema / properties / automatic / default
      Added value: +false
    • addedInput schema / properties / automatic / description
      Added value: +"Use a previously recorded bounded funding mandate; false for an ordinary one-time purchase."
    • addedInput schema / properties / idempotency_key / description
      Added value: +"Caller-generated key, 8–128 letters, digits, underscores, dots, colons or hyphens. Reuse for retries of the same purchase or operation. Different input with the same organization-bound key returns a conflict."
    • removedInput schema / properties / idempotency_key / maxLength
      Removed value: -4096
    • removedInput schema / properties / idempotency_key / minLength
      Removed value: -1
    • addedInput schema / properties / idempotency_key / pattern
      Added value: +"^[A-Za-z0-9_.:-]{8,128}$"
    • addedInput schema / properties / payment_authorization / description
      Added value: +"MPP card authorization responding to this purchase's payment_challenge. Omit on the first call; never place the account Bearer token here."
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources