Skip to main content
Glama

fulfill_payment

Recover VPN credentials after payment fulfillment fails by exchanging the already-broadcast payment signature and settlement transaction; creates no new invoice or sends funds.

Instructions

Recovery only: exchange an already-broadcast payment for VPN credentials. Requires plan, invoice_no, payment_signature, settlement_tx from a prior buy_vpn/sign_and_pay. Does not create a new invoice or send money. Use when fulfill failed after payment — never call buy_vpn again. Returns the same vpn credential shape as buy_vpn, including socks5_port/socks5_connection_string when the plan includes SOCKS5.

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": {
      "plan": "<plan>",
      "invoice_no": "<invoice_no>",
      "payment_signature": "<payment_signature>",
      "settlement_tx": "<settlement_tx>"
    },
    "name": "fulfill_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
planYes
countryNo
invoice_noYes
settlement_txYes
payment_signatureYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv1.0.0

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description carries the load well: it declares the read-of-prior-artifacts model, that no funds move and no invoice is created, and describes the return shape including socks5_port/socks5_connection_string conditionally. It stops short of stating idempotency or what happens if the settlement_tx was already redeemed, which would matter for a recovery operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the critical constraint ('Recovery only') in the first three words, then layers requirements, exclusions, and return shape. No sentence is redundant.

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?

With no annotations and no output schema, the description covers everything an agent needs: when to call, what to supply and from where, what it explicitly must not do, and what the response contains. The absence of structured data is fully offset.

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 coverage is 0%, so the description must compensate, and it does: it names all four required parameters and, crucially, tells the agent where they come from (a prior buy_vpn/sign_and_pay). The optional 'country' parameter is never explained, leaving one gap.

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?

States a specific verb (exchange) and resource (an already-broadcast payment → VPN credentials) and immediately scopes it as 'Recovery only.' It is clearly distinguishable from buy_vpn and sign_and_pay, which it names as the origin of its inputs.

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?

Gives an explicit trigger ('Use when fulfill failed after payment') plus an explicit prohibition ('never call buy_vpn again') and states what it does not do (no new invoice, no money sent). An agent has an unambiguous decision rule.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.