Skip to main content
Glama
thenavidm

Lemon Squeezy MCP Server

by thenavidm

Refund subscription invoice

refund_subscription_invoice
Destructive

Issues the exact requested partial refund or an explicitly named full refund for a subscription invoice; local approval is required.

Instructions

Issue the exact requested partial refund, or an explicitly named full refund. Local approval required; no automatic replay.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesExact opaque native resource ID; no traversal or URL.
amountNo
accountNoExact private profile label. Does not prove store ownership; mode applies to the main API key only.
confirmNoSet true only when the user asked for exactly this action.
payloadNoComplete native JSON object body. JSON:API uses data/type/id/attributes/relationships. No mixing with body flags or payload_file. License credential is private configuration, never body input.
full_refundNoExplicit full-refund intent. Must be true with no amount; cannot coexist with amount.
payload_fileNoAbsolute regular non-symlink native JSON body file at most 1 MiB; cannot mix with payload or body flags.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.0.0
    • changedInput schema / properties / confirm / description
      Previous value: -"Explicit approval for this requested effect, including private output files."New value: +"Set true only when the user asked for exactly this action."
  2. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=true, so the safety profile is largely covered. The description adds genuinely useful context ('Local approval required; no automatic replay'), but does not explain what state changes on failure or which permissions are needed beyond approval.

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?

Two tight sentences with no waste; the refund-mode intent is front-loaded ahead of the approval and replay caveats.

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

Completeness3/5

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

For a destructive, non-idempotent, open-world tool with 7 params and no output schema, the description is thin: it omits error/partial-failure behavior and the refund_order alternative. Annotations carry the safety burden, so it is adequate but not complete.

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 86%, so the schema already documents nearly all parameters, including the amount/full_refund mutual exclusivity and the confirm flag. The description only loosely mirrors the partial-vs-full distinction without adding syntax or format detail, so 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?

States a specific verb ('issue/refund') and the resource via its name, and distinguishes the two modes (partial vs full refund). However, it never names the sibling refund_order, so an agent must infer from the tool name alone which refund target applies.

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

Usage Guidelines3/5

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

'Issue the exact requested partial refund, or an explicitly named full refund' implies the condition selecting each mode, but there is no explicit when-to-use guidance, no exclusion of alternatives like refund_order, and no prerequisites beyond the approval note.

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