Skip to main content
Glama

search_drafts

Read-only

Search Gmail drafts with a query and return draft IDs, message/thread IDs, recipients, and snippets so you can locate a draft to send or delete.

Instructions

Search drafts by Gmail query string. Returns draft_id (for delete_drafts), message_id, thread_id, subject, to, and snippet. Use instead of search_emails when you need to delete or send a found draft.

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": {
      "account": "<account>",
      "query": "<query>"
    },
    "name": "search_drafts"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesGmail search query (e.g. "to:bob@example.com" or "subject:follow up").
accountYesAccount id ("personal", "tamu").
max_resultsNoMaximum number of results (default 20).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered structurally. The description adds useful downstream context by noting draft_id feeds delete_drafts and by listing the returned fields, which matters since there is no output schema. It still says nothing about pagination or how max_results affects completeness of results.

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?

Two tight sentences with zero filler. The core purpose and return fields come first, and the routing guidance to search_emails follows, matching how an agent reads.

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?

All three parameters are schema-documented, annotations carry the safety profile, and the description compensates for the absent output schema by naming the returned fields. An agent has everything it needs to call this correctly and chain the result into delete_drafts or send_draft.

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 100%, so query, account, and max_results are already documented in the input schema. The description's note that draft_id is the input for delete_drafts adds chaining meaning beyond the schema. It contributes little about the parameters themselves, so the baseline applies.

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 ("Search drafts by Gmail query string") and enumerates the returned fields (draft_id, message_id, thread_id, subject, to, snippet), which pins down the scope precisely. It also explicitly distinguishes itself from search_emails, so an agent can pick between them without opening either 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 an explicit selection rule: use this instead of search_emails when the found draft needs to be deleted or sent. That names both the alternative and the condition that selects it. It does not address list_drafts or say when listing-only browsing is preferable, so it falls short of full when/when-not coverage.

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