Skip to content

I'm having trouble passing parameters to the MCP tool using agent_instance.send. #525

@jinwater88

Description

@jinwater88

My mcp tool is as follows:
@mcp.tool() async def create_reminder(time_str: str, content: str,uid: Optional[int] = None) -> dict: result = await reminder_manager.create_reminder(time_str, content,uid) return result

Sending the response using response = await self.agent_instance.send("Please use local tools to process the test parameter") doesn't work because the tool can't receive the UID. Is using result = await actual_agent.call_tool the only reliable method?

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