Skip to main content
Glama

pay_x402_invoice

Pay ANY Algorand-settled x402 invoice with any 1-4 routable assets you hold, even holding none of the demanded asset. Pass the accepts entry you picked as invoice (keep its note!) plus your inputs (single input with no amount = minimum solved). Returns UNSIGNED groups — sign all in one pass, submit IN ORDER (swap first; its on-chain floor guarantees the payment is funded; holding the asset already = one direct payment). HOGSWAP credit top-up offers feed this verbatim. EVM invoices unsupported (no bridge). NEVER pass mnemonics or private keys to any tool — signing happens in YOUR wallet, never here.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputsYes
api_keyNo
invoiceYes
user_addressYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations provided, the description fully carries the burden. It discloses key behavioral traits: returns UNSIGNED groups, sign all in one pass, submit IN ORDER, swap-first floor guarantee, and that signing happens in the user's wallet. It also warns against passing mnemonics/private keys, addressing security behavior not captured elsewhere.

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?

The description is dense but every sentence carries necessary information. It front-loads the core purpose, then provides operational details, unsupported cases, and security warnings. Slightly long, but the complexity of the tool justifies the length.

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?

Given the tool's complexity (nested objects, no property schemas, 0% schema coverage), the description is remarkably complete. It covers what settles on Algorand, asset flexibility, return format, signing flow, ordering constraints, swap flooring, unsupported EVM, and security. An output schema exists, so not explaining return values is acceptable.

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. It adds significant meaning to the two core parameters: 'Pass the `accepts` entry you picked as `invoice` (keep its note!)' and 'single input with no amount = minimum solved'. It does not clarify user_address or api_key, but the most complex parameters get meaningful guidance.

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 opens with a specific verb+resource+scope: 'Pay ANY Algorand-settled x402 invoice'. It also adds flexibility details (1-4 routable assets, holding none of the demanded asset) that clearly distinguish it from sibling tools like build_swap or get_quote, which serve different purposes.

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 provides explicit when/when-not context ('EVM invoices unsupported'), operational instructions (pass the accepts entry as invoice, keep its note, single input with no amount = minimum solved), and submission order requirements. It does not explicitly name alternative tools, but the scope is well-defined.

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.

TDQS

A3.9/5.0
Disambiguation5/5

Each tool has a clear, distinct purpose: quoting vs building swaps, managing watches, handling payments, registration steps, and LP valuation. Even related tools like get_credit_offer and pay_x402_invoice are clearly separated as 'create offer' vs 'pay invoice'. No two tools appear to duplicate functionality.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern in snake_case, using verbs like get, list, build, set, delete, pay, register, verify, value. Read operations are consistently divided into get_ (single item) and list_ (collections), and the rest are action-oriented. This makes the API predictable and easy to navigate.

Tool Count5/5

With 12 tools, the server covers its main domains—swap quoting/building, payment, credit management, watch management, agent registration, and LP valuation—without unnecessary bloat. Each tool earns its place, and the count fits comfortably within the typical 3-15 tool range for a well-scoped server.

Completeness4/5

The tool set covers core workflows end-to-end: quote to swap, credit top-up to payment, watch registration to listing/deletion, and two-step agent registration. Minor gaps exist, such as no dedicated get_watch (though list_watches covers it) and no way to inspect past transactions or offers, but agents can work around these without major friction.