Skip to main content
Glama

List folders in a workspace

tarkle_list_folders
Read-onlyIdempotent

List the folders directly inside one folder of a workspace library (the library root when parentFolderId is omitted), or find folders by name anywhere in the library with query (with parentFolderId too, only its direct subfolders). Use the returned folderId as parentFolderId to go deeper, or as folderId when uploading or listing files. When nextCursor is returned, more folders follow: call again with the same inputs and that cursor. Protected folders (team, file request, active share) are marked and may refuse new files. Each folder has its tags and description.

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": {
      "workspaceId": "<workspaceId>"
    },
    "name": "tarkle_list_folders"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many folders to return per page. Defaults to 200, or 50 when query is set.
queryNoPart of a folder name, for example "invoices". Matches anywhere in the library unless parentFolderId is set.
cursorNoThe nextCursor of the previous answer. Keep the other inputs the same.
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
workspaceIdYesThe workspace's id, from tarkle_list_workspaces.
parentFolderIdNoA folder id from tarkle_list_folders or tarkle_create_folder.

Output Schema

NameRequiredDescriptionDefault
noticeNo
foldersNo
truncatedNo
nextCursorNo
privateNotOpenedNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, and the description goes beyond them: it discloses the pagination contract ('call again with the same inputs and that cursor'), that protected team/file-request/share folders are marked and may refuse new files, and that each folder carries tags and description. Rate limits or errors on inaccessible folders are not covered.

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?

Four sentences, each doing distinct work, with the primary listing behavior front-loaded before pagination and protected-folder caveats. It is dense but not padded; no sentence is redundant with the schema.

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?

For a 6-parameter list tool with an output schema, the description covers scope, recursion, pagination, and the protected-folder caveat, so an agent can call it and chain it correctly. Slight incompleteness on how results relate to team folders and whether empty results are distinguishable from restricted ones.

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 meaning about parameter interaction: query matches anywhere in the library unless parentFolderId is set, in which case it is limited to direct subfolders. It also frames cursor reuse as 'same inputs', which the schema alone states only tersely.

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?

The description names a specific verb and resource ('List the folders') and states the exact scope: direct children of one folder, the library root when parentFolderId is omitted, or name matches anywhere with query. That distinguishes it from folder-listing siblings and from file listing without needing to open 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 Guidelines4/5

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

It explains the two modes (browse direct children vs. search by name) and how parentFolderId narrows query to direct subfolders, plus the recursion recipe: 'Use the returned folderId as parentFolderId to go deeper, or as folderId when uploading or listing files.' The only gap is no explicit contrast with tarkle_list_team_folders or tarkle_list_files.

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.