Skip to main content
Glama

delete_sql_processor

Remove SQL processors from Kafka environments to manage data processing resources. Specify environment and processor ID to delete.

Instructions

Removes an existing SQL processor.

Args: environment: The environment name. sql_processor_id: SQL processor unique identifier.

Returns: Success message confirming the deletion.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environmentYes
sql_processor_idYes

Implementation Reference

  • The core handler function for the 'delete_sql_processor' tool. It constructs the API endpoint and performs a DELETE request via api_client to remove the specified SQL processor.
    @mcp.tool() async def delete_sql_processor(environment: str, sql_processor_id: str) -> str: """ Removes an existing SQL processor. Args: environment: The environment name. sql_processor_id: SQL processor unique identifier. Returns: Success message confirming the deletion. """ endpoint = f"/api/v1/environments/{environment}/proxy/api/v1/streams/{sql_processor_id}" return await api_client._make_request("DELETE", endpoint)
  • Registers the SQL processors tools, including 'delete_sql_processor', by calling the register_sql_processors function with the MCP instance.
    register_sql_processors(mcp)
  • Imports the register_sql_processors function used to register the delete_sql_processor tool.
    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