get_checkout_link

Get a link to buy credits with Wavegrain's MCP server: the get_checkout_link tool needs the read permission. Inputs, outputs and an example call.

Get a link to buy credits. Permission: read. Read-only: changes nothing.

Wavegrain's billing page for more credits (paid plans) or another plan. The user picks and pays there; you never pay. Free.

Inputs

InputTypeRequiredNotes
want"credits" | "plan"nocredits: a one-time credit pack (paid plans); plan: choose or change a plan. default "credits"

The fields inside an object or a list are in the JSON Schema at /developers/mcp-tools.json.

Returns

FieldTypeNotes
linkstringOpens Wavegrain's checkout; the user pays there, never in the chat.
balancenumberCredits the user has now.
planstringThe user's plan key.
optionsobject[]Pack credits never expire; plan credits are per month.
notestringWhat to tell the user.

Example call

Send it to POST https://wavegrain.com/api/mcp with an access key that has the read permission; Authentication shows how to make one.

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_checkout_link",
    "arguments": {}
  }
}

Something wrong or missing? Write to support@wavegrain.com.