Skip to main content
Glama

Draft follow-up email

draft_followup
Idempotent

Create or replace a registrant's plain-text follow-up email draft for admin approval before sending.

Instructions

Create or replace the follow-up email draft for one registrant (one draft per registration). Plain text: blank lines make paragraphs, no HTML, no merge fields (write the name yourself). Nothing is sent: a human with an admin key or the host app must approve it, then send_followup sends it. Changing the text of an approved draft takes the approval away. already_sent once it is queued or sent. Example: {"registration_id":"...","subject":"Your question about pricing","body":"Hi Ann,\n\nThanks for joining..."}.

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": {
      "registration_id": "<registration_id>",
      "subject": "<subject>",
      "body": "<body>"
    },
    "name": "draft_followup"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesPlain text, max 5000 chars
dry_runNotrue: validate and show what would happen without changing anything
subjectYesOne line, max 150 chars
idempotency_keyNoAny unique string; retrying with the same key and arguments within 24 h returns the first answer instead of doing it twice
registration_idYesRegistration id (UUID) from get_call_list or list_registrants

Output Schema

NameRequiredDescriptionDefault
dataNo
resultYes
statusNo
changesNo
dry_runNo
messageNo
error_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only supply idempotentHint, so the description carries the real behavioral load and does: nothing is sent, approval is required, editing an approved draft revokes approval, only one draft exists per registration (replace semantics), and status becomes already_sent once queued or sent. These are exactly the side-effect and state-transition facts an agent needs before mutating a draft.

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 core action, then the formatting contract, then the approval/send lifecycle, then an example — a sensible order with no filler. It is very dense, and the fragment 'already_sent once it is queued or sent' reads slightly telegraphic, which keeps it from a 5.

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 5-parameter mutation tool with an output schema already present, the description covers the remaining gaps: side effects (nothing sent), the approval lifecycle, replace/one-draft-per-registration semantics, content constraints, and a usage example. An agent has enough to call it correctly without guessing.

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 coverage is 100%, so registration_id, subject, body, dry_run, and idempotency_key are already documented, which sets the baseline at 3. The description does add value by specifying body formatting rules (blank lines are paragraphs, no HTML, no merge fields — write the name yourself) and giving a concrete example payload, but it leaves dry_run and idempotency_key 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 ('Create or replace the follow-up email draft') plus the scope constraint ('one registrant, one draft per registration'). It also names the downstream sibling send_followup, so an agent can distinguish drafting from sending without opening another schema.

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?

The workflow routing is clear: this creates the draft, a human with an admin key or the host app approves, then send_followup sends. It effectively tells the agent this is the pre-send step. It stops short of an explicit exclusion statement (e.g., 'do not call send_followup before approval'), so a 4 rather than a 5.

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