Skip to main content
Glama

List Email Attachments

list_email_attachments

Lists attachments for Apple Mail messages found by subject keyword or message ID, helping you identify files attached to specific emails.

Instructions

List attachments for emails matching a subject keyword.

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>"
    },
    "name": "list_email_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountYesAccount name (e.g., "Gmail", "Work", "Personal")
mailboxNoMailbox for id lookup (default: "INBOX"); nested names use "/"INBOX
message_idNoNumeric internal Mail id; overrides subject_keyword
max_resultsNoMaximum number of matching emails to check (default: 1)
subject_keywordNoKeyword to search for in email subjects

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv3.3.0
    • addedInput schema / properties / mailbox
      Added value: +{
      +  "default": "INBOX",
      +  "description": "Mailbox for id lookup (default: \"INBOX\"); nested names use \"/\"",
      +  "type": "string"
      +}
    • addedInput schema / properties / message_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Numeric internal Mail id; overrides subject_keyword"
      +}
    • addedInput schema / properties / subject_keyword / default
      Added value: +""
    • changedInput schema / required
      Previous value: -[
      -  "account",
      -  "subject_keyword"
      -]New value: +[
      +  "account"
      +]
  2. Changed11 schema fields changedv3.2.1
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / account / description
      Added value: +"Account name (e.g., \"Gmail\", \"Work\", \"Personal\")"
    • removedInput schema / properties / account / title
      Removed value: -"Account"
    • addedInput schema / properties / max_results / description
      Added value: +"Maximum number of matching emails to check (default: 1)"
    • removedInput schema / properties / max_results / title
      Removed value: -"Max Results"
    • addedInput schema / properties / subject_keyword / description
      Added value: +"Keyword to search for in email subjects"
    • removedInput schema / properties / subject_keyword / title
      Removed value: -"Subject Keyword"
    • removedInput schema / title
      Removed value: -"list_email_attachmentsArguments"
    • removedOutput schema / properties / result / title
      Removed value: -"Result"
    • removedOutput schema / title
      Removed value: -"list_email_attachmentsOutput"
    • addedOutput schema / x-fastmcp-wrap-result
      Added value: +true
  3. First observedv3.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of disclosure and largely drops it. It never states that this is a read-only operation, what the response contains, or that max_results defaults to 1 — meaning only one matching email is inspected by default, a behaviorally significant default the agent would not expect.

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?

A single tight sentence with the resource and filter front-loaded and no filler. It is efficient, though its brevity comes at the cost of the lookup-mode and default-behavior detail noted elsewhere.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With five parameters, two mutually exclusive lookup modes (message_id overriding subject_keyword), a non-obvious max_results default of 1, and no annotations, the definition is too thin. An output schema exists so return values need not be described, but the targeting and default behavior gaps remain material.

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 the schema already explains account, mailbox, message_id, max_results, and subject_keyword. The description adds only a hint that subject_keyword drives selection and does not mention the message_id override, so it does not meaningfully exceed the schema baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ("List attachments for emails") and names the selection basis (subject keyword), which distinguishes it from siblings like save_email_attachment and read_email. It omits, however, that attachments can equally be targeted by message_id, so the stated scope is narrower than the tool's real purpose.

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?

There is no guidance on when to choose this tool over read_email, search_emails, or save_email_attachment, and no prerequisites or exclusions are stated. The agent must infer from the name alone that this is the way to enumerate attachments before saving them.

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