Skip to main content
Glama

mpp-purchase

Destructive

Buy API lookup credits or a one-off plan with Stripe MPP card payment. No BuiltWith API key required. Start without paymentCredential to get a 402 challenge; use an MPP-compatible Stripe wallet to authorize it, then retry the IDENTICAL purchase with paymentCredential. Keep the random UUID idempotencyKey secret and reuse it for retries/status, never for a different purchase. Success returns access_token for mpp-data or Bearer authentication on this MCP connection. This charges only the supplied SPT, never a saved card.

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": "<product>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "mpp-purchase"
  }
}

Input Schema

NameRequiredDescriptionDefault
creditsNo
productYes
tokenHoursNo
idempotencyKeyYes
paymentCredentialNoFull Authorization: Payment ... header value from the Stripe MPP wallet

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

No contradiction with the destructiveHint=true annotation; charging money is exactly a destructive, irreversible operation. The description goes well beyond the annotations by disclosing that only the supplied SPT is charged (never a saved card), the 402 challenge handshake, idempotency-key secrecy and reuse rules, and that success yields an access_token. It stops short of stating charge amounts, refund behavior, or what a failed retry does.

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?

Information-dense and front-loaded: the buy action comes first, then the payment handshake, then the idempotency caveat, then the return value. A few clauses (e.g., the 'secret' warning) could be tightened, but no sentence is redundant given the payment stakes.

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?

For a destructive, open-world payment tool with no output schema and low schema coverage, this covers the critical unknowns: the challenge flow, idempotency, the charge scope, and the returned access_token. The remaining gap is tokenHours and credit-amount semantics, which an agent would have to read from the schema.

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?

Schema coverage is only 20%, so the description must carry the load. It explains idempotencyKey semantics very well (random UUID, secret, reuse for retries/status only) and clarifies paymentCredential's role in the challenge flow, but it says nothing about tokenHours (despite its default and 1–720 range) and gives no credit-quantity bounds. Roughly three of five parameters are enriched; two are left to the schema.

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?

The description states a concrete verb and resource — buying API lookup credits or a one-off plan — and names the payment rail (Stripe MPP card). The 'MPP' framing implicitly separates it from the x402/payment-purchase siblings, but it never names them explicitly, so the differentiation is inferential rather than stated.

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 an unusually precise two-step protocol: call without paymentCredential to receive the 402 challenge, authorize with an MPP-compatible wallet, then retry the IDENTICAL purchase with paymentCredential. What is missing is any statement of when to prefer this over x402-credit-purchase or payment-purchase, or prerequisites like an existing balance.

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.