Skip to main content
Glama

List subfolders

list_subfolders
Read-only

List the direct child folders of a given folder. Use this to navigate the folder hierarchy one level at a time — more efficient than list_folders with depth when you only need one node's immediate children. 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_subfolders"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesParent folder token — the parameter name is `token`, not `folder_token` or `collection_token`.
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.3/5.0
Behavior4/5

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

Annotations already declare readOnly and non-destructive, so safety is covered; the description adds substantive semantics about what asset_count means (recursive, each group/stack counted once) and how it relates to list_assets' non-recursive listing. That is real behavioral context beyond the annotations, short only of pagination or return-shape details.

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-loads purpose in the first sentence, then alternatives, then the count caveat. The final sentence is dense and long but every clause carries distinct information; nothing is filler.

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 usefully explains the one non-obvious return value (asset_count) and how to interpret it. Combined with the 100%-covered schema and readOnly annotations, an agent has what it needs to call this correctly; only pagination/ordering behavior is unaddressed.

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%, with both token and organization already documented in detail. The description adds no further parameter meaning and only refers to 'a given folder' generically, so the schema carries the full parameter burden.

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 the direct child folders of a given folder') and pins down scope to immediate children, which distinguishes it from list_folders, list_folder_descendants and list_assets.

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?

Explicitly names an alternative ('list_folders with depth') and the condition under which this tool wins ('when you only need one node's immediate children'). It also gives a comparison rule against list_assets, so the agent knows when each output is the right one to reason over.

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