Mcptool client tool error after aiagent update to version 3

Describe the problem/error/question

I build a mcpserver used fastmcp,and mcptool can normal be used when aiagent node at version 2.2,but it cause error when aiagent node at version 3

it seems the params be changed

how can i solve this problem

What is the error message (if any)?

[
  {
    "response": [
      {
        "type": "text",
        "text": "4 validation errors for call[get_cvm_info]\nsessionId\n  Unexpected keyword argument [type=unexpected_keyword_argument, input_value='54c4f132f5064378a160c4c82e835435', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.12/v/unexpected_keyword_argument\naction\n  Unexpected keyword argument [type=unexpected_keyword_argument, input_value='sendMessage', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.12/v/unexpected_keyword_argument\nchatInput\n  Unexpected keyword argument [type=unexpected_keyword_argument, input_value='容器 ip 被...忙看下能否恢复', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.12/v/unexpected_keyword_argument\ntoolCallId\n  Unexpected keyword argument [type=unexpected_keyword_argument, input_value='call_00_HxMhH0DiSFmYPKOBMSYIbwr5', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.12/v/unexpected_keyword_argument"
      }
    ]
  }
]

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @jimsuzhiwei, the fix for MCP Server calls with strict tool argument checking has been merged recently and should be released in the next few days. Please monitor MCP tool calls are failing due to new toolCallId, previous n8n worfklows won't run on update to most recent version! · Issue #21716 · n8n-io/n8n · GitHub for updates when it’s released