Skip to main content
Glama

agentpay — card-funded wallets for AI agents

Pay a service

pay_service

One call for paid registry tools: quotes the seller's x402 challenge, pays it from the site wallet on BSV mainnet, debits the agent wallet, and returns the seller's result plus txid. If the seller rejects the payment, the debit is refunded. Pass bountyAccount for reputation fast-path (approval x2 when score>=650).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyNoAgent key (agp_…). Optional when the MCP connection sends Authorization: Bearer.
refNo
toolYesTool name on that service
dryRunNoSandbox: quote + policy check only, no debit or settlement
paramsNoTool arguments (body for POST, query for GET)
serviceIdYesRegistry service id (from list_services)
approvalIdNoApproval id from a prior approval_required response
amountCentsNoOverride the USD cents charged (min 1 cent default)
descriptionNo
bountyAccountNoBSVBounties account # for trust fast-path

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / bountyAccount
      Added value: +{
      +  "description": "BSVBounties account # for trust fast-path",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • addedInput schema / properties / dryRun
      Added value: +{
      +  "description": "Sandbox: quote + policy check only, no debit or settlement",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it discloses money movement (BSV mainnet, site wallet pay, agent wallet debit), the refund-on-seller-rejection behavior, and the returned artifacts (seller result + txid). It omits auth expectations, approval-flow mechanics, and idempotency/rate behavior, so it falls short of a 5.

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?

Three tight sentences with the core purpose front-loaded, then refund behavior, then the optional fast-path parameter. Every sentence carries information, though the middle refund sentence could be folded in and no mention is made of the sandbox dryRun path.

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 10-parameter payment tool with no annotations and no output schema, the description covers the workflow, network, refund guarantee, and return payload. It is still silent on the approval_required path (beyond the bountyAccount hint), error modes, and how dryRun relates to a real settlement, which matters given the financial stakes.

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 80%, so the baseline is 3, but the description adds real meaning beyond the schema for bountyAccount by specifying the reputation fast-path and the approval x2 condition at score>=650 that the schema only labels "trust fast-path." Other parameters (ref, description, amountCents, approvalId) get no elaboration, keeping it below 5.

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?

Names a specific verb chain and resource: quotes the seller's x402 challenge, pays from the site wallet on BSV mainnet, debits the agent wallet, and returns the seller's result plus txid. An agent can distinguish this full pay-and-settle pipeline from the quote-only sibling (service_quote) without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"One call for paid registry tools" implies when to use it, and the bountyAccount note gives a conditional fast-path (approval x2 when score>=650). However, it never names alternatives such as service_quote or the dryRun safety path, nor states when not to pay directly, leaving the agent to infer the quote-first workflow.

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.

Resources