How to Target Specific Account ID when Integrating MCP Tools with Multiple Accounts Connected?

This topic was automatically generated from Slack. You can find the original thread here.

Hi Guys,

I’m currently integrating one of your MCP tools (for example, google_calendar) and have multiple accounts connected for the same app.
I’m passing all the required headers in my request, including:
x-pd-project-id
x-pd-environment
x-pd-external-user-id
x-pd-app-slug
x-pd-tool-mode
x-pd-account-id
Authorization
Additionally, I tried passing the accountId as a query parameter in the request URL as follows:

https://remote.mcp.pipedream.net/{external_user_id}/google_calendar?accountId={account_id}

However, the response always seems to come from the latest connected account instead of the specific account ID I’m trying to target.
Could you please confirm:

  1. Whether the accountId parameter is supported when calling the MCP tool endpoint directly?
  2. If so, should it be passed in the query string, headers, or request body?
  3. Is there any specific format or configuration needed to select a particular connected account?
    I’ve already verified that both accounts are linked and accessible under the same external user.
    Please someone help me to figure out this issue !

I responded here: Slack