Skip to main content
Glama

List spaces

list_spaces
Read-only

List spaces the user is a member of that are on a plan with MCP access. Each space is represented as a virtual filesystem that can be browsed with inspect_space. Results are plan-filtered, so a page may be empty while more pages remain. Keep paginating until hasNextPage is false. When every space on the last page is hidden because its plan has no MCP access, the response adds hiddenForPlan (a count for that page) and a hint: show the hint to the user.

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_spaces"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoPagination cursor (offset as string). Omit for first page.
firstNoNumber of spaces to return

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), and the description adds non-obvious behavior the schema cannot express: results are plan-filtered, pages may be empty while more remain, and a `hiddenForPlan` counter plus `hint` appear when all spaces on the last page are suppressed. That is exactly the kind of surprise an agent would otherwise misread as an empty result set.

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 the scope statement, then pagination protocol, then the edge-case response fields. Every sentence carries behavioral information, though the final sentence about `hiddenForPlan` and `hint` is slightly dense and could be tightened.

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 takes on the burden of explaining return structure and does so: `hasNextPage`, `hiddenForPlan`, and `hint` are all described along with how the caller should act on them. Nothing needed to call or interpret this tool appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and both parameters (`after`, `first`) are fully documented in the schema, so the baseline is 3. The description clarifies the pagination loop semantics at a high level but adds no format or constraint detail about the parameters themselves.

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 spaces') with two explicit scoping constraints: membership and plan-based MCP access. It also names the sibling tool `inspect_space` as the way to browse each returned space, so an agent can distinguish listing from navigation 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 clear operational guidance: use `inspect_space` to browse a returned space, and keep paginating until `hasNextPage` is false because plan filtering can produce empty pages. It stops short of naming when-not-to-use cases or alternate listing tools, so it is strong but not a full routing guide.

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.