MCP Tools Reference: cloudproductregistry.googleapis.com

Tool: get_logical_product_variant

Retrieves details of a specific LogicalProductVariant, which is a specific variant 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 fetch information about a specific logical product variant, using its unique name in the format of logicalProducts/{logical_product_id}/variants/{logical_product_variant_id}.

The following sample demonstrate how to use curl to invoke the get_logical_product_variant 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": "get_logical_product_variant",
    "arguments": {
      // provide these details according to the tool's MCP specification
    }
  },
  "jsonrpc": "2.0",
  "id": 1
}'
                

Input Schema

Request message for GetLogicalProductVariant.

GetLogicalProductVariantRequest

JSON representation
{
  "name": string
}
Fields
name

string

Required. The name of the LogicalProductVariant to retrieve. Format: logicalProducts/{logical_product}/variants/{variant}

Output Schema

Represents a distinct offering derived from a primary product that retains core functionalities but offers specialized features for a specific market segment.

LogicalProductVariant

JSON representation
{
  "name": string,
  "title": string,
  "lifecycleState": enum (LifecycleState),
  "replaced": boolean,
  "replacement": string
}
Fields
name

string

Identifier. The resource name of the LogicalProductVariant. Format: logicalProducts/{logical_product}/variants/{variant}

title

string

Display name of the LogicalProductVariant.

lifecycleState

enum (LifecycleState)

Output only. Current Lifecycle state of the logical product variant.

replaced

boolean

Output only. Indicates whether the logical product variant has been replaced. If false, the variant is active. If true, the variant has been replaced by another type, and the replacement field contains the resource name of that replacement.

replacement

string

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: ❌