Skip to main content
Glama

xpayr_approve_agent_intent

Approve a pending AI agent payment intent from the merchant human-in-the-loop queue and optionally bridge it to a checkout session for controlled autonomous payments.

Instructions

Approve a pending AI agent payment intent from the merchant human-in-the-loop approval queue and optionally bridge it to a checkout session.

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_approve_agent_intent"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoOptional reviewer approval note.
intent_idYesPending agent intent ID to approve.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full burden for a state-changing approval action, yet it discloses no consequences: whether approval triggers an actual payment, whether it is reversible, what permissions/role the reviewer needs, or what the response contains. The mention of 'optionally bridge' further obscures behavior because no parameter exposes that option, so an agent cannot tell how to invoke or suppress bridging.

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 front-loaded sentence that states the action first and the qualifier second, with no padding. The 'optionally bridge' tail is the only element that does not earn its place, since nothing in the schema supports it.

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

Completeness2/5

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

This is a mutation/approval tool with no annotations and no output schema, so the description must supply the behavioral contract and does not. It omits post-approval effects, error conditions for non-pending intents, and how the bridging option relates to the dedicated bridge sibling, leaving an agent without enough to invoke it confidently.

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%, so both parameters (intent_id, note) are already documented in the schema and the description only adds that the intent must be 'pending'. The description instead implies a bridging option that has no corresponding parameter, which slightly reduces rather than increases clarity about the actual inputs.

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?

Specific verb + resource + scope: 'Approve a pending AI agent payment intent from the merchant human-in-the-loop approval queue' clearly identifies the action and the object. It is somewhat muddied by the trailing 'optionally bridge it to a checkout session' clause, which overlaps with the sibling xpayr_bridge_agent_intent_to_checkout and leaves unclear whether this tool also performs bridging.

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 phrase 'pending ... from the merchant human-in-the-loop approval queue' implies the precondition (intent must be pending) and hints at the reviewer workflow. However, it never states when to choose this over xpayr_reject_agent_intent or xpayr_bridge_agent_intent_to_checkout, nor whether bridging here is an alternative to the dedicated bridge tool.

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