Skip to main content
Glama

Pay an x402 payment link

swop_pay_x402_link
Destructive

Pay an external x402 payment link (any https URL that returns an HTTP 402 USDC challenge) from the linked user's Swop wallet, within their caps. TWO-STEP like swop_send: call WITHOUT confirm to preview (amount, payee, host, caps), show it to the user and get their explicit yes, then call again with the returned previewId and confirm: true. Over-cap or no delegation returns a Swop-app approval link. Base USDC only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe x402 payment link (https)
confirmNotrue ONLY after the user confirmed the preview
previewIdNoFrom the preview step

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already mark this as destructive (destructiveHint=true), and the description adds meaningful context: the payment is executed from the linked wallet, it is constrained by caps, it is a two-step confirmation process, and it may return an approval link instead of executing. It does not detail reversibility or exact error conditions, but it goes beyond the annotation baseline.

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?

Three compact sentences, front-loaded with the core action and then the two-step protocol and edge conditions. Every sentence contributes behavioral or usage information; there is no filler or repetition of the schema.

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 tool with destructive side effects and no output schema, the description covers the essential workflow, the preview fields returned, the confirmation flag, and the approval-link alternative. It could mention auth requirements or specific error payloads, but an agent has enough context to invoke it correctly.

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 description coverage is 100%, so the baseline is 3. The description adds value by explaining how url, confirm, and previewId interact: previewId comes from the initial call, confirm must be true only after user approval, and the url must be an HTTP 402 USDC challenge. This integrates the parameters into the workflow rather than just defining types.

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 clearly identifies the action as paying an external x402 payment link from the user's Swop wallet, with a specific resource type ('https URL that returns an HTTP 402 USDC challenge') and scope ('within their caps'). This distinguishes it from sibling tools like swop_send while also referencing swop_send as a behavioral model.

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?

Explicitly prescribes a two-step workflow: call without confirm to preview, show the user the preview, get explicit consent, then call again with previewId and confirm: true. It also states the fallback behavior for over-cap or no delegation (returns a Swop-app approval link), giving clear when-to-use and alternative-route guidance.

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

A4.1/5.0
Disambiguation5/5

Every tool targets a distinct resource and action: search_markets is for discovery while get_event_markets is for a single event's full detail, and lookup_identity/search_identities, get_prices/get_price_history, and send/pay_x402_link are all clearly separated. There is no realistic pair of tools an agent would struggle to choose between.

Naming Consistency5/5

All tools follow a consistent snake_case, swop_-prefixed, verb-first pattern such as get_*, search_*, create_*, update_*, send, and pay_*. Even slightly longer names like check_predictions_access stay within the same predictable structure.

Tool Count4/5

21 tools is on the higher side, but the server covers several distinct clusters: prediction-market data, account/wallet info, identity resolution, SmartSite commerce, and payments. Each tool has a clear role, so the count is slightly over the ideal range but still reasonable for the apparent scope.

Completeness3/5

The market data and payment send flows are fairly complete, but lifecycle operations are missing: products can be created and listed but not updated or deleted, swaps are quote-only, and there is no prediction-market order execution tool. These are notable gaps, though they do not block the core send/pay and market-data workflows.