Skip to content

fix: pass argument properties to mcp tool#687

Merged
radugheo merged 1 commit into
mainfrom
fix/pass-argument-properties-to-mcp-tool
May 6, 2026
Merged

fix: pass argument properties to mcp tool#687
radugheo merged 1 commit into
mainfrom
fix/pass-argument-properties-to-mcp-tool

Conversation

@radugheo

@radugheo radugheo commented Mar 13, 2026

Copy link
Copy Markdown
Collaborator

AgentMcpTool.argument_properties was parsed from agent.json but never passed to the constructed tool, so MCP tools with Argument / Text Builder / Static input variants ran as if nothing was configured. The LLM filled those args itself.

This switches MCP tools to StructuredToolWithArgumentProperties so the existing StaticArgsHandler in llm_node picks them up. In schema and all modes, the same argumentProperties from agent.json are matched onto server-discovered tools by name.

Development Package

  • Use uipath pack --nolock to get the latest dev build from this PR (requires version range).
  • Add this package as a dependency in your pyproject.toml:
[project]
dependencies = [
  # Exact version:
  "uipath-langchain==0.10.17.dev1006874458",

  # Any version from PR
  "uipath-langchain>=0.10.17.dev1006870000,<0.10.17.dev1006880000"
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.uv.sources]
uipath-langchain = { index = "testpypi" }

[tool.uv]
override-dependencies = [
    "uipath-langchain>=0.10.17.dev1006870000,<0.10.17.dev1006880000",
]

@radugheo radugheo force-pushed the fix/pass-argument-properties-to-mcp-tool branch from cd115f2 to 323f630 Compare March 13, 2026 15:44
@radugheo radugheo requested a review from edis-uipath March 13, 2026 15:44
@radugheo radugheo force-pushed the fix/pass-argument-properties-to-mcp-tool branch from 323f630 to a3fb18e Compare March 13, 2026 15:45
@radugheo radugheo force-pushed the fix/pass-argument-properties-to-mcp-tool branch 3 times, most recently from 0be97ab to 034c5f3 Compare May 6, 2026 11:28
@radugheo radugheo force-pushed the fix/pass-argument-properties-to-mcp-tool branch from 034c5f3 to 23f935a Compare May 6, 2026 13:25
@radugheo radugheo force-pushed the fix/pass-argument-properties-to-mcp-tool branch from 23f935a to 950de1c Compare May 6, 2026 13:26
@radugheo radugheo merged commit cf3ffcb into main May 6, 2026
70 of 72 checks passed
@radugheo radugheo deleted the fix/pass-argument-properties-to-mcp-tool branch May 6, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants