Skip to main content
Glama

List folders

list_folders
Read-only

List folders (sub-spaces) in a space, as structured JSON (id, name). The first entry is the "Home" folder (the space itself), followed by its sub-spaces. Get the spaceId from list_spaces. This is the structured counterpart to browsing folders via inspect_space.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "spaceId": "<spaceId>"
    },
    "name": "list_folders"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoPagination cursor (offset as string). Omit for first page.
firstNoNumber of folders to return
spaceIdYesSpace ID from `list_spaces`

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 read-only, non-destructive, closed-world behavior. The description adds useful behavioral detail beyond annotations: the result is structured JSON with id and name, and the first entry is the Home folder representing the space itself.

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?

The description is three tight sentences, front-loaded with the core action and differentiated from the sibling tool. Every sentence adds useful information without repetition.

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 simple read-only list tool with full schema coverage and annotations, the description supplies the key non-schema details: output structure, ordering, spaceId source, and the alternative browsing tool. No output schema exists, but the return shape and ordering are described.

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%, so the schema already documents `spaceId`, `first`, and `after`. The description reinforces the source of `spaceId` but adds no additional parameter semantics beyond the schema.

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 folders/sub-spaces in a space. It distinguishes the structured folder listing from browsing via `inspect_space` and clarifies that IDs come from `list_spaces`.

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?

Provides clear usage context by naming `list_spaces` as the source of the required spaceId and `inspect_space` as the browsing alternative. It does not explicitly state exclusions, but the structured-vs-browsing distinction is sufficient for correct selection.

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.