Skip to main content
Glama
Unstructured-IO

Unstructured API MCP Server

Official

list_destinations

Retrieve available data destinations from the Unstructured API. Filter results by connector type to find storage or database options for your data.

Instructions

List available destinations from the Unstructured API.

Args:
    destination_type: Optional destination connector type to filter by

Returns:
    String containing the list of destinations

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
destination_typeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The handler function for the 'list_destinations' MCP tool. It lists available destination connectors from the Unstructured API, optionally filtered by destination_type. Registered via @mcp.tool() decorator.
    @mcp.tool()
    async def list_destinations(
        ctx: Context,
        destination_type: Optional[DestinationConnectorType | str] = None,
    ) -> str:
        """List available destinations from the Unstructured API.
    
        Args:
            destination_type: Optional destination connector type to filter by
    
        Returns:
            String containing the list of destinations
        """
        client = ctx.request_context.lifespan_context.client
    
        request = ListDestinationsRequest()
        if destination_type:
            try:
                destination_type = (
                    DestinationConnectorType(destination_type)
                    if isinstance(destination_type, str)
                    else destination_type
                )
                request.destination_type = destination_type
            except KeyError:
                return f"Invalid destination type: {destination_type}"
    
        response = await client.destinations.list_destinations_async(request=request)
    
        sorted_destinations = sorted(
            response.response_list_destinations,
            key=lambda dest: dest.name.lower(),
        )
    
        if not sorted_destinations:
            return "No destinations found"
    
        result = ["Available destinations:"]
        for dest in sorted_destinations:
            result.append(f"- {dest.name} (ID: {dest.id})")
    
        return "\n".join(result)
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the tool lists destinations but doesn't describe key behaviors: whether it's a read-only operation, if it requires specific permissions, how results are formatted (e.g., pagination, sorting), or any rate limits. The return statement is vague ('String containing the list of destinations'), lacking detail on structure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and concise, with three clear sections: a purpose statement, args, and returns. Each sentence serves a specific function without redundancy. It could be slightly more front-loaded by integrating the parameter explanation into the main description, but overall it's efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (one optional parameter) and the presence of an output schema, the description is minimally adequate. However, it lacks completeness for a tool with no annotations: it doesn't explain behavioral aspects like safety, permissions, or result formatting. The output schema existence reduces the need to detail returns, but more context on usage and behavior would improve completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds meaningful context for the single parameter: it explains that 'destination_type' is an 'Optional destination connector type to filter by.' This clarifies the parameter's purpose beyond the schema, which only shows it as an optional string/enum with a default of null. Since there's only one parameter and the description covers it well, this earns a high score despite 0% schema description coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'List available destinations from the Unstructured API.' It specifies the verb ('List') and resource ('available destinations'), making the function unambiguous. However, it doesn't explicitly differentiate from sibling tools like 'list_sources' or 'list_workflows', which would require a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention related tools like 'get_destination_info' for detailed information or 'create_destination_connector' for setup. There's no context about prerequisites, such as whether authentication is needed or when listing destinations is appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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