get_source_info
Retrieve detailed configuration and status information for a specific data source connector in the Unstructured API system using its unique identifier.
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
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_id | Yes |
Implementation Reference
- uns_mcp/server.py:155-177 (handler)The main handler function for the 'get_source_info' tool. It retrieves detailed information about a specific source connector using the UnstructuredClient's get_source_async method, formats the name and configuration, and returns it as a formatted string.@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)