Skip to main content
Glama

List Workspaces

workspace-list_workspaces
Read-only

List the workspaces you can access and what you may do in each. Takes no parameters. Workspace ids are opaque: this names the ones you can reach, and a workspace-list_artifacts row carries the id its artifact is filed in.

Returns: { success: true, workspaces: [{ workspaceId, name, isGeneral, capabilities }], nextSteps } — and for an agent also agent { name, accessMode, manageUrl } and otherWorkspacesCount. capabilities is a subset of read, write, share, publish; you need write to create or change an artifact in that workspace. isGeneral marks the General workspace. accessMode "all" means you follow everything your human can access, including workspaces created later. Only when you can reach more than one team does the answer name teams: defaultTeam { id, name } is the one you were connected from, and each workspace carries its team { id, name }. Work in defaultTeam unless the user names another team; never ask the user which team. An empty list, or otherWorkspacesCount > 0, means there is more you were not given, not that there is none: give the user manageUrl, where they can grant it.

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": "workspace-list_workspaces"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnly/non-destructive/closed-world; the description goes well beyond by disclosing how to interpret empty results ('otherWorkspacesCount > 0 means there is more you were not given, not that there is none'), the meaning of accessMode 'all' (includes workspaces created later), and the capability gating rule ('you need write to create or change an artifact'). It also supplies a remediation path via manageUrl, which is exactly the kind of context annotations cannot carry.

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?

Purpose is front-loaded in the first sentence, followed by a clearly delineated Returns block and then interpretation rules. It is dense but nearly every sentence carries a distinct rule (capabilities gating, team selection, empty-list meaning, manageUrl). The Returns block is verbose and mixes vocabulary ('for an agent also agent { name, accessMode, manageUrl }'), which costs some readability.

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

Completeness5/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 full burden of describing the response and does so field-by-field (workspaceId, name, isGeneral, capabilities, team, defaultTeam, otherWorkspacesCount, manageUrl). It also covers the multi-team edge case and the misleading empty-result case, leaving nothing an agent needs in order to call and interpret this tool.

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 notes this explicitly rather than leaving the agent to inspect an empty schema. No further parameter explanation is required or possible.

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 you can access and what you may do in each') and immediately adds the scope constraint 'Takes no parameters.' It also positions itself relative to sibling workspace-list_artifacts by explaining that workspace ids are opaque and that artifacts carry the workspace id they are filed in, so an agent can tell which tool yields which identifier.

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 operating rules: 'Work in defaultTeam unless the user names another team; never ask the user which team,' and instructs the agent to surface manageUrl when the list is incomplete. What it does not do explicitly is state the trigger for calling this tool first (discovery before artifact operations) — that is left to inference from the sibling relationships.

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.