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.
Stay up to date on forum activity by subscribing.
Michael E. Gernaey
468
Super User 2025 Season 2
stampcoin
52
Super User 2025 Season 2
trice602
46
Super User 2025 Season 2