Skip to main content
Glama
growsurf

GrowSurf MCP Server

Official
by growsurf

growsurf_refund_transaction

DestructiveIdempotent

Record refunds, partial refunds, or chargebacks against prior affiliate transactions to reverse or adjust referrer commissions. Use the same transaction identifier from the original sale.

Instructions

Record an amendment (refund, partial refund, or chargeback) against a previously recorded affiliate transaction; reverses or adjusts the referrer's commission. The inverse of growsurf_record_sale. Identify the original transaction with the same identifier you sent when recording it (omit amountRefunded for a full refund). Already-paid commissions are not clawed back (recorded for tax only). Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountNo
orderIdNo
chargeIdNo
currencyNo
refundIdNo
invoiceIdNo
paymentIdNo
campaignIdNoTarget program (campaign) id for this call. Defaults to GROWSURF_CAMPAIGN_ID when omitted. Pass the `id` returned by growsurf_create_campaign to configure or operate a program you just created, without restarting the server.
externalIdNo
descriptionNo
refundAmountNo
refundStatusNo
amendmentTypeNo
participantIdNo
transactionIdNo
amountRefundedNo
paymentIntentIdNo
participantEmailNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
deletedNoPending commissions deleted by the amendment.
matchedNoCommissions found for the provided identifiers.
messageNoHuman-readable result message.
successNo`true` when the amendment was processed; `false` when no matching transaction was found.
adjustedNoCommissions partially adjusted.
notFoundNoPresent and `true` when no commission matched the provided identifiers.
reversedNoCommissions reversed (set to zero amount).
amendmentTypeNoAmendment type that was processed.
matchingCommissionIdsNoCommission ids that matched the submitted identifiers.
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, covering the mutation aspect. The description adds valuable behavioral context: 'Already-paid commissions are not clawed back (recorded for tax only),' which is critical for understanding side effects. It also states it reverses or adjusts the referrer's commission, going beyond the annotation information.

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 concise and well-structured: it front-loads the core purpose and inverse relationship, then adds usage guidance and key behavioral notes. Every sentence contributes meaningful information with no redundancy or fluff.

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?

Given the tool's complexity (18 parameters, anyOf constraints), the description covers the essential semantics for a refund operation: how to identify the original transaction, the amendment types, and the commission adjustment behavior. It does not explain every parameter or the return format, but with an output schema present and the core logic well-covered, it is fairly complete for the typical use case.

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 only 6%, so the description must compensate for the sparse parameter documentation. It explicitly explains amountRefunded (omit for full refund) and campaignId (defaults to GROWSURF_CAMPAIGN_ID), but leaves many other parameters (participantId, externalId, transactionId, etc.) unexplained. The description adds value for the most important parameters but does not fully compensate for the coverage gap.

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 clearly states the action ('Record an amendment') and the resource ('previously recorded affiliate transaction'), and specifies it covers refunds, partial refunds, and chargebacks. It also identifies itself as the inverse of growsurf_record_sale, which distinguishes it from functionally related tools in the sibling list.

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 provides clear guidance on how to use the tool: identify the original transaction with the same identifier sent when recording, omit amountRefunded for a full refund, and target a specific campaignId if needed. It gives practical instructions but does not explicitly state when not to use it or how it compares to other alternatives beyond the inverse relationship.

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/growsurf/growsurf-mcp'

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