Skip to main content
Glama

List workspaces

list_workspaces
Read-only

List the workspaces you can operate on (your personal workspace and the team workspaces you have joined) and your role in each. All other tools accept workspaceId to specify a workspace (for REST, use the X-Workspace-Id request header); if omitted, the default personal workspace is used. A developer API key is bound to one workspace and can only use that one. (Required scope: cd.accounts.read)

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
workspaceIdNoOptional: id of the workspace to operate on (look it up with list_workspaces); if omitted, the default personal workspace is used. A developer API key can only use the workspace it is bound to.

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 cover safety (readOnlyHint=true, openWorldHint=false), yet the description still adds real operational context: the required scope (cd.accounts.read) and the constraint that a developer API key is bound to a single workspace and cannot read others. It stops short of describing the response shape (field names for workspace and role), which matters somewhat since there is no output schema.

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 what the tool returns, then the workspaceId convention, then the auth constraint. Four sentences and each carries distinct information, though the REST-header parenthetical is only relevant to one transport and slightly dilutes the core message.

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 single optional parameter, read-only tool with no output schema, the description covers purpose, defaulting behavior, auth scope, and the API-key limitation, which is nearly everything an agent needs. The one remaining gap is what the returned workspace objects look like, which an agent may need to pick an id.

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 goes beyond the schema by explaining the default-workspace fallback, the REST equivalent (X-Workspace-Id header), and the API-key binding restriction on which value is legal. That last point is a genuine constraint the schema alone does not convey.

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 the workspaces') and narrows the scope precisely: personal workspace plus team workspaces the user has joined, plus the user's role in each. That level of detail lets an agent know exactly what comes back without opening a schema, and no sibling tool in the catalog competes with it.

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?

Explains the downstream context clearly: all other tools take a workspaceId, and omitting it falls back to the default personal workspace, which tells an agent when it can skip this call. It never explicitly says 'call this first to discover workspace IDs', so the routing instruction is implied rather than stated.

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.