Skip to main content
Glama

get_deployment_targets

Retrieve available Kubernetes and Connect clusters for deployment in a specified environment to identify where to deploy Kafka data operations.

Instructions

Returns deployment information including available Kubernetes clusters and Connect clusters.

Args: environment: The environment name.

Returns: Dictionary containing available deployment targets (Kubernetes clusters and Connect clusters).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environmentYes

Implementation Reference

  • The handler function for the 'get_deployment_targets' tool. It is decorated with @mcp.tool() for automatic registration and makes an API call to fetch deployment targets.
    @mcp.tool() async def get_deployment_targets(environment: str) -> Dict[str, Any]: """ Returns deployment information including available Kubernetes clusters and Connect clusters. Args: environment: The environment name. Returns: Dictionary containing available deployment targets (Kubernetes clusters and Connect clusters). """ endpoint = f"/api/v1/environments/{environment}/proxy/api/v1/deployment/targets" return await api_client._make_request("GET", endpoint)
  • Top-level registration call to register_sql_processors(mcp), which includes the registration of the get_deployment_targets tool via its decorator.
    register_sql_processors(mcp)
  • Import of the register_sql_processors function used to register the tools.
    from tools.sql_processors import register_sql_processors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/stereosky/lenses-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server