Skip to main content
Glama

set_default_workspace

Idempotent

Set which workspace MCP tools use when workspaceId is omitted. Saved for this account across all MCP clients. Pass clear: true to go back to using the newest workspace.

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": "set_default_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
clearNoRemove the saved default
workspaceIdNoWorkspace id from list_workspaces

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare idempotentHint=true, so the description carries most of the burden and does add real context: the value is persisted per account and shared across all MCP clients, and clearing reverts to newest-workspace behavior rather than breaking calls. It does not state what happens with an invalid or unknown workspaceId, or whether the change is immediately effective for in-flight calls.

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

Conciseness5/5

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

Three short sentences, front-loaded with the core effect, then persistence scope, then the clear escape hatch. Every sentence earns its place and nothing is padded.

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 two-parameter setter with no output schema and a single annotation, the description covers purpose, persistence scope, and the clearing behavior, which is enough to call it correctly. The only gap is failure behavior for a bad workspaceId, which is minor at this complexity.

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%, so the baseline is 3, but the description genuinely adds meaning beyond the schema: it explains the consequence of clear=true (fall back to the newest workspace) rather than just 'Remove the saved default', and it frames workspaceId as the value that suppresses the default. That is useful semantic content the schema does not convey.

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?

A specific verb and resource are stated, plus the exact effect: setting the workspace that MCP tools use when workspaceId is omitted. An agent can tell this apart from list_workspaces (which enumerates workspaces) without opening the schema. It stops short of naming any sibling explicitly, so it lands at 4 rather than 5.

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

Usage Guidelines4/5

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

The description makes the trigger condition clear implicitly (tools that omit workspaceId will use this default) and gives explicit guidance for the clear parameter: 'Pass clear: true to go back to using the newest workspace.' It does not spell out the when-not case, such as calling this when every call already passes an explicit workspaceId.

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