Skip to main content
Glama

Create or change signature

set_signature
Destructive

Create or update a named mailbox signature with cleaned HTML, plain text or inline images, and set it as the default for the mailbox or a send-as address.

Instructions

Create or change a named signature of a mailbox (needs the signatures permission). Give html, text or both: without text, the plain-text version is derived from the HTML. The HTML is cleaned to a safe subset (no scripts, forms, event handlers or remote CSS); images are https URLs or inline images referenced as cid: and passed in images (PNG, JPEG or GIF, at most 6 and 512 KB together). Omitted fields keep their value; images replaces all images; html "" makes it text only. The first signature of a mailbox becomes its default; make_default (with for_address for a send-as address) changes the default. The owner is notified of every change.

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": "<account>",
      "name": "<name>"
    },
    "name": "set_signature"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlNoSignature HTML (a fragment, at most 64 KB before cleaning); "" removes the HTML.
nameYes1 to 40 lowercase letters, digits or '-', e.g. "behoerden".
textNoPlain-text version (at most 4 KB, 30 lines); derived from html when omitted.
imagesNoInline images; replaces all images.
accountYesMailbox alias or email address from list_accounts.
for_addressNoWith make_default: a send-as address of the mailbox instead of the whole mailbox.
make_defaultNoMake it the default signature of the mailbox, or of for_address.

Output Schema

NameRequiredDescriptionDefault
nameNo
accountNo
createdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.20.2

TDQS

A4.6/5.0
Behavior5/5

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

The description adds substantial behavior beyond the annotations: it requires the signatures permission, explains HTML sanitization, image constraints, text derivation, replacement semantics for images, empty html behavior, default-signature rules, and owner notification. These details are consistent with the destructive and non-idempotent annotations.

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?

The description is dense and front-loads the purpose and permission requirement. Every sentence carries useful information, though the long semicolon-heavy paragraph could be structured more readably.

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 complex write tool with nested image objects, the description covers permissions, sanitization, constraints, update semantics, default behavior, and notifications. With full schema coverage and an output schema present, no critical calling information 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?

Schema coverage is 100%, so the baseline is 3. The description still adds meaningful parameter interactions not captured by the schema alone: text is derived when omitted, images replaces all images, html "" makes the signature text-only, and make_default can target for_address.

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 states a specific verb and resource: "Create or change a named signature of a mailbox." It also clarifies scope through the mailbox owner and named signature, making it distinguishable from delete_signature and list_signatures.

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?

Usage context is clear: use it to create or change a signature, supply html/text/both, and use make_default to change the default. It does not explicitly name alternatives such as list_signatures or delete_signature, but the create/change scope is sufficiently clear.

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