Skip to main content
Glama

xpayr_bridge_agent_intent_to_checkout

Convert an approved AI agent payment intent into an executable XPayr payment session with a hosted checkout URL and on-chain verification.

Instructions

Bridge an approved AI agent payment intent into a live executable XPayr payment session with hosted checkout URL and on-chain verification.

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": {
      "intent_id": "<intent_id>"
    },
    "name": "xpayr_bridge_agent_intent_to_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
intent_idYesApproved agent payment intent ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It does disclose that the call is a mutation producing a live session and a hosted checkout URL, which is meaningful context. It omits what happens if the intent is not approved, whether the operation is idempotent or repeatable, what permissions are required, and whether an existing session is replaced.

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?

A single dense sentence with the action front-loaded and the outputs appended. No filler or hedging, though it could be split for readability and to give the prerequisite its own sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter bridging tool with no output schema and no annotations, the description covers purpose and rough output but leaves failure modes, idempotency, and the required approval workflow state to inference. Adequate but with clear gaps for a state-transition operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% for the single intent_id parameter, and the schema already states 'Approved agent payment intent ID.' The description repeats the approval qualifier without adding format, source, or validation details, so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a concrete verb ('Bridge') and both resources involved: an approved agent payment intent and a live XPayr payment session. It also enumerates what the bridge produces (hosted checkout URL, on-chain verification). It distinguishes itself implicitly from xpayr_create_payment_session by requiring an intent, though it never names that sibling.

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?

The word 'approved' implies a prerequisite (the intent must already be approved, presumably via xpayr_approve_agent_intent), which is useful implied usage. However, there is no explicit statement of when to choose this tool over xpayr_create_payment_session, nor any exclusion for unapproved or already-bridged intents.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.