Tool: lookup_entity_by_name
Looks up a specific entity by its name, providing details about it. This tool supports ProductSuite, LogicalProduct, and LogicalProductVariant lookups and should be invoked when you have the name of an entity and need to retrieve its details without knowing its specific type beforehand. Supported names are in the format of productSuites/{product_suite_id}, logicalProducts/{logical_product_id}, and logicalProducts/{logical_product_id}/variants/{logical_product_variant_id}.
The following sample demonstrate how to use curl to invoke the lookup_entity_by_name 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": "lookup_entity_by_name", "arguments": { // provide these details according to the tool's MCP specification } }, "jsonrpc": "2.0", "id": 1 }' |
Input Schema
Request message for LookupEntity.
LookupEntityRequest
| JSON representation |
|---|
{ "lookupUri": string } |
| Fields | |
|---|---|
lookupUri |
Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product} logicalProducts/{logical_product}/variants/{variant} productSuites/{product_suite} |
Output Schema
Response message for LookupEntity.
LookupEntityResponse
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field entity. Matched entity. entity can be only one of the following: |
|
logicalProduct |
Matched LogicalProduct. |
logicalProductVariant |
Matched LogicalProductVariant. |
productSuite |
Matched ProductSuite. |
LogicalProduct
| JSON representation |
|---|
{
"name": string,
"title": string,
"productSuite": string,
"variants": [
string
],
"lifecycleState": enum ( |
| Fields | |
|---|---|
name |
Identifier. The resource name of the LogicalProduct. Format: logicalProducts/{logical_product}. |
title |
Display name of the LogicalProduct. |
productSuite |
Product suite associated with the logical product. Format: productSuites/{product_suite}. |
variants[] |
Output only. Child variant resource references. Format: logicalProducts/{logical_product}/variants/{variant} |
lifecycleState |
Output only. Current Lifecycle state of the logical product. |
replaced |
Output only. Indicates whether the logical product has been replaced. If |
replacement |
Output only. The resource name of the Logical Entity that the logical product is replaced by. This field is only populated when this logical product is replaced by some other type. Eg: logicalProducts/{logical_product}/variants/{variant}, productSuites/{product_suite}, etc. |
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. |
ProductSuite
| JSON representation |
|---|
{ "name": string, "title": string, "logicalProducts": [ string ], "replaced": boolean, "replacement": string } |
| Fields | |
|---|---|
name |
Identifier. The resource name of the ProductSuite. Format: productSuites/{product_suite} |
title |
Title of the ProductSuite. |
logicalProducts[] |
Output only. LogicalProducts under this suite. Format: logicalProducts/{logical_product} |
replaced |
Output only. Indicates whether the product suite has been replaced. If |
replacement |
Output only. The resource name of the Logical Entity that the product suite is replaced by. This field is only populated when this product suite is replaced by some other type. Eg: logicalProducts/{logical_product}, logicalProducts/{logical_product}/variants/{variant}, etc. |
Tool Annotations
Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ❌