ls_get_variant
Retrieve a product variant by ID to view billing interval and trial settings. Use the variant's price resource, not the price field, for accurate per-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 -- call ls_list_prices with 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
| Name | Required | Description | Default |
|---|---|---|---|
| include | No | Comma-separated related resources to include (e.g. 'product,files') | |
| variantId | Yes | The variant ID |