Skip to main content
Glama

Rewrite a draft

crm_update_draft
Destructive

Rewrite a draft that has not been sent. Pass only what changes. USE THIS WHEN THE ANGLE CHANGES rather than discarding and starting again: a better hook turns up, the trigger event moves on, your human asks for a different opening. Discarding loses the rationale and the record of what was already tried on this contact.

A SENT DRAFT CANNOT BE TOUCHED (CRM-15). Its text was copied onto the activity trail as the record of what actually reached a real person, and rewriting it would leave these books describing a message nobody sent. Write a follow-up instead.

A DISCARDED DRAFT CANNOT BE REVIVED. A person read it and rejected it; bringing it back would quietly overturn that decision. Write a fresh one and say in the rationale what changed.

An edit goes through the same claim gate as a new draft: an edit cannot smuggle in what the first write would have stopped. The draft stays a draft, so a person still reads it. Effects: draft text replaced; it remains unsent.

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": {
      "draft_id": "<draft_id>"
    },
    "name": "crm_update_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoThe new message.
subjectNoThe new subject line.
draft_idYesThe draft, e.g. D-0001.
rationaleNoThe new note to the reviewer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructiveHint=true, but the description explains exactly what that means here: the draft text is replaced while the draft remains unsent, and the rationale plus record of prior attempts are preserved. It also discloses the claim gate that edits must pass, a constraint no annotation conveys. Nothing contradicts the destructive or non-idempotent hints.

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?

Purpose and partial-update rule are front-loaded before the constraint paragraphs, and the capitalized rules make skimming easy. A few clauses are explanatory flourish ('leave these books describing a message nobody sent'), which justify policy but inflate length; still no sentence is purely redundant.

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 mutation tool with an output schema absent but annotations and full schema coverage present, the description covers the immutability rules, the claim gate, and the resulting effects. An agent has everything needed to call it correctly and to route the impossible cases elsewhere.

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 would be 3, but 'Pass only what changes' adds a genuine partial-update semantic that the schema alone does not state (only draft_id is required). The description does not otherwise elaborate on subject, body, or rationale beyond the schema's own descriptions.

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 opening sentence names a specific verb (rewrite) and resource (a draft) and immediately bounds the scope to drafts that have not been sent. Combined with 'Pass only what changes', an agent can distinguish this from creating a new draft or discarding one without opening the 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?

Guidance is explicit on all three sides: use it when the angle changes rather than discarding and restarting; sent drafts cannot be touched, so 'write a follow-up instead'; discarded drafts cannot be revived, so 'write a fresh one' with a rationale. Each exclusion names the alternative action, leaving nothing to inference.

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.