Skip to main content
Glama

list_folders

Retrieve a paginated, path-sorted list of folders with full paths resolved, so you can browse or nest folders without walking parent IDs yourself.

Instructions

List folders with the full path already resolved — no need to walk parent_id yourself. Pass a folder's own id as parent_id to create_folder/update_folder to nest under it. Sorted by path, so a page is a contiguous slice of the tree read top to bottom; the reply is {folders, has_more, next_offset?}.

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
limitNoFolders per page
offsetNoSkip this many folders — pass back next_offset from the previous page

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.3.1
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 200,
      +  "description": "Folders per page",
      +  "maximum": 1000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Skip this many folders — pass back next_offset from the previous page",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. First observedv1.3.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose meaningful behavior: results are sorted by path so a page is a contiguous tree slice, and the reply shape is `{folders, has_more, next_offset?}`. It still omits permission/auth requirements and whether this covers all folders or a scoped subtree.

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?

Three tight clauses with zero filler: the resolved-path benefit is front-loaded, the create/update nesting trick follows, and the pagination contract closes it out. Every sentence earns its place.

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?

No output schema exists, and the description compensates by naming the exact response fields and the has_more/next_offset paging contract. Combined with the ordering guarantee, an agent can call and page through this correctly without further information.

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 real semantics: sorting by path makes offset paging a stable contiguous slice, which explains why passing back next_offset is safe. That is value beyond the schema's mechanical 'Skip this many folders'.

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?

States a specific verb and resource ('List folders') plus the key differentiator that the full path is already resolved, so the agent knows it needn't chase parent_id chains. It never names a sibling tool by comparison, but the resource split from list_notes/search_notes is unambiguous.

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 concrete cross-tool guidance: a folder's own id from this listing is what you pass as parent_id to create_folder/update_folder to nest. That tells the agent when this tool is a prerequisite for others; it stops short of explicit when-not-to-use or exclusion criteria.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.