Skip to main content
Glama

list_sql_processors

Retrieve SQL processor details from Kafka environments to manage and monitor data processing pipelines in Lenses.io.

Instructions

Retrieves all SQL processor details.

Args: environment: The environment name.

Returns: A dictionary containing a list of all SQL processors with their details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environmentYes

Implementation Reference

  • The handler function decorated with @mcp.tool() that implements the logic for listing SQL processors by making an API GET request to the specified endpoint.
    @mcp.tool() async def list_sql_processors(environment: str) -> Dict[str, Any]: """ Retrieves all SQL processor details. Args: environment: The environment name. Returns: A dictionary containing a list of all SQL processors with their details. """ endpoint = f"/api/v1/environments/{environment}/proxy/api/v2/streams" return await api_client._make_request("GET", endpoint)
  • The call to register_sql_processors(mcp) which registers the list_sql_processors tool along with other SQL processor tools.
    register_sql_processors(mcp)
  • The registration function that defines and registers the SQL processors tools, including list_sql_processors, using FastMCP decorators.
    def register_sql_processors(mcp: FastMCP):

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