Skip to main content
Glama

Post a goodwill credit

wallet_goodwill_credit
Destructive

Staff only. Adds a goodwill credit to the customer's wallet through the credit-note path. Preview first; nothing is posted until confirm. Without confirm it shows a preview and changes nothing.

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": {
      "amount": "<amount>",
      "currency": "<currency>",
      "reason": "<reason>",
      "idempotency_key": "<idempotency_key>",
      "consumer_user_id": "<consumer_user_id>"
    },
    "name": "wallet_goodwill_credit"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesAmount to credit, above 0 and within the per-credit limit.
reasonYesWhy the customer is credited.
confirmNoDo it. Omitted: shows a preview and changes nothing.
currencyYesMust match the account's currency.
idempotency_keyYesYour own unique key; a repeat returns the first result.
consumer_user_idYesAct on this seat (own seat, account owner or admin, or staff). Same checks as the site.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true and idempotentHint=false, and the description adds genuinely useful nuance: the default is a no-op preview and nothing is posted without confirm, which materially changes how an agent should call a 'destructive' tool. However, it does not explain what the preview returns, whether a posted credit can be reversed, or how the strongly-suggested idempotency_key interacts with the declared non-idempotent hint.

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?

Four short sentences, front-loaded with the staff restriction and the safe-preview behavior, with no filler. The preview/no-change point is restated twice ('nothing is posted until confirm' and 'changes nothing'), a minor redundancy that could be tightened.

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 6-parameter mutation tool with no output schema and a destructive annotation, the description covers the two things an agent most needs: the staff gate and the preview-then-confirm workflow. It falls short on post-commit behavior (reversibility, what the preview yields), but nothing critical to calling it safely is missing.

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 coverage is 100%, so every parameter including confirm and idempotency_key is already documented in the schema. The description reinforces the confirm semantics but adds no format, limits, or constraints beyond what the schema states; baseline 3 is appropriate.

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 ('Adds a goodwill credit to the customer's wallet') and adds the mechanism ('through the credit-note path') plus the audience restriction ('Staff only'). It does not name or differentiate from plausible siblings such as wallet_credit_for_debit or crm_pay_from_wallet, so an agent must still infer which credit tool applies.

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?

It gives a clear precondition ('Staff only') and a recommended workflow ('Preview first'), which tells the agent to call without confirm before committing. It does not state when to prefer this over other wallet-credit tools or when-not to use it, leaving alternative selection implicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.