Skip to main content
Glama

get_workspaces

Read-onlyIdempotent

List shared local workspace IDs or read a workspace's revision and paged source IDs as metadata; use it to inspect workspace structure, then query files for content.

Instructions

List shared local workspace IDs, or provide workspace_id to read its revision and source IDs, 100 sources per page (pass offset=next_offset for more). Returns metadata only, without source text, stored paths, or hashes. It does not search content; to find something in files, use query_knowledge_base.

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

Input Schema

NameRequiredDescriptionDefault
limitNoSources per page, 100 by default
offsetNoFirst source to return; use next_offset for the next page
workspace_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, non-destructive), so credit goes to what the description adds: page size behavior, offset=next_offset continuation, and the important disclosure that only metadata is returned — no source text, stored paths, or hashes. That payload exclusion is exactly the kind of context annotations cannot express.

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 sentences, no filler, front-loaded with the primary list behavior and immediately followed by the mode switch, pagination, and the negative routing hint. Every clause carries operational information.

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 does the work of explaining return content (IDs, revision, source IDs, metadata-only, paginated via next_offset), which is sufficient to call it correctly. The only mild gap is what a list-mode entry looks like versus a single-workspace response.

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 67%, and the one undocumented parameter (workspace_id) is the one the description explains, including what it returns (revision and source IDs). The description also reinforces limit/offset semantics with the concrete 100-per-page default and the next_offset continuation pattern, adding meaning beyond the bare schema text.

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 shared local workspace IDs") and spells out the second mode ("provide workspace_id to read its revision and source IDs"). It also explicitly says what it is not ("does not search content"), so an agent can separate it from search-oriented siblings 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?

There is an explicit when-not plus alternative: "to find something in files, use query_knowledge_base." The two operating modes (list vs. single-workspace read) are also stated as a choice. It stops short of routing between this tool's single-workspace mode and chunk-level siblings like get_workspace_chunks or search_workspace.

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