Skip to main content
Glama

Purchase

debitmydata_purchase

Start a purchase with the chosen payment option.

did_registration: returns a payable quote (the same as debitmydata_create_did_payment_quote).

Add-ons for a DID-LLM (bottybotty_entry, bottybotty_standard, bottybotty_premium): returns a payable quote for details.did; for a higher BottyBotty tier than the one owned, it charges the difference. Pay it, wait for debitmydata_get_payment_status to say "settled", then debitmydata_complete_purchase.

Donations (inference_donation, USDC on Base through x402): call with the amount; it fails with the x402 payment requirements. Sign them with your wallet and call again with the same details and x402_payment. The answer is the donation with a receipt signed by DebitMyData, or its status_url while the payment confirms. Sending the same payment again returns the same donation.

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": {
      "product_id": "<product_id>",
      "preferred_payment_option": "<preferred_payment_option>",
      "details": "<details>"
    },
    "name": "debitmydata_purchase"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailsYesProduct-specific fields. For did_registration: display_name, participant_type, controller_public_key and/or controller_wallet_address (with optional controller_network), and optionally metadata. For a donation (inference_donation): amount_usd, and optionally donor_name and donor_did. For an add-on (such as bottybotty_entry): did, the DID-LLM it is for
product_idYesProduct ID from debitmydata_catalog
x402_paymentNoDonations only: your signed PaymentPayload (x402 version 2) answering the payment requirements this tool returned. It may also be sent in the request's _meta['x402/payment'].
idempotency_keyNodid_registration only: optional random key (16-128 characters) for safe retries
preferred_payment_optionYesPayment option ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare it is a non-read-only, non-destructive, closed-world call; the description goes well beyond that by disclosing the failure mode (first donation call fails with x402 payment requirements), the retry contract (sending the same payment returns the same donation, idempotency key for did_registration), and the response shape (payable quote, signed receipt, or status_url). Prorated charge behavior for a tier upgrade is also surfaced, which an agent could not infer from annotations.

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 single-line purpose is front-loaded, followed by clearly segmented paragraphs per product type, so readers can jump to the relevant flow. It is on the long side and repeats the parenthetical sibling comparison, but nearly every sentence carries procedural information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter, nested-details, multi-mode mutation tool with no output schema, the description covers the full lifecycle of each mode, including post-call steps (poll status, then complete_purchase) and return semantics (quote, receipt, status_url). An agent has enough to invoke and follow through correctly.

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 100%, so the baseline is 3; the description adds real meaning on top by tying parameter usage to each mode — 'call with the amount' for donations, the same details plus x402_payment on the second call, and the idempotency behavior for did_registration. It does not explain the source or format of preferred_payment_option, but the schema already describes it as a payment option ID.

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?

Opens with a specific verb+resource ('Start a purchase with the chosen payment option') and then enumerates the distinct product modes (did_registration, DID-LLM add-ons, donations), so an agent can tell what each invocation path does. It even equates the did_registration path with a sibling (debitmydata_create_did_payment_quote), which aids disambiguation. It does not, however, contrast itself against debitmydata_get_purchase_quote or debitmydata_open_checkout, leaving some sibling ambiguity.

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?

Gives explicit sequencing for the standard flow: get a quote, pay, wait for debitmydata_get_payment_status to report 'settled', then call debitmydata_complete_purchase. The donation path is equally explicit about the two-call x402 handshake. What is missing is when NOT to use this tool (e.g., vs. a pure quote tool) or prerequisites such as where preferred_payment_option comes from.

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.