Skip to main content
Glama

Onsa

Rewrite outreach draft

rewrite_outreach
DestructiveIdempotent

Replaces the text of an outreach draft that is waiting for approval. The current draft and the lead's scoreExplanation come from list_pending_outreach; get_lead_memo carries the richer research on that person. The rewritten draft stays in the approval queue, and this tool sends nothing. LinkedIn follow-up drafts (kind: follow_up) cannot be rewritten here: they are edited in Onsa, or approved as written with send_outreach.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe full replacement message. This same string is called `draftText` when list_pending_outreach returns it, and `confirmText` when you pass it to send_outreach — three names, one set of bytes.
leadIdYesLead whose draft to rewrite, from list_pending_outreach
subjectNoEmail subject; only email delivery reads it, and send_outreach, a LinkedIn send, does not. When omitted, the stored subject stays unchanged, so a body-only edit keeps it; a string replaces it, and null clears it.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
leadIdYes
subjectYes
updatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / subject / description
      Previous value: -"Email subject. OMIT it to leave the stored subject untouched (do this for LinkedIn, and whenever you are only changing the body); pass null only if you genuinely mean to clear it."New value: +"Email subject; only email delivery reads it, and send_outreach, a LinkedIn send, does not. When omitted, the stored subject stays unchanged, so a body-only edit keeps it; a string replaces it, and null clears it."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and readOnlyHint=false, which alone would alarm an agent about a write. The description adds the crucial bound: the draft 'stays in the approval queue, and this tool sends nothing', so the agent understands the mutation is a text replacement, not an outbound message. It does not cover auth/permission requirements or whether the prior text is recoverable, which keeps it short of a 5.

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?

Four sentences, all front-loaded with the core mutation first, then sourcing, then side effects, then the exclusion. No filler, though the middle two sentences pack several cross-references that could be trimmed.

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?

An output schema exists, so return values need no explanation. The description covers the operation, data sourcing from two siblings, the side-effect boundary (nothing sent, stays queued), and the unsupported draft kind with its alternative — everything needed to invoke correctly.

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 100%, and the schema itself already documents the text/draftText/confirmText aliasing, the leadId source, and the subject null-vs-omitted behavior in detail. The description's parameter-relevant content (leadId from list_pending_outreach, scoreExplanation source) largely repeats what the schema states, so baseline 3 applies.

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?

Specific verb ('Replaces the text') plus resource ('an outreach draft') plus a state qualifier ('waiting for approval') that an agent can verify. It clearly distinguishes itself from list_pending_outreach (source of the draft), get_lead_memo (research), and send_outreach (the actual send).

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?

Explicitly routes the agent: current draft and scoreExplanation come from list_pending_outreach, richer research from get_lead_memo, and LinkedIn follow_up drafts are excluded with the correct alternative path (edit in Onsa or approve as written with send_outreach). Both when-to-use and when-not-to-use are stated.

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