Hello,
I have a remote MCP server running which has multiple tools. 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": "99"
},
"concern": {
"code": "01"
},
"workspaceId": 699198210
}
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.
Hello,
I have a remote MCP server running which has multiple tools. 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": "99"
},
"concern": {
"code": "01"
},
"workspaceId": 699198210
}
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.