Skip to main content
Glama

List folder descendants

list_folder_descendants
Read-only

List EVERY folder nested under a given folder — children, their children, and so on — in one paginated call, instead of walking list_subfolders level by level. Each folder carries its absolute tree_depth. 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

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": {
      "token": "<token>"
    },
    "name": "list_folder_descendants"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (1-indexed)
tokenYesFolder token whose subtree to list (the folder itself is not included)
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.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered; the description goes well beyond that by disclosing return semantics — each folder carries absolute `tree_depth`, and `asset_count` aggregates the entire subtree with groups/stacks counted once. It also warns about a specific misinterpretation trap (comparing against a plain listing), which is real behavioral context an agent could not infer.

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?

Three sentences, front-loaded with the key differentiator and the 'instead of' clause right after it, with zero filler. The final sentence about asset_count versus list_assets is dense and slightly convoluted to parse, which costs a point.

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 four parameters, no output schema, and no nested objects, the definition covers what matters: scope, pagination, and the meaning of the two returned fields an agent is most likely to misread. Given the absence of an output schema, explaining tree_depth and asset_count is exactly the missing piece it needed to supply.

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 all four parameters (token, page, per_page, organization) are already documented in structured fields. The description only implies pagination ('one paginated call') and adds no syntax, defaults, or exclusion detail beyond what the schema provides, so the baseline 3 applies.

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 EVERY folder nested under a given folder') and pins the scope with 'children, their children, and so on.' It explicitly distinguishes itself from the sibling walk-the-tree approach (list_subfolders), so an agent can pick it without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when-to-use rule ('in one paginated call, instead of walking list_subfolders level by level') and names the contrast case for count comparison ('list_assets on a folder returns only assets sitting directly on it unless you pass nested_assets: true'). Alternatives are named with the condition that selects them.

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