Skip to main content
Glama
UQPAY MCP Server

UQPAY MCP Server

Official
by uqpay

payment_intent_confirm

Confirms a payment intent to initiate payment by submitting payment method details such as card or PayNow, with optional return URL, IP address, and browser info for 3DS authentication.

Instructions

Confirm a payment intent to initiate the payment. The payment_method structure varies by type. Card example: {"type":"card","card":{"number":"4111111111111111","exp_month":"12","exp_year":"2026","cvc":"123"}}. PayNow example: {"type":"paynow"}. Check available_payment_method_types on the payment intent to see what methods are supported.

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": {
      "id": "<id>"
    },
    "name": "payment_intent_confirm"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesPayment intent ID
ip_addressNoCustomer IP address (recommended for fraud detection)
return_urlNoOverride return URL for this confirmation
browser_infoNoCustomer browser info for 3DS authentication (accept_header, user_agent, java_enabled, language, color_depth, screen_height, screen_width, time_zone_offset)
on_behalf_ofNoSub-account ID to act on behalf of. Pass the short account ID (e.g. "CB4488338944") to operate on a sub-account; omit to operate on the master account.
payment_methodNoPayment method details. Card: {"type":"card","card":{"number":"...","exp_month":"12","exp_year":"2026","cvc":"123"}}. PayNow: {"type":"paynow"}.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a money-moving mutation, yet it never states permission/auth requirements, idempotency or retry behavior, whether confirmation is reversible, or what the caller should expect on failure. The mention of checking supported method types and the 3DS-oriented browser_info in the schema hint at a redirect/authentication flow, but the description does not explain it.

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 core action is front-loaded in the first sentence and the two payload examples are compact and immediately actionable. Some content duplicates the input schema's payment_method description, which is mild waste but not enough to undermine clarity.

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 6-parameter mutation with a nested object, no annotations, and no output schema, the definition covers the request payload well but says nothing about the result of confirmation — status transitions, 3DS challenge handling, or where return_url fits. Adequate to call correctly, incomplete for anticipating what happens 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 is already documented in structured form, and the description's card/PayNow examples largely restate the payment_method schema text. Baseline 3 applies: the description reinforces the polymorphic payment_method shape but adds no meaning beyond the schema for ip_address, return_url, browser_info, or on_behalf_of.

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?

States a specific verb and resource ('Confirm a payment intent') plus the immediate effect ('initiate the payment'), so an agent knows exactly what operation is performed. It does not, however, distinguish this from adjacent siblings such as payment_intent_capture or payment_intent_cancel, which operate on the same object.

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 description gives one useful prerequisite — inspect available_payment_method_types on the intent before choosing a payment_method shape — but offers no guidance on when to confirm versus capture, cancel, or create, nor any exclusion conditions. Usage is implied by the verb rather than explicitly scoped against alternatives.

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

Deploy Server

Other Tools