Skip to main content
Glama

draft_attach

Destructive

Put a file on one of the user's open drafts, or take one off, only when the user asked. Give one of:

  • file: a file or document in Files, by its id (docs_search, docs_list). A document goes as its PDF (as Download as PDF makes it).

  • message: a message's files, by its id; part (from mail_attachments) for one of them, else all of them, as Forward takes them.

  • remove: a file on the draft, by its number there (draft_list with draft: files), to take it off. Only a file everyone who sees the draft's mailbox may already open, since its copy in Sent shows to them all: a draft in a Team mailbox takes files only from a Files space the team sees (Company, or files set to Team) or a mailbox the team sees. Nothing is sent: the user reads the draft before Send. Each change shows in their Activity under your name, with Undo. Optional reason: why you're making this change, in one sentence the person reads (at most 1000 characters). Optional sources: reference addresses in Home, such as /mail/#/c/12; never message or document text.

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": {
      "draft": "<draft>",
      "author": "<author>"
    },
    "name": "draft_attach"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNo
partNo
draftYes
modelNo
authorYes
reasonNo
removeNo
messageNo
sourcesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, but the description adds substantive context beyond them: the permission/visibility rule (a Team-mailbox draft only takes files from a Files space the team sees or a mailbox the team sees, because the copy in Sent is visible to all), that nothing is sent and the user reviews before Send, and that each change appears in Activity under the agent's name with Undo. It also bounds the reason field at 1000 characters and warns that sources must never contain message or document text.

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 action and its permission gate are front-loaded in the first two sentences, and the bulleted input-mode list scans well. Density is high and most clauses earn their place, though the parenthetical cross-references to sibling tools ("as Download as PDF makes it", "as Forward takes them") make some sentences slower than necessary.

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 9-parameter mutation tool with no output schema, this covers the important ground: which inputs are mutually exclusive modes, what happens on success (nothing sent, user reviews), side effects (Activity entry, Undo), and visibility constraints. The gaps are the two unexplained parameters (model, author) and no statement of what the tool returns on success or failure.

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 description coverage is 0% across 9 parameters, so the description must carry the load, and it explains file (Files id, delivered as PDF), message (message id, as Forward renders it), part (one file out of a message via mail_attachments), remove (the file's index on the draft, from draft_list with draft: files), reason, and sources. It leaves model and author undocumented, and only implicitly defines draft as the target draft id.

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?

"Put a file on one of the user's open drafts, or take one off" states a specific verb pair (attach/remove) and a specific resource (draft), and the immediately following list makes the two modes concrete. The agent can tell this apart from draft_list, draft_edit, or docs_search because those appear only as inputs here, not as alternatives.

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?

It gives a clear gating condition ("only when the user asked") and an explicit input-mode breakdown: a Files document by id from docs_search/docs_list, a message's files by id from mail_attachments, or remove by an index from draft_list. What it lacks is an explicit statement of when to prefer a different draft tool (e.g., draft_edit) or what to do when none of the three input modes fits.

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.