Skip to main content
Glama

FranklyMail Agentic Inbox

revise_draft

Destructive

Replace a pending draft at its current version. Every edit requires the user to review the new version. This never sends.

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": {
      "draftId": "<draftId>",
      "version": "<version>",
      "to": "<to>",
      "subject": "<subject>",
      "text": "<text>"
    },
    "name": "revise_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNo
toYes
htmlNoOptional HTML formatting: paragraphs, links, emphasis, lists and quotes. Sanitized; no CSS, images, scripts or attachments. Read returned content and warnings. On updates omission preserves existing HTML; provide both bodies when editing, or null to switch to plain text.
textYesRequired plain-text alternative. Keep its meaning consistent with html.
draftIdYes
subjectYes
versionYes
timeZoneNoIANA time zone shown during review.
scheduledAtNoExact ISO date/time with offset. Proposes a schedule only; the user must explicitly approve it.
senderIdentityIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / html
      Added value: +{
      +  "description": "Optional HTML formatting: paragraphs, links, emphasis, lists and quotes. Sanitized; no CSS, images, scripts or attachments. Read returned content and warnings. On updates omission preserves existing HTML; provide both bodies when editing, or null to switch to plain text.",
      +  "maxLength": 20000,
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / scheduledAt
      Added value: +{
      +  "description": "Exact ISO date/time with offset. Proposes a schedule only; the user must explicitly approve it.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / senderIdentityId
      Added value: +{
      +  "maxLength": 320,
      +  "type": "string"
      +}
    • addedInput schema / properties / text / description
      Added value: +"Required plain-text alternative. Keep its meaning consistent with html."
    • addedInput schema / properties / timeZone
      Added value: +{
      +  "description": "IANA time zone shown during review.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=false, so the description does not need to restate that this mutates state. It still adds genuinely useful behavior: "This never sends" bounds the blast radius of a destructive tool, the version-gated replacement is consistent with the non-idempotent hint, and the mandatory user review is a workflow fact an agent cannot infer from structured fields.

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?

Three short sentences with zero filler, and the two highest-value facts — the version-gated replacement and the never-sends guarantee — are front-loaded. Nothing repeats structured data.

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 destructive mutation with 5 required parameters and no output schema, the description covers the essentials: it replaces rather than creates, it is version-gated, and it cannot send. Minor gaps remain, such as what happens on a version mismatch or whether omitted optional fields are cleared, but the core call decisions are supported.

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 only 40% across 10 parameters, so the description is expected to compensate, and it only does so for the version token ("at its current version" clarifies version as a currency check, not an arbitrary integer). It says nothing about draftId, to, cc, subject, or senderIdentityId, though html/text/timeZone/scheduledAt are documented in the schema itself.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Replace a pending draft at its current version" gives a specific verb (replace) and resource (pending draft) plus the concurrency constraint that a version is involved, which separates it from creation-oriented siblings like prepare_draft or create_mailbox_draft. It stops short of naming those siblings explicitly, so the differentiation is implied rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The phrase "pending draft" and "at its current version" imply this is for editing an already-existing draft the user can see, and "Every edit requires the user to review the new version" signals the review-loop workflow. However, no alternative is named and no when-not condition is given (e.g. what to do if the draft is already sent/scheduled, or whether to use update_mailbox_draft instead).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources