Every app you have connected is reachable through this one endpoint. You get four tools rather than the tools of each app, and you use them to reach the rest.
Find a tool
Code
found = await client.call_tool("search", {"query": "calendar events"})# each hit carries the app_maskedId and tool_name you need nextschema = await client.call_tool( "get_schema", {"tools": [{"app_maskedId": "google-calendar", "tool_name": "list_events"}]},)
If your code already knows which tool it wants, call call_tool directly. search and get_schema exist for agents that have to work it out at runtime.
Choosing an account
When you have connected more than one account for the same app, list them and pass the one you want as alias:
Code
connections = await client.call_tool( "manage_connections", {"requests": [{"app_maskedId": "google-gmail"}]},)# each result lists the app's accounts by aliasresult = await client.call_tool( "call_tool", { "app_maskedId": "google-gmail", "tool_name": "list_messages", "args": {"max_results": 10}, "alias": "work", },)
With a single connected account you can leave alias out.
B2B: audience member credential routing
If you are managing audience member credentials via the MewCP Auth API, point GATEWAY_URL at your project toolset's URL, use the project's API key, and identify the end user with a header. MewCP resolves their stored credential automatically: