Skip to content

Copilot agents not able to understand requests schema while calling MCP tools #22

@sohilbhalla

Description

@sohilbhalla

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions