Skip to main content
Glama

xpayr_submit_agent_payment_intent

Submit an AI agent payment intent for real-time evaluation against merchant spending policies, returning approved, pending approval, or rejected status.

Instructions

Submit an autonomous AI agent payment intent evaluated in real time against merchant spending policy guardrails (returns approved, pending_approval, or rejected).

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": {
      "amount": "<amount>",
      "currency": "<currency>"
    },
    "name": "xpayr_submit_agent_payment_intent"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesRequested payment amount (e.g., 25.00).
reasonNoJustification or invoice memo for the AI agent payment.
networkNoTarget network key (e.g., arc-testnet, base-mainnet, solana-mainnet).arc-testnet
currencyYesRequested token symbol (e.g., USDC, USDT).USDC
recipient_addressNoDestination wallet or merchant settlement address.
external_referenceNoExternal task, tool, or invoice correlation ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose useful behavior: the intent is evaluated in real time against merchant spending policy and can return approved, pending_approval, or rejected, which tells the agent the call may not result in an immediate charge. It omits whether a policy rejection moves funds, whether the call is idempotent, and what triggers each status.

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?

One front-loaded sentence with the key concept first and the possible outcomes in parentheses. Nothing is wasted and nothing important is buried.

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 six-parameter mutation with no annotations and no output schema, the description covers the outcome states but not the follow-up workflow for pending_approval or rejected, nor idempotency or permission requirements. It is adequate but leaves meaningful gaps for an agent deciding how to proceed after the call.

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 every parameter including amount, currency, network, reason, recipient_address, and external_reference is already documented. The description adds no parameter-level meaning beyond the schema, so the baseline of 3 applies.

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 specific verb and resource — submitting an autonomous AI agent payment intent — and adds that it is evaluated in real time against merchant spending policy. It is clearly distinguishable from siblings like xpayr_approve_agent_intent or xpayr_list_agent_payment_intents, though it doesn't explicitly name those alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance. The agent can infer this is the entry point that creates an intent, but nothing says how it relates to xpayr_create_payment_session or that a pending_approval result must be followed by xpayr_approve_agent_intent or xpayr_reject_agent_intent.

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