Skip to main content
Glama
YawLabs

@yawlabs/lemonsqueezy-mcp

by YawLabs

ls_update_subscription

DestructiveIdempotent

Update a subscription to switch plans, pause or resume billing, set billing anchors, adjust trial dates, or un-cancel. Handles changes that affect payment with rate limits and audit.

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. Use ls_cancel_subscription for cancellation.

Input Schema

TableJSON 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. To cancel, use ls_cancel_subscription instead.
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. First observedv0.10.10

TDQS

A4.8/5.0
Behavior5/5

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

The description adds meaningful behavioral context beyond the annotations: it discloses that payment-affecting updates are 'treated as destructive (rate-limited and audited)' and identifies which operations are not destructive. This refines the broad destructiveHint=true annotation with operation-level nuance.

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 two sentences, front-loaded with the core purpose, and each clause earns its place by adding usable distinctions. It packs parameter groupings, destructive classification, and an explicit sibling alternative without unnecessary filler.

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 an 8-parameter update tool with no output schema and rich annotations, the description covers the key usage caveats and operation-level risks. Minor gaps remain, such as not explaining the interaction between disableProrations and variantId, but the combination of 100% schema coverage, annotations, and the description is largely sufficient for correct invocation.

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, but the description adds semantic value by grouping parameters according to their effect on payment: pause:'void'/'free' and variantId are destructive, while pause:'resume' and cancelled:false are not. It also maps high-level intent ('plan switch', 'pause/unpause') to the relevant parameter names, going beyond the schema's property descriptions.

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 states the verb and resource ('Update a subscription') and enumerates the specific operations it supports: variant switch, pause/unpause, billing anchor, and invoice detail updates. It is clearly differentiated from the sibling ls_cancel_subscription, explicitly pointing cancellation to that tool.

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 gives explicit usage guidance by classifying operations into destructive versus non-destructive groups: pausing, switching plans, changing billing anchor, invoicing immediately, and changing trial end alter payment and are rate-limited/audited; resuming, un-cancelling, and proration disabling are not. It also explicitly routes cancellation to ls_cancel_subscription.

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