Skip to main content
Glama

list_workspaces

Read-onlyIdempotent

List the workspaces you can work in, with which one is current, which is the default, and whether you own it. Signed in to the hosted MCP, this is every workspace you belong to (e.g. one per agency client), and switch_workspace moves between them. With an API key it is only that key's workspace: a key belongs to one 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": "list_workspaces"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely new behavioral context the annotations cannot express: result scope changes with authentication method, and a key is bound to exactly one workspace. It does not discuss result size or ordering, which are minor gaps for this tool.

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?

Two sentences, both front-loaded with the highest-value information: first what is returned, then how scope depends on auth. The parenthetical example about agency clients usefully anchors the hosted case. Slightly dense but every clause carries information an agent needs.

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?

With no output schema, the description carries the burden of explaining return contents, and it does so by naming the three per-workspace attributes. It also resolves the main ambiguity an agent would face (why the result set may be small or large) via the auth explanation. Missing only minor details such as ordering or whether an empty list is possible.

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?

The tool takes zero parameters, so the baseline is 4. The description correctly spends no space on parameter semantics and instead invests in explaining result scoping, which is the only variable dimension of behavior here.

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 (list workspaces) and enumerates exactly what each entry conveys: current flag, default flag, ownership. It also explicitly distinguishes itself from switch_workspace, which mutates the selection rather than reporting it, so an agent can separate the two without opening either schema.

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?

Gives concrete context for use by spelling out the two auth regimes: hosted MCP returns every workspace you belong to, an API key returns only that key's workspace. It names switch_workspace as the follow-up action for changing selection. It stops short of stating exclusions or a 'do not call this to...' boundary, but for a zero-argument listing tool little more is needed.

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