Skip to main content
Glama
UQPAY MCP Server

UQPAY MCP Server

Official
by uqpay

payment_intent_update

Update an existing payment intent by ID to modify its amount, currency, customer details, metadata, return URL, description, split payment orders, or merchant order ID.

Instructions

Update a payment intent.

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

Input Schema

NameRequiredDescriptionDefault
idYesPayment intent ID
amountNoNew payment amount as decimal string
currencyNoISO 4217 currency code
customerNoCustomer details
metadataNoKey-value metadata
return_urlNoURL to redirect customer after payment
customer_idNoCustomer ID to associate with this payment
descriptionNoPayment description
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_ordersNoSplit payment order details
merchant_order_idNoYour unique order ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.4/5.0
Behavior1/5

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

No annotations are provided, so the description carries the full behavioral burden for a mutation tool, yet it discloses no behavioral traits. It does not say whether updates are partial or full replacement, which payment intent states allow updates, whether permissions or idempotency keys are required, or what side effects occur.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of filler, but it is under-specified rather than appropriately concise for an 11-parameter financial mutation tool. Brevity here removes necessary context instead of improving clarity.

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?

With no annotations, no output schema, and 11 parameters including nested objects, the definition is incomplete for the tool's complexity. The parameter schema is rich, but the description supplies no operational context about update semantics, allowed state transitions, or sub-account behavior.

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 the input schema already documents all 11 parameters, including the required id and special fields such as on_behalf_of. The description adds no parameter-level meaning beyond that baseline.

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 states a specific verb and resource: update a payment intent. It is clear enough to distinguish this from read/list/create operations, but it does not differentiate the mutation from siblings such as payment_intent_cancel, payment_intent_capture, or payment_intent_confirm, nor does it indicate what aspects can be updated.

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 guidance on when to use this tool versus payment_intent_cancel, payment_intent_capture, payment_intent_confirm, or payment_intent_create. It also omits prerequisites and state restrictions, leaving the agent to infer usage from the name alone.

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