Skip to content

Conversation

@edis-uipath
Copy link
Contributor

Create a new helper method that returns a structured tool for each of the mcp tools from the agent json.
Each tool call will open an mcp session, make the mcp call and then close the session.

name=tool_name,
description=mcp_tool.description,
args_schema=input_model,
coroutine=get_tool_coroutine(mcp_tool),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this get_tool_coroutine wrapper?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mcp_tool is in a foreach and we need a closure for the current value for this tool

@edis-uipath edis-uipath force-pushed the feature/mcp_tool_callable branch from c66cf4a to 044be5d Compare January 22, 2026 16:19
@edis-uipath edis-uipath force-pushed the feature/mcp_tool_callable branch 2 times, most recently from c2f15eb to 49c7e8a Compare January 22, 2026 17:08
@edis-uipath edis-uipath force-pushed the feature/mcp_tool_callable branch from 49c7e8a to 1789681 Compare January 22, 2026 17:10
@edis-uipath edis-uipath force-pushed the feature/mcp_tool_callable branch from 1789681 to 7526e78 Compare January 22, 2026 17:12
@edis-uipath edis-uipath enabled auto-merge (squash) January 22, 2026 17:12
@edis-uipath edis-uipath merged commit dd852ab into main Jan 22, 2026
39 checks passed
@edis-uipath edis-uipath deleted the feature/mcp_tool_callable branch January 22, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants