web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Copilot Studio - Model Context Protocol
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 70

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.

I have the same question (4)
  • dezrrm Profile Picture
    10 on at
    Copilot agents not able to understand requests schema while calling MCP tools
    I think you need to dumb it down for it.  Like you said, it works with simple request types.  I've had similar issues with it not understanding optional parameters.
    It won't ask the user if they want to fill something in for those parameters, so this is in the instructions for the non-optional parameter and it works:
    "Ask the user the Name of the contact associated with the task (optional).  Submit 'no contact' if user does not want a contact."
     
    You didn't say what the schema should be so I'll just make something up:

    public class WorkspaceContext
    {
    public long WorkspaceId { get; set; }
    public string ConcernCode { get; set; }
    public string CompanyCode { get; set; }
    }
     
    and then transform that into the shape you need for your internal API.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 468 Super User 2025 Season 2

#2
stampcoin Profile Picture

stampcoin 52 Super User 2025 Season 2

#3
trice602 Profile Picture

trice602 46 Super User 2025 Season 2