Skip to main content
Glama

Switch default workspace

switch_project
Idempotent

Make another workspace the default for the tools that follow.

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": {
      "project_id": "<project_id>"
    },
    "name": "switch_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYesWorkspace id from list_projects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already establish it is a non-destructive, idempotent mutation. The description adds that the change applies to subsequent tool calls, which is genuinely useful state semantics. It does not say how long the default persists (session vs permanent) or what happens to in-flight calls, which is the main unresolved behavior.

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?

A single tight sentence with the effect front-loaded and no wasted words. Slightly clipped for the amount of unstated behavior, but structurally clean.

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-setting tool with full schema coverage and annotations covering safety and idempotency, the description covers the essential effect on subsequent calls. The remaining gap — persistence lifetime — is minor at this complexity level.

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?

With one parameter and 100% schema coverage, the schema already documents project_id including where to obtain it (list_projects). The description contributes only the notion of 'another' workspace, adding no format or constraint detail beyond the schema.

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

Purpose4/5

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

Specific verb+resource: makes a given workspace the default. The phrase 'for the tools that follow' scopes the effect, and the schema's reference to list_projects implicitly distinguishes it from the read-only listing siblings. It does not, however, explicitly name a contrast tool.

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

Usage Guidelines3/5

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

Usage is implied by 'for the tools that follow' — i.e., call this before a sequence of calls that should target a different workspace — but there is no explicit statement of when to call it versus when not to, and no mention of prerequisites or resetting behavior.

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.