Skip to content

Feature Request: Parse output schema in smolagents adapter #62

@duguyue100

Description

@duguyue100

Hi, I was trying to understand how smolagents package manages MCP tools. And found out that here

https://github.com/grll/mcpadapt/blob/main/src/mcpadapt/smolagents_adapter.py#L128-L133

        tool = MCPAdaptTool(
            name=mcp_tool.name,
            description=mcp_tool.description or "",
            inputs=input_schema["properties"],
            output_type="string",
        )

The output type is manually set as string. As I understand, official MCP's tool definition has an output schema.
Supporting output schema correctly would be a very nice addition for tool use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions