Skip to main content
Glama
@yawlabs/lemonsqueezy-mcp

@yawlabs/lemonsqueezy-mcp

by YawLabs

ls_update_subscription

DestructiveIdempotent

Modify a subscription to switch plans, pause or resume billing, change the billing anchor, or update trial and invoice details. Cancellation is handled separately.

Instructions

Update a subscription. Can change the variant (plan switch), pause/unpause, set billing anchor, or update invoice details. Pausing (pause: 'void' or 'free'), switching plan (variantId), changing the billing anchor (billingAnchor), invoicing immediately (invoiceImmediately: true), or changing the trial end (trialEndsAt) changes what the customer pays or when, and is treated as destructive (rate-limited and audited); resuming (pause: 'resume'), un-cancelling (cancelled: false), invoiceImmediately: false and disableProrations are not. Cancellation is not done here; it is a separate cancel-subscription operation.

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": {
      "subscriptionId": "<subscriptionId>"
    },
    "name": "ls_update_subscription"
  }
}

Input Schema

NameRequiredDescriptionDefault
pauseNoPause mode: 'void' (pause, skip billing), 'free' (pause, keep access free), or 'resume' to unpause
cancelledNoSet to false to un-cancel a subscription before it expires. Cancelling is a separate cancel-subscription operation, not this field.
variantIdNoNew variant ID for plan switching
trialEndsAtNoSet trial end date (ISO 8601 format). Set to null to end trial immediately.
billingAnchorNoDay of month (1-28) to anchor billing to
subscriptionIdYesThe subscription ID to update
disableProrationsNoIf true, disable prorations when changing plans
invoiceImmediatelyNoIf true, invoice immediately when updating (default false for prorated changes)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.5
    • changedInput schema / properties / cancelled / description
      Previous value: -"Set to false to un-cancel a subscription before it expires. To cancel, use ls_cancel_subscription instead."New value: +"Set to false to un-cancel a subscription before it expires. Cancelling is a separate cancel-subscription operation, not this field."
  2. First observedv0.10.10

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only give a blanket destructiveHint=true; the description refines that by classifying exactly which argument values are treated as destructive (pause void/free, variantId, billingAnchor, invoiceImmediately: true, trialEndsAt) and which are not (resume, cancelled: false, invoiceImmediately: false, disableProrations). It further discloses the consequence — rate-limited and audited — which is behavioral context the annotations cannot convey. This is the kind of per-operation risk detail that prevents costly mistakes.

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?

Front-loaded purpose sentence, then capability list, then risk classification, then exclusion — a sensible order with no filler. The middle sentence is long and comma-chained, which slightly taxes scanning, but every clause carries distinct information.

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 an 8-parameter mutation with no output schema, the description covers capabilities, destructive classification, and the cancel boundary well. It stops short of stating permission requirements or what the call returns, which are the remaining gaps for a write tool with no output schema.

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 the schema already documents every parameter including the pause enum and the trialEndsAt null semantics; baseline applies. The description adds impact classification per field (billing-affecting vs. not), which is real value, but it does not add syntax, defaults, or interaction rules beyond what the schema states.

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 ("Update a subscription") and immediately enumerates the four capability classes: variant/plan switch, pause/unpause, billing anchor, invoice details. It also draws a boundary against the cancel operation, so an agent can separate this from ls_cancel_subscription without opening either 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?

Explicit exclusion: "Cancellation is not done here; it is a separate cancel-subscription operation," which routes the agent to ls_cancel_subscription. Usage conditions for the individual modes are implied through the field list rather than spelled out as scenarios, which keeps it short of a full when/when-not treatment.

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