You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked that this question would not be more appropriate as an issue in a specific repository
I have searched existing discussions and documentation for answers
Question Category
Protocol Specification
SDK Usage
Server Implementation
General Implementation
Documentation
Other
Your Question
Hi!
I'm getting errors trying to call tools that have arrays or lists as parameters. Here are two simple examples:
[McpServerTool, Description("Sum a list of integers")]
public static int SumIntegerList(
[Description("An list of integers")] List<int> integers
)
{
return integers.Sum();
}
[McpServerTool, Description("Concatenate a list of strings")]
public static string ConcatenateListOfString(
[Description("A list of strings")] string[] strings
)
{
StringBuilder sb = new StringBuilder();
foreach (var s in strings)
{
sb.Append(s);
sb.Append(" ");
}
return sb.ToString();
}
Using either MCP CLI or oterm I get this error:
I didn't see many examples with these parameters, so I don't know what can be wrong.
Thanks in advance!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Pre-submission Checklist
Question Category
Your Question
Hi!
I'm getting errors trying to call tools that have arrays or lists as parameters. Here are two simple examples:
Using either MCP CLI or

otermI get this error:I didn't see many examples with these parameters, so I don't know what can be wrong.
Thanks in advance!
All reactions