Skip to main content
Glama

Buy credits (creates a crypto invoice)

create_credit_purchase

Create a crypto credit purchase (cpu_...). Returns payment.payment_options with the address/amount to pay (CoinVello's operator wallet) and a hosted checkout_url. Credits are added when the payment confirms. Card purchases and automatic top-up are set up by the merchant in the dashboard, not through this tool. In test mode credits are free, so this is mainly for exercising the flow (pay it with simulate_test_payment).

Input Schema

NameRequiredDescriptionDefault
metadataNoUp to 50 string key/value pairs returned on the object and in webhooks.
bundle_idYesFrom list_credit_bundles, e.g. bnd_growth_15000.
pay_assetNoAsset symbol to pay with, lowercase, e.g. usdt. Requires pay_chain. Omit for every option.
pay_chainNo
expires_inNo
idempotency_keyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Since no annotations are present, the description is highly valuable. It goes beyond the technical API contract by explaining the full business flow: invoice creation -> payment option return -> payment confirmation -> credit addition.

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?

The three sentences are logically structured: the first defines the success/return, the second sets an operational constraint, and the third provides specific testing context, making every sentence serve a distinct purpose.

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?

Despite having no output schema, the description clearly defines what the agent should expect back (a payment option object containing an address and URL), which is necessary for successful tool usage.

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 coverage is only 50%, requiring the description to provide semantic value. While it confirms the nature of the payment (crypto wallet), it does not provide operational guidance on the required bundle_id or metadata construction.

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 clearly states the tool creates a 'crypto credit purchase' and explicitly identifies the output as payment options (address/URL), distinguishing it from sibling tools like get_invoice or list_credit_bundles.

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 provides clear operational boundaries by stating what it does not handle (card/automatic top-ups, which are dashboard features) and gives specific instructions on testing ('pay it with simulate_test_payment').

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.