Skip to main content
Glama

Unstructured API MCP Server

Official

get_source_info

Retrieve detailed information about a specific source connector by providing its ID to manage and analyze source configurations effectively.

Instructions

Get detailed information about a specific source connector.

Args: source_id: ID of the source connector to get information for, should be valid UUID Returns: String containing the source connector information

Input Schema

NameRequiredDescriptionDefault
source_idYes

Input Schema (JSON Schema)

{ "properties": { "source_id": { "title": "Source Id", "type": "string" } }, "required": [ "source_id" ], "title": "get_source_infoArguments", "type": "object" }

Implementation Reference

  • The handler function for the get_source_info tool. It is registered using the @mcp.tool() decorator and implements the logic to fetch source connector details from the Unstructured API client using GetSourceRequest.
    @mcp.tool() async def get_source_info(ctx: Context, source_id: str) -> str: """Get detailed information about a specific source connector. Args: source_id: ID of the source connector to get information for, should be valid UUID Returns: String containing the source connector information """ client = ctx.request_context.lifespan_context.client response = await client.sources.get_source_async(request=GetSourceRequest(source_id=source_id)) info = response.source_connector_information result = ["Source 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)

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