switch_org
Switch to an organization listed by whoami.
Effect: This changes the active organization used for subsequent requests; it does not edit a project.
Inputs
org_id
string
Required
Organization ID returned by whoami.
Example
These are MCP tool arguments, not an HTTP request body. Replace bracketed IDs with values returned from your account.
{
"org_id": "<organization-id>"
}Result
Abbreviated result example; unshown fields are omitted for clarity.
{
"org_id": "<organization-id>",
"org_name": "<organization-name>"
}Behavior
You must be a member of that organization.
The change can affect your other StackAI sessions, so confirm the active organization with whoami before continuing.
This tool is available with read-only connections.
Troubleshooting
If access is denied, confirm the active organization with whoami and check access to the selected resource. Use returned IDs rather than names. For an invalid argument, follow the returned next_action and correct the request.
Related resources
Was this helpful?

