Title: TongYi LLM Fails to Call MCP Functions with Array-Type Parameters in Dify Agent Template - "description" Error #785

Closed
opened 2026-02-16 10:20:30 -05:00 by yindo · 1 comment
Owner

Originally created by @DevElves on GitHub (Nov 7, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues Dify issues & Dify Official Plugins, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.9.2

Plugin version

0.1.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Problem Description:

When using the official Agent template in Dify to create an AI agent with MCP tools, TongYi LLM fails to call MCP functions that contain array-type parameters, throwing the error: {"args":{"description":"[models] Error: 'description'"},"error_type":"InvokeError","message":"[models] Error: 'description'"}. This issue is specific to TongYi LLM and doesn't occur with other LLMs like DeepSeek which is also provided by the TongYi plugin. Additionally, MCP functions without array-type parameters work normally with TongYi LLM.

Steps to Reproduce:

Create an AI agent using Dify's official Agent template

Add MCP tools that include functions with array-type parameters (e.g., List[str], Array[Any])

Configure TongYi LLM as the model provider

Attempt to call MCP functions with array parameters

Observe the "description" error in the response

Expected Behavior:

TongYi LLM should successfully call MCP functions with array-type parameters in Dify Agent template, similar to other LLMs like DeepSeek.

Actual Behavior:

TongYi LLM fails with the specific error:

json

{
  "args": {
    "description": "[models] Error: 'description'"
  },
  "error_type": "InvokeError",
  "message": "[models] Error: 'description'"
}
Image Image

✔️ Error log

{"args":{"description":"[models] Error: 'description'"},"error_type":"InvokeError","message":"[models] Error: 'description'"}

Originally created by @DevElves on GitHub (Nov 7, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.9.2 ### Plugin version 0.1.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ### Problem Description: When using the official Agent template in Dify to create an AI agent with MCP tools, TongYi LLM fails to call MCP functions that contain array-type parameters, throwing the error: `{"args":{"description":"[models] Error: 'description'"},"error_type":"InvokeError","message":"[models] Error: 'description'"}`. This issue is specific to TongYi LLM and doesn't occur with other LLMs like DeepSeek which is also provided by the TongYi plugin. Additionally, MCP functions without array-type parameters work normally with TongYi LLM. ### Steps to Reproduce: Create an AI agent using Dify's official Agent template Add MCP tools that include functions with array-type parameters (e.g., List[str], Array[Any]) Configure TongYi LLM as the model provider Attempt to call MCP functions with array parameters Observe the "description" error in the response ### Expected Behavior: TongYi LLM should successfully call MCP functions with array-type parameters in Dify Agent template, similar to other LLMs like DeepSeek. ### Actual Behavior: TongYi LLM fails with the specific error: json ``` { "args": { "description": "[models] Error: 'description'" }, "error_type": "InvokeError", "message": "[models] Error: 'description'" } ``` <img width="926" height="928" alt="Image" src="https://github.com/user-attachments/assets/2488cd8d-d30f-4419-a33f-7afb0b876715" /> <img width="952" height="413" alt="Image" src="https://github.com/user-attachments/assets/e0574e26-5e9f-454c-b335-ed3421c938e7" /> ### ✔️ Error log {"args":{"description":"[models] Error: 'description'"},"error_type":"InvokeError","message":"[models] Error: 'description'"}
yindo added the bug label 2026-02-16 10:20:30 -05:00
yindo closed this issue 2026-02-16 10:20:30 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Nov 23, 2025):

Hi, @DevElves. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You reported that TongYi LLM fails to invoke MCP functions with array-type parameters in Dify's official Agent template.
  • This results in a "description" InvokeError specific to TongYi LLM.
  • Other models like DeepSeek handle these calls correctly.
  • MCP functions without array parameters work fine with TongYi.
  • The issue remains unresolved with no further comments or updates.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here.
  • If I don’t hear back within 5 days, I will automatically close this issue.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Nov 23, 2025): Hi, @DevElves. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary:** - You reported that TongYi LLM fails to invoke MCP functions with array-type parameters in Dify's official Agent template. - This results in a "description" InvokeError specific to TongYi LLM. - Other models like DeepSeek handle these calls correctly. - MCP functions without array parameters work fine with TongYi. - The issue remains unresolved with no further comments or updates. **Next Steps:** - Please let me know if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here. - If I don’t hear back within 5 days, I will automatically close this issue. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#785