get_destination_info
Retrieve detailed information about a specific destination connector by providing its ID. Use this tool to access and manage connector configurations within the Unstructured API MCP Server.
Instructions
Get detailed information about a specific destination connector.
Args:
destination_id: ID of the destination connector to get information for
Returns:
String containing the destination connector information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| destination_id | Yes |
Implementation Reference
- uns_mcp/server.py:224-248 (handler)The handler function implementing the get_destination_info tool. It fetches detailed information about a destination connector using the UnstructuredClient and formats it as a string. The @mcp.tool() decorator registers it as an MCP tool.@mcp.tool() async def get_destination_info(ctx: Context, destination_id: str) -> str: """Get detailed information about a specific destination connector. Args: destination_id: ID of the destination connector to get information for Returns: String containing the destination connector information """ client = ctx.request_context.lifespan_context.client response = await client.destinations.get_destination_async( request=GetDestinationRequest(destination_id=destination_id), ) info = response.destination_connector_information result = ["Destination Connector Information:"] result.append(f"Name: {info.name}") result.append("Configuration:") for key, value in info.config: result.append(f" {key}: {value}") return "\n".join(result)