Skip to main content
Glama

List Workspaces

list_workspaces
Read-only

Retrieve all Workspaces owned by or shared with the authenticated account, or provide a Workspace ID to inspect details and storage readiness for that Workspace.

Instructions

List the Workspaces the authenticated account owns and those other accounts share with it, with each one's id, name, state, owning account (account: user_id and email), the caller's role there (owner, member or viewer), agent (default_agent_id), main conversation id (main_session_id), current revision and root copy id. state is active, adopting (its files are moving to new storage; runs are refused until it is active again), deleting or deleted. All Workspaces are returned in one response, without paging. No run starts and nothing changes. With workspace_id, the workspaces list contains only that Workspace, including storage_readiness (state, since, pending_reason, retryable) when its storage is still starting. The root copy exists only once storage_readiness.state is ready.

Input Schema

NameRequiredDescriptionDefault
workspace_idNoThe Workspace UUID. Omitted, all Workspaces are returned.

Output Schema

NameRequiredDescriptionDefault
workspacesYesThe caller's own and shared Workspaces; one entry when workspace_id was given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.17.1

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, it discloses that no run is started and nothing changes, that results are unpaged, that runs are refused while a workspace is in 'adopting' state, and when storage_readiness and the root copy become available. This is substantive behavioral context an agent cannot derive from the annotations.

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?

The purpose and scope are front-loaded and each clause carries information, but the enumeration of return fields (id, name, state, role, agent, main_session_id, etc.) partially duplicates the output schema that already exists, adding some avoidable length.

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?

For a single-parameter read tool with an output schema and read-only annotations, the description covers scope, side-effect absence, state semantics, and the workspace_id branch. Nothing an agent needs to invoke or interpret it correctly is missing.

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 already 100%, so the baseline is 3, but the description earns extra credit by explaining the consequence of supplying workspace_id (single-workspace result plus conditional storage_readiness fields) rather than merely restating that it is optional.

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?

The description names a specific verb and resource (list Workspaces) and defines scope precisely: workspaces the account owns plus those shared with it. It enumerates the returned fields and the state values, so an agent can tell this apart from create_workspace, delete_workspace, or the changeset tools without opening a 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?

It gives clear operational context: all workspaces come back in one unpaged response, and passing workspace_id narrows the result to a single workspace with extra storage_readiness detail. It does not explicitly name or exclude a sibling alternative, which keeps it below a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.