Skip to main content
Glama

switch_workspace

Idempotent

Work in another workspace for the rest of this session: every later tool call acts there until you switch again (pass no workspace_id to go back to your default). Get ids from list_workspaces. Only works when signed in to the hosted MCP; an API key is bound to its own workspace, so with a key use one created in the other workspace. Returns the workspace you're now in. If the server restarts you're back in your default, so check get_me when it matters which workspace you're in.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "switch_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspace_idNoWorkspace to switch to. Omit to return to your default workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations say readOnlyHint=false and idempotentHint=true but disclose nothing about persistence or scope. The description supplies the real behavioral traits: the switch persists across all later tool calls in the session, returns the workspace now active, and is silently reset to the default on server restart with a recommendation to check get_me when it matters. This is exactly the context annotations cannot carry, and it does not contradict them.

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?

Every sentence carries non-obvious information — persistence, revert, id source, auth constraint, return value, restart caveat — with the most consequential fact (session-wide effect) front-loaded. It is dense and slightly run-on, but there is no filler to cut.

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

Completeness4/5

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

For a one-parameter state-changing tool with no output schema, the description covers the return value, the persistence scope, the reset condition, and the auth-mode limitation. Remaining gaps are minor, such as what happens if an invalid or inaccessible workspace_id is passed (error vs no-op).

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

Parameters3/5

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

Schema coverage is 100% and already documents that omitting workspace_id returns to the default, so the description's omission semantics are largely redundant. Its only added meaning is where ids come from (list_workspaces), which is closer to usage guidance than parameter semantics — baseline 3 applies.

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 ('Work in another workspace') plus the crucial scoping detail 'for the rest of this session: every later tool call acts there' — an agent immediately knows this is not a per-call parameter but a sticky session-level state change.

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?

Explicitly names the prerequisite helper ('Get ids from list_workspaces'), the way to undo (pass no workspace_id), and the environment restriction (only with hosted MCP sign-in; API keys are bound to their own workspace and need a workspace created there). That is when-to-use, how-to-revert, and when-it-will-fail all in one place.

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