Skip to main content
Glama

List folders

list_folders
Read-only

List folders (collections) in a Playbook workspace. Supports title search via query and hierarchy depth control via depth ('1' = top-level only, 'all' = full tree). Results are paginated — use page to navigate. asset_count covers the folder AND every folder nested under it (each group/stack counted once); list_assets on a folder returns only assets sitting directly on it unless you pass nested_assets: true, so compare the count against that, not the plain listing.

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

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (1-indexed)
depthNoHierarchy depth: '1' for top-level only, '2', or 'all' for the full tree. Default: '1'.
queryNoSearch folders by title
per_pageNoItems per page (1-100, default 20)
organizationNoWorkspace slug, as returned by list_organizations. Omit it when the account has a single workspace — it is then resolved from your token. Pass it only when the account has several, or when you mean a workspace other than the obvious one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is covered. Beyond that, the description adds genuinely non-obvious behavior: results are paginated, and asset_count is an aggregate over nested folders rather than a direct-child count. It stops short of covering result ordering or empty-result behavior.

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 and the key parameters are front-loaded in the first two sentences, with the subtle asset_count caveat placed last where it belongs. The final sentence is dense and clause-heavy, but each clause carries information an agent would otherwise get wrong.

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 five optional parameters, no output schema and a non-destructive read profile, the description covers what an agent needs: scope, filtering, depth, pagination and the main counting pitfall. It leaves out return-object shape and ordering, but those gaps are modest given full schema coverage and the presence of annotations.

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 100%, so the baseline is 3, but the description adds interpretive value beyond the schema by spelling out depth semantics ('1' = top-level only, 'all' = full tree) and by tying `query`, `depth` and `page` to an overall retrieval workflow rather than listing them in isolation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('List folders (collections) in a Playbook workspace'), which is unambiguous about what the tool returns. It does not, however, distinguish itself from close siblings such as list_subfolders or list_folder_descendants, so an agent still needs to guess which listing tool covers which hierarchy scope.

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 concrete usage context: use `query` for title search, `depth` for tree breadth, `page` for pagination, and it explicitly contrasts asset_count with list_assets' non-nested listing ('compare the count against that, not the plain listing'). What is missing is any when-not guidance against sibling listing tools like list_subfolders and list_folder_descendants.

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.

Resources