Skip to main content
Glama

Set up retention offers

set_retention_offers
Destructive

Choose what a subscriber is offered when they open their cancel link, before the cancel goes through: a discount (a percentage off their next few payments) and/or a pause (no charges for a few months once their paid time ends, then it starts again on its own). They take one or still cancel, and each subscriber sees it once. Subscription checkouts billed through Stripe only, not Lemon Squeezy. Only the fields you pass change: discount: null or pause: null removes that offer, and enabled: false switches them off. Passing an offer switches them on. Ask the seller for the numbers; never invent a discount. On a draft this applies straight away. On a LIVE checkout it applies straight away too (status applied; the seller can roll it back on their Approvals page), unless it touches money: a price, currency, billing, the delivery link, payment plans, an early-bird price or campaign, or a retention discount or pause. Those create an approval request instead (status pending_approval): tell the seller, give them the approvalUrl, and check later with approval_status. To change other things straight away, don't send money fields in the same call. Never invent a price or a link.

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": {
      "product": "<product>"
    },
    "name": "set_retention_offers"
  }
}

Input Schema

NameRequiredDescriptionDefault
pauseNomonths: 1-6 with no charges, starting when the time they've paid for runs out. null removes it.
accountNoOnly to work in a client's account: its id from list_accounts. Leave it out for your own account.
enabledNoShow the offers at the cancel link. False switches them off and keeps the setup.
messageNoThe seller's own line above the offers, plain text, up to 280 characters. Empty removes it.
productYesThe checkout's id or slug.
discountNopercent: whole number, 5-90. payments: how many renewals it covers, 1-12. Then the usual price again. null removes it.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare a mutating, destructive, non-open-world operation; the description adds far more: each subscriber sees the offer once, mutations are live-immediately or pending_approval, the seller can roll back via their Approvals page, and the agent is told to surface approvalUrl. It also discloses partial-update semantics and the destructive effects of null/false, which is consistent with destructiveHint=true and never contradicts it.

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?

The scoping and behavior are front-loaded and nearly every sentence carries operative information. It is dense and slightly repetitive, restating the no-invention rule for discounts and again for prices and links in the final sentence, which could be consolidated.

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

Completeness5/5

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

For a destructive mutation with an approval sub-flow and no output schema, the description covers the write effects, the immediate-vs-pending branch, the follow-up tool, and the ask-the-seller prerequisite. Nothing material an agent needs before calling is missing.

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 the baseline is 3; the description adds the non-obvious semantic that only passed fields change, that discount:null or pause:null removes an offer, and that enabled:false preserves setup while hiding offers. The warning never to invent a discount or price further constrains values, though the numeric ranges remain schema-only.

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 opening clause names the specific configuration being changed (what a subscriber is offered at their cancel link) and enumerates the two resource types (discount, pause). It also scopes the tool to Stripe-billed subscription checkouts and excludes Lemon Squeezy, so an agent can separate it from adjacent sales/offer tools 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 Guidelines5/5

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

The description states exactly which calls apply immediately (draft checkouts, non-money fields on live checkouts) versus which route through approval (price, currency, billing, delivery link, payment plans, early-bird, retention discount/pause), and directs the agent to approval_status for follow-up. It also gives the workaround (omit money fields in the same call) and an exclusions rule for the wrong platform.

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.