Skip to main content
Glama

Draft reply to email

reply_to_matter_email

Saves a Gmail draft reply in the same thread in the signed-in person's mailbox, CCing the Clio maildrop. Does not send. A first call returns a preview; a second call with confirm true and that preview_id applies the change. Sign-in required.

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": {
      "matter_id": "<matter_id>",
      "message_id": "<message_id>",
      "body": "<body>"
    },
    "name": "reply_to_matter_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesReply text.
confirmNofalse or omitted returns a preview; true applies the change identified by preview_id.
is_htmlNoBody is HTML. Defaults to plain text.
matter_idYesClio matter id (digits) from find_matter or list_open_matters. Not the display number.
reply_allNoAlso CC the other recipients. Defaults to false.
message_idYesGmail message id from search_my_email or get_email_thread.
preview_idNopreview_id is the id returned by this tool's preview call. Required when confirm is true.
idempotency_keyNoOptional. A retry with the same key returns the first result without a second write. Defaults to preview_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / body
      Added value: +{
      +  "description": "Reply text.",
      +  "type": "string"
      +}
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "false or omitted returns a preview; true applies the change identified by preview_id.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Optional. A retry with the same key returns the first result without a second write. Defaults to preview_id.",
      +  "type": "string"
      +}
    • addedInput schema / properties / is_html
      Added value: +{
      +  "description": "Body is HTML. Defaults to plain text.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / matter_id
      Added value: +{
      +  "description": "Clio matter id (digits) from find_matter or list_open_matters. Not the display number.",
      +  "type": "string"
      +}
    • addedInput schema / properties / message_id
      Added value: +{
      +  "description": "Gmail message id from search_my_email or get_email_thread.",
      +  "type": "string"
      +}
    • addedInput schema / properties / preview_id
      Added value: +{
      +  "description": "preview_id is the id returned by this tool's preview call. Required when confirm is true.",
      +  "type": "string"
      +}
    • addedInput schema / properties / reply_all
      Added value: +{
      +  "description": "Also CC the other recipients. Defaults to false.",
      +  "type": "boolean"
      +}
    • addedInput schema / required
      Added value: +[
      +  "matter_id",
      +  "message_id",
      +  "body"
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: a side effect occurs (CC to the Clio maildrop), no send happens, sign-in is required, and the write is gated behind a preview/apply two-call sequence. Annotations already declare non-readonly, non-destructive, non-idempotent, so the remaining value is the workflow disclosure, which is present. It does not discuss the idempotency_key retry behavior, which is the one behavioral nuance left unstated.

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

Conciseness5/5

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

Three short sentences, front-loaded with what is created and where, followed by the critical constraint and the call protocol. No redundant restatement of the name or title.

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 an eight-parameter write tool with no output schema, the description covers the side effect, the auth prerequisite, and the two-phase flow, which are the main things that could cause a wrong call. Minor gaps (what the preview returns, whether the draft is visible to other users before sending) are tolerable given no output schema is expected. Strong but not exhaustive.

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 every parameter including confirm, preview_id, and idempotency_key is already documented in the schema itself. The description reinforces the confirm/preview_id relationship but adds no format, range, or usage detail the schema lacks. Baseline 3 applies when the schema carries the load.

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 (saves a Gmail draft reply in the same thread) plus the scope qualifier (the signed-in person's mailbox) and an explicit negative ('Does not send'). An agent can distinguish this from draft_outlook_reply and from any send tool without opening a 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?

Gives the operational context that selects this tool: Gmail mailbox, sign-in required, draft-only, and the preview-then-confirm protocol with exact instructions ('a second call with confirm true and that preview_id'). It does not explicitly say when to prefer it over draft_outlook_reply or when to use draft_matter_email instead, leaving sibling routing to inference from 'Gmail'.

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