get_deployment_details
Retrieve detailed information about a specific Google Cloud Platform Deployment Manager deployment, including project ID and deployment name, for comprehensive resource insights.
Instructions
Get details of a specific Deployment Manager deployment.
Args:
project_id: The ID of the GCP project
deployment_name: The name of the deployment to get details for
Returns:
Details of the specified deployment
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deployment_name | Yes | ||
| project_id | Yes |
Implementation Reference
- The main handler function for the 'get_deployment_details' tool. It is decorated with @mcp.tool() which also handles registration. Includes type annotations for parameters and return type, serving as the input/output schema, and a docstring describing the tool.@mcp.tool() def get_deployment_details(project_id: str, deployment_name: str) -> str: """ Get details of a specific Deployment Manager deployment. Args: project_id: The ID of the GCP project deployment_name: The name of the deployment to get details for Returns: Details of the specified deployment """ # TODO: Implement this function return f"Not yet implemented: getting details for deployment {deployment_name} in project {project_id}"
- src/gcp_mcp/server.py:60-60 (registration)The call to deployment_tools.register_tools(mcp) that triggers the registration of the 'get_deployment_details' tool (along with other deployment tools) to the MCP server.deployment_tools.register_tools(mcp)
- src/gcp_mcp/server.py:15-15 (registration)Import of the deployment tools module, which contains the 'get_deployment_details' implementation and its register_tools function.from .gcp_modules.deployment import tools as deployment_tools