Skip to main content
Glama
mail-mcp

mail-mcp

by spencer-fs

rename_folder

Rename an existing email folder by specifying its current name and a new name; inbox and special folders cannot be renamed.

Instructions

Rename a folder. The inbox and the special folders (Sent, Drafts, Trash, Junk, Archive) cannot be renamed.

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": {
      "name": "<name>",
      "new_name": "<new_name>"
    },
    "name": "rename_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesExisting folder name.
new_nameYesNew name for the folder.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive mutation; the description adds a genuine restriction — a protected set of folders that cannot be renamed — which is real behavioral context an agent cannot infer from the schema or annotations. It stops short of disclosing what happens on a name collision or on folding differently-cased names, and does not say the operation is rejected vs. silently no-ops.

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?

Two sentences, zero filler: the action first, then the restriction. Nothing is repeated from the title or the schema, and the constraint is placed where an agent will read it before composing the call.

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 two-parameter rename operation with annotations covering the safety profile and no output schema, the description supplies the purpose and the key precondition. The remaining gap — collision handling and whether the folder's contents are preserved — is minor but would matter to an agent reasoning about failure modes.

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 parameters documented ("Existing folder name." and "New name for the folder."), so the schema carries the parameter burden. The description adds nothing beyond that — in particular it does not clarify whether `name` is a leaf name or a full path, which is the one ambiguity that would benefit from prose.

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 opens with a specific verb and resource ("Rename a folder") and immediately scopes it by excluding the inbox and the special system folders (Sent, Drafts, Trash, Junk, Archive). Combined with the sibling names, an agent can tell this apart from create_folder, delete_folder, or move_messages without opening 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?

The negative case is stated explicitly: the inbox and special folders cannot be renamed, which is the main precondition an agent would otherwise get wrong. It does not name an alternative for those cases or explain what an agent should do instead when a rename is rejected, so it falls short of a full when/when-not/alternatives treatment.

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