
Hello,
I have a remote MCP server running which has multiple tools running over HTTP Streamable. One of the tool has the request format as
public class WorkspaceContext
{
public long WorkspaceId { get; set; }
public string? Concern { get; set; }
public string? Company { get; set; }
}
When the copilot agent tries to connect to the mcp tool it passes the request as
{
"company": {
"code": "12"
},
"concern": {
"code": "11"
},
"workspaceId": 111245
}
which keeps on failing. Even after doing tools-list and getting the request schema, agents don't follow it.
These cases works when we have simple request types like string, int etc. but for the complex ones it fails.