Skip to main content
Glama

Create an approved folder

create_folder
Idempotent

Create a Proton Mail folder from a user-approved preview token, ensuring the exact folder name is confirmed before creation.

Instructions

Create the folder an approved preview names; only call after explicit approval of its preview.

Use it only with a token from preview_action(action="create_folder") that the user approved: the token, not an argument, names the folder. Unless the operator turned it off, the user then confirms the exact change in the client's form; a declined form retires the token.

Creates one folder and never deletes or renames one; removing a created folder is manual in the Proton app. If the folder now exists, it succeeds without consuming the token, so a repeat changes nothing.

Returns log_id for the logged creation attempt, including an already-existing folder, with name, created, exists, partial and token_consumed. partial=true, with error, means the call was interrupted and the folder may exist: check list_actions and the Proton app first. An expired, used or unknown token refuses: preview again.

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": {
      "token": "<token>"
    },
    "name": "create_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesSingle-use token from the preview the user approved.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

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, idempotentHint=true, destructiveHint=false, so the safety profile is given; the description still adds real behavior: the token rather than an argument names the target, a declined client form retires the token, an already-existing folder succeeds without consuming it, and partial=true signals an interrupted call whose folder may exist. The only thing beyond reach is that return-field enumeration duplicates the output schema rather than adding new behavior.

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 action and the approval gate, and each sentence carries distinct operational weight. The closing paragraph enumerates return fields (log_id, name, created, exists, partial, token_consumed) even though an output schema exists, which is the one stretch of redundancy in an otherwise tight definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a token-gated mutation this is complete: it covers the approval precondition, token lifecycle, idempotent re-call behavior, the partial/interrupted state, and the recovery path via list_actions. Nothing an agent needs to call it safely, or to interpret the ambiguous cases, is missing.

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?

The single parameter is fully documented in the schema (100% coverage), so the baseline is 3, but the prose adds meaning the schema cannot: the token is single-use, it carries the folder identity instead of an argument, it comes from a user-approved preview_action, and it is retired if the confirmation form is declined.

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 ('Create the folder an approved preview names') and immediately scopes it against the sibling that produces the input ('token from preview_action(action="create_folder")'). The bounded scope ('creates one folder and never deletes or renames one') lets an agent separate it from move, label, and undo_action without reading 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?

Gives an explicit precondition ('only call after explicit approval of its preview'), the exact producer call to obtain the token, the failure branch ('an expired, used or unknown token refuses: preview again'), and the degraded-state branch ('check list_actions and the Proton app first'). When-to-use and when-not-to-use are both covered with concrete alternatives.

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