Skip to main content
Glama
imessage-mcp

imessage-mcp

by selan-ai

imessage_attachment

Read-onlyIdempotent

Retrieve a message attachment by ID, returning photos as viewable JPEG images, video frames or PDF first pages, plus file name, type, size, and local path.

Instructions

One attachment, by the id a message lists: a photo as an image you can see (HEIC turned into JPEG, at most 1568 px a side), a video's frame or a PDF's first page as Quick Look draws it, and for any file its name, type, size and path on this Mac.

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": {
      "id": "<id>"
    },
    "name": "imessage_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe attachment's id, from a message's attachments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world behavior, so the description's job is to add context, and it does: HEIC is converted to JPEG capped at 1568 px per side, video and PDF are rendered as a frame or first page, and file metadata includes a local path. It does not mention failure behavior for bad ids or any size limits on non-image files.

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?

Everything is packed into one front-loaded sentence that leads with the resource and then enumerates output forms. The clause 'as Quick Look draws it' is slightly opaque implementation detail, but nothing is redundant.

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 one-parameter read tool with no output schema, the description does the heavy lifting by describing the returned representations and metadata fields. Only edge-case behavior, such as an unknown id or an unsupported attachment type, is left unstated.

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?

With a single parameter and 100% schema description coverage, the schema already explains the id field. The description adds real meaning by stating where that id originates (a message's attachments), which helps the agent source it correctly rather than guess.

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 description opens with a specific verb-and-resource statement: fetching exactly one attachment by the id a message lists. It also specifies what comes back for images, video, PDFs and generic files, so an agent can tell this apart from message-level siblings like imessage_messages or imessage_search.

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 names the precondition clearly: the id must come from a message's attachments list, which tells the agent it needs to read a message first. It does not state when not to use it or point at any alternative path for retrieving attachments, so it stops short of full routing guidance.

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