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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Passing Variables from...
Copilot Studio
Suggested Answer

Passing Variables from Copilot Studio Agent to MCP Tool

(1) ShareShare
ReportReport
Posted on by 5
Is it possible to override an input to an MCP Tool with a variable, instead of determined by generative AI?

For example, if I want to pass the variable System.Conversation.Id to a tool, it would be better if this is filled automatically.

My particular use case needs the conversation id to find the subfolder of the Azure blob storage which corresponds to that chat session.
I have the same question (1)
  • Suggested answer
    Valantis Profile Picture
    6,735 on at
     

    Yes  you can override an MCP tool’s input with a variable (e.g., System.Conversation.Id) instead of letting AI infer it.

    In Copilot Studio:

    1. Open your MCP tool action.

    2. Click the input (e.g., conversationId).

    3. Change Fill using from “Dynamically fill” to Custom value.

    4. Choose System.Conversation.Id from the variable picker.

    5. If available, uncheck “Should prompt user.”

    Result: The conversation ID is passed to your tool automatically no AI extraction, no user prompt.

    Your MCP tool gets System.Conversation.Id directly, so it can target the correct Azure Blob Storage subfolder.

    Note: Copilot Studio doesn’t auto-map variables to MCP parameters, you must set Custom value manually.

    Sources:

     
     
    Let me know if that helped.
  • Valantis Profile Picture
    6,735 on at

    Hi @TC-22010551-0,

    Just wanted to check in and see if everything is working now. If you still need any help, feel free to let me know.

    Also, if the issue is resolved, it would be great if you could mark the answer as solved so others with the same question can find it easily.

     

    Thanks and have a great day!

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 277

#2
11manish Profile Picture

11manish 206

#3
sannavajjala87 Profile Picture

sannavajjala87 156 Super User 2026 Season 1

Last 30 days Overall leaderboard