Skip to main content
Glama
Unstructured-IO

Unstructured API MCP Server

Official

delete_destination_connector

Remove a destination connector from the Unstructured API MCP Server by providing its ID to manage data flow endpoints.

Instructions

Delete a destination connector.

Args: destination_id: ID of the destination connector to delete Returns: String containing the result of the deletion

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
destination_idYes

Implementation Reference

  • The handler function that executes the deletion of a destination connector using the unstructured client API.
    async def delete_destination_connector(ctx: Context, destination_id: str) -> str: """Delete a destination connector. Args: destination_id: ID of the destination connector to delete Returns: String containing the result of the deletion """ client = ctx.request_context.lifespan_context.client try: _ = await client.destinations.delete_destination_async( request=DeleteDestinationRequest(destination_id=destination_id), ) return f"Destination Connector with ID {destination_id} deleted successfully" except Exception as e: return f"Error deleting destination connector: {str(e)}"
  • The registration function that registers the delete_destination_connector tool (along with create and update) with the MCP server using the mcp.tool() decorator.
    def register_destination_connectors(mcp: FastMCP): """Register all destination connector tools with the MCP server.""" mcp.tool()(create_destination_connector) mcp.tool()(update_destination_connector) mcp.tool()(delete_destination_connector)

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/Unstructured-IO/UNS-MCP'

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