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
| Name | Required | Description | Default |
|---|---|---|---|
| source_id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"source_id": {
"title": "Source Id",
"type": "string"
}
},
"required": [
"source_id"
],
"title": "get_source_infoArguments",
"type": "object"
}
Implementation Reference
- uns_mcp/server.py:155-177 (handler)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)