Skip to main content
Glama

Rename or move a folder

update_folder
DestructiveIdempotent

Rename or move a mailbox folder with its mail and subfolders to reorganize messages; returns the folder’s updated ID for future actions.

Instructions

Rename a folder or move it, with the mail and folders inside. Answers its id from now on, which can change with the name and the place. Other mail programs then find the folder under its new name. To make a new folder, use create_folder. Folders are not deleted by any tool.

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>",
      "folder_id": "<folder_id>"
    },
    "name": "update_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe new name
parentNoFolder id or role to move it into
to_topNoMove it to the top
folder_idYesA folder of that account, by the id list_folders answers
account_idYesThe account, by the id list_accounts names

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.8.0
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / description
      Added value: +"A folder just made, renamed or moved: its id from now on."
    • addedOutput schema / properties
      Added value: +{
      +  "id": {
      +    "title": "Id",
      +    "type": "string"
      +  },
      +  "name": {
      +    "title": "Name",
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "id",
      +  "name"
      +]
    • changedOutput schema / title
      Previous value: -"update_folderDictOutput"New value: +"FolderName"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the bar is lower, yet the description still adds real behavioral facts: contained mail and subfolders move along, the folder id may change as a result, and other mail clients see the new name. It does not say what is at risk despite the destructive hint (e.g., id-based references breaking), which keeps it below the top.

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-loaded with the core action and effect, then the sibling routing and the non-deletion note. The sentence about other mail programs seeing the new name is somewhat redundant, and the line-wrapped prose is less scannable than it could be.

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 an output schema present the return value need not be explained, and the description covers the scope of the move, the id consequence, and the create/delete boundaries. It stops short of conflict or error behavior for a destructive-ish mutation, which is the main remaining gap.

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 the schema already explains name, parent, to_top, folder_id and account_id. The description only adds the indirect hint that the id depends on name and place ('which can change with the name and the place'), which is mildly useful but not needed to fill schema gaps.

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 set and resource ('Rename a folder or move it') and immediately scopes the effect ('with the mail and folders inside'). It also names the sibling to use for the other related operation ('To make a new folder, use create_folder'), so an agent can place it without opening the 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?

Gives explicit routing to create_folder for creation and states that folders are not deleted by any tool, which usefully rules out a delete interpretation. It does not cover cases such as conflicting names or when to prefer an alternative over renaming, but the primary when-to-use guidance is clear.

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