Skip to main content
Glama
@yawlabs/lemonsqueezy-mcp

@yawlabs/lemonsqueezy-mcp

by YawLabs

ls_list_variants

Read-onlyIdempotent

Lists product variants, optionally filtered by product ID, with paginated results for browsing and selecting variants.

Instructions

List all variants, optionally filtered by product. Results are paginated — check meta.page in the response for currentPage, lastPage, and total. WARNING: do NOT read price as the amount charged -- for usage-based, per-seat or otherwise tiered variants it is vestigial and commonly reads the same value across products that bill very differently. The authoritative per-unit price lives on each variant's PRICE resource: list the prices filtered by the variantId, take the newest record by created_at, and read its effective_unit_price. Cross-store note: when LEMONSQUEEZY_ALLOWED_STORE_IDS is set, this tool requires at least one of: productId. Even with that set, Pair with a scoped LemonSqueezy API key for true cross-store enforcement -- the API key's visibility is the true boundary.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ls_list_variants"
  }
}

Input Schema

NameRequiredDescriptionDefault
includeNoComma-separated related resources to include (e.g. 'product,files')
pageSizeNoResults per page (1-100)
productIdNoFilter by product ID
pageNumberNoPage number (1-indexed)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.10.10

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations it discloses pagination shape (meta.page with currentPage, lastPage, total) and a substantive data trap: the `price` field is vestigial for tiered/usage-based variants. It also surfaces an environment-dependent auth constraint and the API-key visibility boundary, which no annotation conveys.

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?

Content is front-loaded (purpose, then pagination, then the price warning, then the store constraint) and every block carries real value. The closing cross-store sentences are garbled ("Even with that set, Pair with a scoped LemonSqueezy API key") and repeat the boundary idea twice, costing some clarity.

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?

With no output schema, the description correctly compensates by explaining the response envelope and the misleading price field, which is the main correctness risk. It does not describe the variant attributes returned, so an agent still needs inference for anything besides price and paging.

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 already 100%, so the baseline is 3, but the description adds meaning the schema lacks: productId shifts from optional to effectively required under the cross-store configuration. The `include` parameter's role is left entirely to the schema.

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?

The opening states a specific verb and resource ("List all variants") plus its optional filter, which is unambiguous. It also implies the boundary with the price-listing sibling by redirecting price reads there, though it never names that sibling tool explicitly.

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?

It clearly routes the agent elsewhere for authoritative pricing (list prices filtered by variantId) and states the cross-store prerequisite that productId becomes required when LEMONSQUEEZY_ALLOWED_STORE_IDS is set. It stops short of naming the concrete alternative tool or saying when a plain variant listing is preferable to fetching products first.

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