Skip to main content
Glama
apple-mail-mcp

apple-mail-mcp

by sweetrb

rename-mailbox

Rename an existing mailbox or folder from its current name to a new name in a specified account, returning confirmation of both names.

Instructions

Use when: renaming an existing mailbox/folder from oldName to newName within an account. Returns: a confirmation naming the old and new mailbox names. Do not use when: creating a new folder (use create-mailbox) or deleting one (use delete-mailbox). Use list-mailboxes to confirm the current name. Safety: renames a real folder in the mail account — confirm oldName matches exactly (case-sensitive) before calling.

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": {
      "oldName": "<oldName>",
      "newName": "<newName>"
    },
    "name": "rename-mailbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNoAccount containing the mailbox
newNameYes
oldNameYes

Output Schema

NameRequiredDescriptionDefault
okNo
newNameNo
oldNameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.10.24
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changedv2.10.8
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +true
  3. Addedv2.9.0
  4. Removedv2.8.10
  5. First observedv2.6.1

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the write-but-not-destructive profile is covered; the description adds that this mutates a real folder in the mail account and that oldName must match exactly, case-sensitively, which is genuine pre-call guidance. It also states the return shape (a confirmation naming old and new names). It stops short of saying what happens if newName already exists, whether subfolders are renamed with the parent, or what permissions are required — gaps that matter for a mutation tool.

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?

Four short labeled lines (Use when / Returns / Do not use when / Safety) with the primary action front-loaded and no redundant restatement of the tool name. Every sentence — including the case-sensitivity warning — carries actionable information.

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 3-parameter mutation tool with an output schema, the description covers the decision context, the alternatives, the confirmation precondition, and the safety caveat, which is close to complete. The remaining gaps are edge-case behavior (name collision, permission requirements, scope of the rename for nested folders) rather than anything blocking a correct call.

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 only 33% (only 'account' is documented), so the description has to carry weight — and it does, clarifying that oldName is the exact, case-sensitive current name and that newName is the target. It adds no guidance on whether newName may include a parent path or collide with an existing folder, and the 'account' parameter is left entirely to the schema.

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 and resource ('renaming an existing mailbox/folder') plus the direction of the change ('from oldName to newName within an account'). It explicitly separates itself from the sibling operations create-mailbox and delete-mailbox, so the agent can pick it 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 Guidelines5/5

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

Uses an explicit 'Use when' / 'Do not use when' structure and names the three alternative tools (create-mailbox, delete-mailbox) with the condition that selects each. It also adds a prerequisite workflow — call list-mailboxes first to confirm the current name — which goes beyond simple routing.

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