Skip to main content
Glama
Woovi MCP Server

Woovi MCP Server

by izaakdias

create_refund

DestructiveIdempotent

Refunds a paid Pix charge back to the payer, supporting full or partial amounts by charge ID. Confirm the charge and refund amount with the user before calling, since this moves money.

Instructions

Refund a paid charge back to the payer via Pix. MOVES MONEY: confirm charge and amount with the user before calling. Idempotent per correlation_id.

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": {
      "charge_id": "<charge_id>"
    },
    "name": "create_refund"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoWhy; shown on the refund.
accountNoConfigured account name; omit for the default account.
charge_idYescorrelationID or Woovi id of a PAID (COMPLETED) charge.
value_centsNoPartial amount in centavos; omit for the full charge value.
correlation_idNoRefund idempotency key; generated if omitted.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=true, and openWorld=true, so the safety profile is covered; the description adds value on top by prescribing a human confirmation step and by qualifying idempotency as scoped 'per correlation_id'. It stops short of disclosing reversibility, retry/duplicate behavior on failure, or limits on repeated partial refunds.

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?

Three short sentences: action first, then the high-risk warning in capitals, then the idempotency note. No filler, and the most safety-critical information is 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?

For a destructive, money-moving mutation, the definition covers the two things an agent most needs: confirm before executing and idempotency via correlation_id. Return values are covered by the output schema, so the only remaining gap is error/partial-failure 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 charge_id, value_cents, reason, account, and correlation_id are all already documented, including the partial-refund and idempotency-key semantics. The description only echoes the amount confirmation and the correlation_id idempotency key, adding little beyond the schema; baseline 3 applies.

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?

States a specific verb and resource ('Refund a paid charge') plus the channel ('via Pix'), which cleanly separates it from read-side siblings like get_refund and from create_charge. An agent knows exactly what operation this performs without opening the schema.

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?

Gives an explicit precondition for invocation ('confirm charge and amount with the user before calling') tied to the money-moving nature, which is real when-to-use guidance. It does not name alternatives (e.g., that get_refund is the read counterpart), so it stops short of full routing guidance.

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