Skip to main content
Glama
UQPAY MCP Server

UQPAY MCP Server

Official
by uqpay

payment_refund_create

Create a refund for a payment by providing the payment intent ID, refund amount, and reason; optionally specify a payment attempt or sub-account.

Instructions

Create a refund for a payment.

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": {
      "payment_intent_id": "<payment_intent_id>",
      "amount": "<amount>",
      "reason": "<reason>"
    },
    "name": "payment_refund_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesRefund amount as decimal string, e.g. "50.00". Must be a string, not a number.
reasonYesReason for the refund
metadataNoKey-value metadata
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_intent_idYesPayment intent ID to refund
payment_attempt_idNoSpecific payment attempt ID to refund. Defaults to the latest successful attempt.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/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 behavioral burden, but it only restates that a refund is created. It does not mention side effects, idempotency, permissions, reversibility, or financial implications.

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 single sentence is front-loaded and free of clutter. Its terseness is a limitation for understanding, but the structure itself is clear.

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 financial mutation with six parameters, no annotations, and no output schema. The description does not explain return behavior, refund semantics, or operational constraints, leaving a major gap.

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 six parameters are already documented in the input schema. The description adds no additional parameter meaning, which is acceptable but not helpful.

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: create a refund. It is distinguishable from list/retrieve refund siblings by the verb. It does not clarify whether it is full/partial or how it relates to payment intent operations.

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?

It gives no guidance on when to use this tool versus refund retrieval/listing or payment cancellation. There are no prerequisites, exclusions, or notes about partial refunds.

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