Skip to main content
Glama
CedricConday

Centrapay MCP Server

by CedricConday

create_refund

Refund a paid payment request in minor units (cents). Use an idempotency key to avoid double-refund.

Instructions

Refund a paid payment request. amount is in MINOR units (cents): 2500 = $25.00, must not exceed the original. Requires an idempotencyKey — a refund moves money irreversibly, so a retry without one would double-refund.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesPayment request id to refund
amountYesRefund amount in MINOR units (cents): 2500 = $25.00. Must not exceed the original.
currencyYesCurrency code, e.g. NZD
externalRefYesCaller reference for the refund
idempotencyKeyYesUnique key that makes the refund safe to retry (prevents a double-refund). Reuse the same key for the same logical refund.
Behavior5/5

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

With no annotations, the description fully discloses that refunds move money irreversibly and that retrying without an idempotencyKey could cause double-refund. This is excellent behavioral transparency.

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?

The description is two sentences: first sentence states purpose and key parameter facts, second sentence explains behavioral reasoning. No wasted words, front-loaded.

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

Completeness4/5

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

All 5 required parameters are covered in description or schema. The description explains critical behavior. However, no output schema exists and the description doesn't hint at the return value, which is a minor gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds value by explaining MINOR units with an example (2500 = $25.00) and emphasizing why idempotencyKey is critical, which goes beyond the schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description starts with 'Refund a paid payment request', which is a specific verb and resource. It clearly distinguishes from sibling tools like pay_payment_request and void_payment_request.

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

Usage Guidelines4/5

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

The description explains the need for an idempotencyKey due to irreversible money movement, which provides guidance on safe usage. It implicitly differentiates from voiding but could explicitly state when to refund vs other actions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CedricConday/centrapay-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server