Skip to main content
Glama
@yawlabs/lemonsqueezy-mcp

@yawlabs/lemonsqueezy-mcp

by YawLabs

ls_update_customer

DestructiveIdempotent

Update an existing LemonSqueezy customer by ID, including name, email, city, region, country, or archive status. Use it to correct customer details or archive an account.

Instructions

Update an existing customer's name, email, city, region, country, or status. The only supported status value is 'archived'; setting it here archives the customer, the same operation as the dedicated archive-customer tool, and is treated as destructive (rate-limited and audited). Other field edits are not.

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": {
      "customerId": "<customerId>"
    },
    "name": "ls_update_customer"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoNew city
nameNoNew name
emailNoNew email
regionNoNew region/state
statusNoSet to 'archived' to archive the customer. Same effect as the dedicated archive-customer tool.
countryNoNew country (ISO 3166-1 alpha-2 code)
customerIdYesThe customer ID to update

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.5
    • changedInput schema / properties / status / description
      Previous value: -"Set to 'archived' to archive the customer. Equivalent to calling ls_archive_customer."New value: +"Set to 'archived' to archive the customer. Same effect as the dedicated archive-customer tool."
  2. Changed1 schema field changedv0.14.2
    • changedInput schema / properties / email / pattern
      Previous value: -"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"New value: +"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
  3. First observedv0.10.10

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true for the whole tool, and the description importantly narrows that: only the status='archived' path is destructive (rate-limited and audited), while ordinary field edits are not. That nuance is genuine added value beyond the annotations. It stops short of stating what the response contains or whether unset fields are left untouched.

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 sentences with no filler: the editable-field scope comes first, then the destructive-path caveat. Every clause carries information an agent needs.

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 7-parameter mutation tool with no output schema, this covers the dangerous edge (archiving) and the field scope well. It leaves minor gaps around return behavior and whether omitted fields remain unchanged, but nothing that would cause a wrong call.

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 description coverage is 100%, so the baseline is 3; the description goes beyond it by clarifying that 'archived' is the only supported status value and what that value actually does, which the schema's const does not spell out on its own.

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?

Specific verb (Update) plus resource (an existing customer) plus the exact editable field set: name, email, city, region, country, status. It also distinguishes the status path from the sibling archive operation, so an agent can tell which tool handles what without opening a schema.

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?

It explains that setting status='archived' is the same operation as the dedicated archive-customer tool, which is useful routing context, but it never explicitly says when to prefer ls_archive_customer instead of this tool, nor does it state prerequisites such as whether partial updates are permitted.

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