Skip to main content
Glama

Gmail Reply

gmail_reply
Destructive

Reply to a Gmail message within its existing thread, choosing sender-only or reply-all while preserving the subject and threading headers.

Instructions

Reply to one Gmail message inside its existing thread, to the sender only or with reply_all to everyone on it: the subject is reused and In-Reply-To and References point at that message, leaving out the account's own and send-as addresses (on your own sent mail the original recipients are kept). gmail_send_email starts a new conversation instead, and gmail_save_draft saves mail for review without sending. Returns status 'sent' with mode ('reply' or 'reply_all'), the new message_id, thread_id, to, cc and subject, or status 'cancelled' if the user declines. The user is always asked to approve the reply first, shown its recipients, subject, attachments and body.

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": {
      "message_id": "<message_id>"
    },
    "name": "gmail_reply"
  }
}

Input Schema

NameRequiredDescriptionDefault
html_bodyNoHTML body, sent as an alternative to text_body; without text_body the plain-text part is the placeholder 'This message contains HTML content.'
reply_allNoFalse (default) answers only the sender: the message's Reply-To address, else its From. True also copies every other original To and Cc address in Cc.
text_bodyNoPlain-text body. Pass it together with html_body to send both versions; with neither, the body is empty.
message_idYesID of the Gmail message to answer, from gmail_search_emails, gmail_get_thread or gmail_read_emails.
attachmentsNoFiles to attach, each with exactly one source: uploaded_file (an upload handle from uploads_file_manager) or file_path (local stdio servers only).

Output Schema

NameRequiredDescriptionDefault
ccNo
toNo
modeNo
statusNoMachine-readable operation status.
messageNo
subjectNo
label_idsNo
thread_idNo
message_idNo
replied_to_message_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing threading mechanics (subject reuse, In-Reply-To and References pointing at the original), recipient-selection rules including exclusion of own/send-as addresses, the approval prompt the user sees, and the two possible status outcomes. The annotations cover the safety profile (destructive/openWorld), and the description complements that with concrete behavioral detail rather than contradicting it.

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-loads the action and mode, then alternatives, then returns, then the approval note — a sensible order. The single dense opening sentence is heavy but every clause carries distinct information; only the return-value sentence is arguably redundant given the output schema.

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 destructive, non-idempotent send operation with an output schema, the description covers threading semantics, recipient resolution, human approval, and status outcomes — everything an agent needs to invoke it safely. Nothing material is left implicit.

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 baseline is 3; the description earns above that by adding semantics the schema does not spell out — the effective recipient set for reply_all, the own-address exclusion, and the exception where the original recipients are kept on self-sent mail. It does not re-describe html_body/text_body/attachments handling, which the schema already covers in depth.

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?

Names a specific verb and resource ("Reply to one Gmail message inside its existing thread") and immediately scopes the two modes (sender only vs reply_all). It explicitly distinguishes itself from gmail_send_email and gmail_save_draft, so an agent can pick the right tool without opening any 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?

Gives explicit routing rules: use this to continue a thread, gmail_send_email to start a new conversation, gmail_save_draft to stage mail for review. It also states the approval precondition, which is the practical gate an agent must plan around before calling.

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

Deploy Server

Other Tools