Skip to main content
Glama

Switch Organization

switch_organization
Idempotent

Switch the CloudQuell organization you are working in (POST /api/organizations/{organization_id}/switch). Every other CloudQuell tool acts on the CURRENT organization only; this tool changes which one that is. Intended flow: list_organizations (find the organization_id; the current one is marked is_current) → switch_organization → then the other tools, which from the next call on run against the new organization. Returns the new organization's id, name, tier and your role in it (your_role), plus mcp_access: false when its plan will refuse the other tools. The change PERSISTS: it also switches the user's CloudQuell dashboard to that organization, and later conversations start there too. Switch back the same way. Tell the user which organization you switched to. Needs confirm:true. It changes only YOUR default organization (the same as the org switcher in the dashboard), so it does not need the admin:write scope, an admin role, or the organization's AI agent access switch, and works for any member. You can only switch to an organization you are an active member of. Not available on CloudQuell API keys (cak_), which are pinned to one organization. Example: { "organization_id": "3f2b9c1e-8a4d-4e6f-9b1a-2c3d4e5f6a7b", "confirm": true } switches to that organization.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "organization_id": "<organization_id>"
    },
    "name": "switch_organization"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoSet to true to actually switch. Required: the tool refuses unless confirm:true is present, because the change persists and also moves the user's CloudQuell dashboard.
organization_idYesThe id (UUID) of the organization to switch to. Get it from list_organizations; you can only switch to an organization you are an active member of.
response_formatNoconcise = the new organization's id, name, tier and your role (default); detailed = the full current-organization payload as well.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare non-read-only, idempotent, open-world, non-destructive, and the description adds substantial context beyond them: the change PERSISTS into the user's dashboard and later conversations, confirm:true is mandatory, no admin:write scope or AI-agent switch is needed, and mcp_access:false in the response signals the target plan will refuse other tools. It also describes the return payload despite having no output schema. The one gap is error/refusal behavior beyond the confirm gate, which is only implied.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action and its distinguishing property, then the flow, then caveats, then an example — a sensible ordering with no filler paragraphs. It runs long and carries a few low-value asides ('Switch back the same way', 'Tell the user which organization you switched to') that could be trimmed without losing an agent-critical facts.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a stateful, cross-tool-affecting mutation with only three parameters and no output schema, the description covers what it returns, the persistent side effect on the dashboard, the confirm gate, authorization requirements, membership limits, API-key exclusions, and plan-gating signals. Nothing an agent needs in order to call it correctly appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and each parameter is already documented, so the description's marginal value is modest; nevertheless it stitches the parameters into a workflow by tying organization_id to list_organizations and is_current, spelling out why confirm is required (persistence plus dashboard movement), and supplying a concrete example payload. It adds workflow meaning rather than new field-level semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Switch the CloudQuell organization you are working in') plus the underlying endpoint, and immediately distinguishes it from every sibling by noting that all other tools act on the CURRENT organization while this one changes it. An agent can tell this apart from list_organizations and get_current_organization without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit ordered flow (list_organizations to find the id and check is_current → switch_organization → subsequent tools run against the new org), states the membership precondition, notes it is unavailable on cak_ API keys, and says how to switch back. That is when-to-use, prerequisites, and alternatives in one pass.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources