ls_list_variants
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
| Name | Required | Description | Default |
|---|---|---|---|
| include | No | Comma-separated related resources to include (e.g. 'product,files') | |
| pageSize | No | Results per page (1-100) | |
| productId | No | Filter by product ID | |
| pageNumber | No | Page number (1-indexed) |