Skip to main content
Glama

pay service

pay_service
Idempotent

Use this when your task needs a paid x402 service (a data or AI API that answers 402): SWOGE pays it for you in USDC and bills the key owner (from their dollar credit, or in $SWOGE), within the limits the owner set for this API key (payments off by default; per-call cap up to $0.10; optional allowed sites). Only services of the public x402 catalogue; paid only if the service answers 200. Always send a new idempotency_key per payment: the same key never pays twice. Every attempt is written to a hash-chained audit (payment_audit).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYeshttps URL of the paid service
bodyNoJSON body (POST)
queryNoquery parameters (GET)
methodNo
max_usdNooptional: a lower cap for this call
idempotency_keyYes8 to 100 characters, unique per payment

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?

Annotations cover only the coarse safety profile (openWorld, idempotent, non-read-only), while the description discloses the real behavioral traits: payments off by default, per-call cap up to $0.10, optional allowed sites, billing source (dollar credit vs $SWOGE), the 200-only billing rule, and the hash-chained audit entry per attempt. That is substantive context an agent cannot get from the 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?

Front-loaded with the 'use this when' trigger and otherwise dense with operational constraints; every clause earns its place. It is on the long side as a single block, which slightly hurts scanability.

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 payment-mutation tool with no output schema and no schema for linked tools, the description covers the money flow, limits, idempotency, and audit trail well. It does not describe what the call returns (presumably the upstream service response), which is the one remaining gap.

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 83%, so the fields are largely documented already. The description adds genuinely new semantics for idempotency_key ('the same key never pays twice') and ties max_usd to the owner cap, going beyond the schema's terse field notes.

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+resource: it pays a paid x402 service in USDC and bills the key owner. It clearly distinguishes itself from discovery siblings like search_x402_services and from payment_audit, which records the attempts.

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?

'Use this when your task needs a paid x402 service (a data or AI API that answers 402)' gives a clear trigger condition, and it specifies the catalogue restriction and the owner-set limits that gate usage. It stops short of explicitly routing the agent to search_x402_services for services not yet known, leaving that inference to the agent.

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