Skip to main content
Glama

Samuelz® Communications

Draft a reply

draft_reply
Idempotent

Generate or revise a draft only after an explicit drafting request and successful get_reply_readiness/get_reply_brief. communicationId selects that exact source; optional subject/body supply the draft to revise, and tone changes style only (shorter, warmer or firmer). This can invoke the existing AI provider and incur normal generation cost. It creates no approval or send. Draft or improve using the current visible thread head and confirmed tenant response policy, without sending. Use get_reply_brief first, review questions and missing facts, never treat a fallback as an approved reply. A stale anchor must be reread. Use get_reply_review on the exact generated subject/body before preparing approval.

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": {
      "communicationId": "<communicationId>"
    },
    "name": "draft_reply"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoExact supplied reply text to draft, review or prepare according to this tool. Preserve the reviewed text unchanged for approval; never treat it as consent.
toneNoOptional explicitly requested style adjustment for the advisory AI draft, not a change of recipient, facts or sending authority. Omit to retain the native draft style.
subjectNoExact supplied draft subject, kept together with its source communication and body. Text is not approval evidence.
communicationIdYesExact currently visible source communicationId from list_work_items/get_thread for this workspace; never a reply operationId.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / tone / description
      Added value: +"Optional explicitly requested style adjustment for the advisory AI draft, not a change of recipient, facts or sending authority. Omit to retain the native draft style."
  2. Changed3 schema fields changed
    • addedInput schema / properties / body / description
      Added value: +"Exact supplied reply text to draft, review or prepare according to this tool. Preserve the reviewed text unchanged for approval; never treat it as consent."
    • addedInput schema / properties / communicationId / description
      Added value: +"Exact currently visible source communicationId from list_work_items/get_thread for this workspace; never a reply operationId."
    • addedInput schema / properties / subject / description
      Added value: +"Exact supplied draft subject, kept together with its source communication and body. Text is not approval evidence."
  3. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, so the mutation/idempotency profile is largely covered. The description does add genuinely non-obvious behavior: it may invoke an external AI provider and incur normal generation cost, it derives content from the current visible thread head and confirmed tenant response policy, a stale anchor must be reread, and a fallback must not be treated as an approved reply. It still does not say what the response contains or how the draft is returned, so it adds context without fully covering the write path.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the key precondition, which is good, but it is long and repeats the non-approval point three times ('creates no approval or send', 'never treat a fallback as an approved reply', 'before preparing approval'). Several sentences could be merged without losing meaning.

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 4-parameter mutation tool with no output schema, the description supplies the workflow ordering, cost warning, source-of-truth for content, and the downstream verification step. The only gap is that it never says what a successful call returns, which matters since no output schema exists.

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%, so baseline is 3. The description clarifies roles – communicationId selects the exact source, optional subject/body are the text to revise, tone changes style only and shorter/warmer/firmer never alter recipient or facts – but most of this restates what the schema descriptions already state.

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 gives a specific verb pair ('Generate or revise') plus a precise resource ('a draft'), and explicitly scopes it to an already-approved precondition rather than listing or approving. It names the sibling steps (get_reply_readiness/get_reply_brief before, get_reply_review after, approve pathway later) so an agent can place it in the workflow without opening other schemas.

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?

Usage conditions are explicit and ordered: only after an explicit drafting request and a successful readiness/brief call; call get_reply_brief first and review questions and missing facts; run get_reply_review on the exact generated subject/body before preparing approval; reread if the anchor is stale. Exclusion is also stated (no approval, no send), which routes the agent to the correct siblings.

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