Tool: list_logical_product_variants
Lists LogicalProductVariants matching the given criteria. LogicalProductVariants are specific variants of a LogicalProduct (e.g., Cloud SQL for MySQL is a variant of Cloud SQL Product). This tool should be invoked when you need to search for logical product variants based on specific filters, such as parent logical product.
The following sample demonstrate how to use curl to invoke the list_logical_product_variants MCP tool.
| Curl Request |
|---|
curl --location 'https://cloudproductregistry.googleapis.com/mcp' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "list_logical_product_variants", "arguments": { // provide these details according to the tool's MCP specification } }, "jsonrpc": "2.0", "id": 1 }' |
Input Schema
Request message for ListLogicalProductVariants.
ListLogicalProductVariantsRequest
| JSON representation |
|---|
{ "parent": string, "pageSize": integer, "pageToken": string } |
| Fields | |
|---|---|
parent |
Required. Parent logical product id. Format: logicalProducts/{logical_product} |
pageSize |
Optional. The maximum number of logical product variants to return. The service may return fewer than this value. If unspecified, at most 100 logical product variants will be returned. The maximum value is 500; values above 500 will be coerced to 500. |
pageToken |
Optional. A page token, received from a previous When paginating, all other parameters provided to |
Output Schema
Response message for ListLogicalProductVariants.
ListLogicalProductVariantsResponse
| JSON representation |
|---|
{
"logicalProductVariants": [
{
object ( |
| Fields | |
|---|---|
logicalProductVariants[] |
Matched LogicalProductVariants |
nextPageToken |
A token, which can be sent as |
LogicalProductVariant
| JSON representation |
|---|
{
"name": string,
"title": string,
"lifecycleState": enum ( |
| Fields | |
|---|---|
name |
Identifier. The resource name of the LogicalProductVariant. Format: logicalProducts/{logical_product}/variants/{variant} |
title |
Display name of the LogicalProductVariant. |
lifecycleState |
Output only. Current Lifecycle state of the logical product variant. |
replaced |
Output only. Indicates whether the logical product variant has been replaced. If |
replacement |
Output only. The resource name of the Logical Entity that the logical product variant is replaced by. This field is only populated when this logical product variant is replaced by some other type. Eg: logicalProducts/{logical_product}, productSuites/{product_suite}, etc. |
Tool Annotations
Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ❌