Skip to main content
Glama
@yawlabs/lemonsqueezy-mcp

@yawlabs/lemonsqueezy-mcp

by YawLabs

ls_get_variant

Read-onlyIdempotent

Retrieve a product variant by ID to check its billing interval and trial settings; use the variant's price resource, not the variant price field, for authoritative unit pricing.

Instructions

Get a specific product variant by ID, including billing interval and trial settings. 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 the variant's PRICE resource -- list the prices filtered by this variantId, take the newest record by created_at, and read its effective_unit_price.

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": {
      "variantId": "<variantId>"
    },
    "name": "ls_get_variant"
  }
}

Input Schema

NameRequiredDescriptionDefault
includeNoComma-separated related resources to include (e.g. 'product,files')
variantIdYesThe variant ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.10.10

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered; the description adds substantially more by disclosing that the `price` field is vestigial for usage-based, per-seat, and tiered variants and can be identical across products that bill differently. This is meaningful data-interpretation context an agent could not get from the annotations, though error behavior and response shape are unaddressed.

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 with the purpose, then immediately the WARNING, which is a sensible priority order. The final sentence is a fairly long imperative chain (list, sort by created_at, read effective_unit_price) but every clause carries actionable information, so the length is largely earned.

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?

No output schema exists, so the description must carry return-value burden; it covers the headline fields (billing interval, trial settings) and, more importantly, warns that `price` cannot be trusted for tiered variants and where the real value lives. It is close to sufficient for a two-parameter read tool, with only the `include` behavior and full response shape left implicit.

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 coverage is 100%, so both parameters are already documented, and the description adds only indirect meaning by explaining that variantId is the filter key for the authoritative price lookup. The `include` parameter, which controls related-resource expansion, is not touched on at all in the description, so baseline 3 applies.

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 sentence gives a specific verb and resource ('Get a specific product variant by ID') plus the key fields it surfaces (billing interval, trial settings), which cleanly separates it from sibling resources like price, product, or order. It never explicitly names a sibling such as ls_get_product or ls_get_price to contrast with, so it stops short of the top band.

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?

The warning establishes an explicit exclusion ('do NOT read `price` as the amount charged') and prescribes the correct alternative path: list prices filtered by variantId, sort by `created_at`, read `effective_unit_price`. That is clear when/when-not guidance, though it does not say when to reach for this tool versus ls_get_product or address the `include` option.

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