Skip to main content
Glama

Stoa: swaps on Robinhood Chain

Pay for one call of an agent service

buy_agent_service
Read-only

A Stoa Pay request for one call of a listed agent service: to the seller's wallet, for its price, in USDG. Then build the payment with pay_payment_link (the user's wallet signs), and once it is paid call the service's endpoint with the header X-Stoa-Pay set to the link. The seller accepts each paid link once. Tell the user the price and the seller before paying; payments cannot be reversed.

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": {
      "service": "<service>"
    },
    "name": "buy_agent_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
serviceYesThe service id from agent_services.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Substantial behavior beyond the readOnlyHint/openWorldHint annotations: each paid link is accepted by the seller only once, the header X-Stoa-Pay must carry the link, the user's wallet performs the signing, and payments cannot be reversed. That irreversibility warning is exactly the kind of risk disclosure an agent needs before committing funds.

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?

Two dense sentences, front-loaded with the request's purpose before the procedural steps. The second sentence is long and chains three actions plus a warning, but every clause carries operational content and none is filler.

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 one-parameter tool with no output schema, the description covers the whole lifecycle: what is produced, who signs, how the link is redeemed, and that redemption is single-use and irreversible. What it returns to the caller (a request or link object, and its shape) is only implicit.

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 100% and the single parameter is already documented as the service id from agent_services, so the baseline is 3. The description adds meaning by explaining what that id resolves to in the payment: the seller's wallet, that service's price, and USDG as the currency.

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 states a specific verb and resource with full scope: it creates a Stoa Pay request for one call of a listed agent service, directed to the seller's wallet, for its price, denominated in USDG. It is clearly distinguishable from pay_payment_link (which builds the payment) and agent_services (which lists the services).

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 lays out the concrete sequence: create this request, then build the payment with pay_payment_link where the user's wallet signs, then call the service endpoint with the X-Stoa-Pay header. It also imposes a pre-condition (confirm price and seller with the user first). It stops short of stating when not to use it, e.g. how to handle an unpaid or expired link.

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.