Skip to main content
Glama

List folders

list_folders
Read-only

Retrieves an account's folders with their IDs, names, roles, and message counts; read-only, use it to get a folder ID for actions that require one.

Instructions

The folders of an account: id, name, role (inbox, sent, drafts, trash, junk, archive, all) and counts. It reads only. Use it for a folder's id. search_messages, update_messages and create_folder take a role such as inbox or archive without it.

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": {
      "account_id": "<account_id>"
    },
    "name": "list_folders"
  }
}

Input Schema

NameRequiredDescriptionDefault
account_idYesThe account, by the id list_accounts names

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.8.0
    • addedOutput schema / $defs
      Added value: +{
      +  "Folder": {
      +    "description": "A folder of an account.",
      +    "properties": {
      +      "id": {
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "name": {
      +        "title": "Name",
      +        "type": "string"
      +      },
      +      "parent": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Parent"
      +      },
      +      "role": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Role"
      +      },
      +      "total": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Total"
      +      },
      +      "unread": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Unread"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "name",
      +      "role",
      +      "parent",
      +      "unread",
      +      "total"
      +    ],
      +    "title": "Folder",
      +    "type": "object"
      +  }
      +}
    • addedOutput schema / properties / result / items / $ref
      Added value: +"#/$defs/Folder"
    • removedOutput schema / properties / result / items / additionalProperties
      Removed value: -true
    • removedOutput schema / properties / result / items / type
      Removed value: -"object"
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and openWorldHint=true, so 'It reads only' mostly restates structured data. The description does add useful behavior context by revealing the role enumeration and that counts are returned, but says nothing about pagination, folder ordering, or account access failures; with a rich output schema present, this is adequate but modest.

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 short sentences, front-loaded with the resource and its fields, followed by the read-only note and then the routing guidance. Every sentence carries distinct information with no restatement or 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?

For a one-parameter read tool with annotations covering safety and an output schema covering the return shape, the description is essentially complete. The only shortfall is that it does not clarify whether a single account can have many folders of the same role (e.g. multiple user labels mapped into these roles), which could matter when reusing an id.

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?

There is a single parameter and the schema description coverage is 100%, with the schema already explaining that account_id comes from list_accounts. The description adds no further parameter meaning beyond that, so the baseline 3 for full schema coverage 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?

The description pinpoints the resource ('the folders of an account') and enumerates exactly what each entry carries: id, name, role, and counts. It also names the enumerated role values, so an agent knows precisely what it gets back and how it differs from message- or account-oriented siblings.

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?

It states the concrete use case ('Use it for a folder's id') and then explicitly routes the agent away from unneeded calls by noting that search_messages, update_messages, and create_folder accept a role like 'inbox' or 'archive' without it. That is a clear when-to-use plus an explicit alternative-behavior comparison.

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