get_deployment_details
Retrieve specific deployment details by name to monitor and manage configurations effectively. Enables clear insights into deployment settings and status for better operational control.
Instructions
Retrieve details of a specific deployment using its name.
Args: deployment_name: The name of the deployment to retrieve details for.
Returns: A dictionary containing the details of the deployment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deployment_name | Yes |
Input Schema (JSON Schema)
{
"properties": {
"deployment_name": {
"title": "Deployment Name",
"type": "string"
}
},
"required": [
"deployment_name"
],
"title": "get_deployment_detailsArguments",
"type": "object"
}
Implementation Reference
- src/mcp_server.py:881-896 (handler)The core handler function for the 'get_deployment_details' tool. It is registered via the @mcp.tool() decorator and implements the tool logic by calling deployment_client.get_deployment() to fetch and return deployment details as a dictionary.@mcp.tool() def get_deployment_details(deployment_name: str) -> Dict[str, Any]: """ Retrieve details of a specific deployment using its name. Args: deployment_name: The name of the deployment to retrieve details for. Returns: A dictionary containing the details of the deployment. """ # Retrieve deployment details deployment_details = deployment_client.get_deployment(deployment_name=deployment_name) # Return the deployment details as a dictionary return deployment_details.to_dict()