Skip to main content
Glama

reply_to_email

Send email replies by searching for messages using subject keywords, with options to include attachments, CC/BCC recipients, and choose delivery modes.

Instructions

Reply to an email matching a subject keyword.

Args: account: Account name (e.g., "Gmail", "Work") subject_keyword: Keyword to search for in email subjects reply_body: The body text of the reply reply_to_all: If True, reply to all recipients; if False, reply only to sender (default: False) cc: Optional CC recipients, comma-separated for multiple bcc: Optional BCC recipients, comma-separated for multiple send: If True (default), send immediately; if False, save as draft. Ignored if mode is set. mode: Delivery mode — "send" (send immediately), "draft" (save silently), or "open" (open compose window for review). Overrides send parameter when set. attachments: Optional file paths to attach, comma-separated for multiple (e.g., "/path/to/file1.png,/path/to/file2.pdf") body_html: Optional HTML body for rich formatting (bold, headings, links, colors). When provided, the reply is pasted as HTML. The plain 'reply_body' field is still required as fallback text.

Returns: Confirmation message with details of the reply sent, saved draft, or opened draft

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountYes
subject_keywordYes
reply_bodyYes
reply_to_allNo
ccNo
bccNo
sendNo
modeNo
attachmentsNo
body_htmlNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden. It successfully discloses the send/draft/open modes and their interactions (mode overrides send), reply_to_all behavior, and HTML/plain text fallback requirements. However, it lacks disclosure of error behaviors (e.g., multiple subject matches), authentication requirements, or rate limits.

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?

The docstring format (Args/Returns) is well-structured and front-loaded with the core purpose. While lengthy due to the need to document 10 undocumented parameters, every sentence provides necessary value given the schema coverage gap. Minor verbosity in the Returns section.

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 10-parameter tool with complex delivery modes and no annotations, the description is comprehensive. It covers all parameters, return values, and the critical mode/send interaction. Minor gaps remain regarding edge cases (multiple email matches) and authorization requirements.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Given 0% schema description coverage, the Args section comprehensively compensates by documenting all 10 parameters with rich semantics, including format examples (account: 'Gmail', 'Work'), delimiter specifications (comma-separated for cc/bcc/attachments), and path examples for attachments.

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 'Reply to an email matching a subject keyword' provides a specific verb (Reply), resource (email), and distinguishing mechanism (subject keyword search) that clearly differentiates it from sibling tools like compose_email (new emails) and forward_email (forwarding).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no explicit guidance on when to use this tool versus alternatives like compose_email or forward_email, nor does it mention prerequisites (e.g., that the target email must exist). The agent must infer usage solely from the parameter names.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/patrickfreyer/apple-mail-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server