Skip to main content
Glama
iMessage MCP

iMessage MCP

by 4ndylg

list_attachments

Lists iMessage attachments with local file paths, sizes, types, and linked message metadata. Filter by message or chat and page results to inventory media in the macOS Messages database.

Instructions

列出 iMessage 附件,返回本机文件路径、大小、类型和关联短信等元数据。只读。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo最多返回多少个附件。
offsetNo分页偏移量。
message_idNo可选。短信在数据库中的 message row ID。
chat_identifierNo可选。聊天 ID、chat_identifier、guid、显示名称或群聊 room_name。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does add value by declaring '只读' and by naming the returned metadata fields. However, it omits other behaviorally relevant facts: that results are paginated (limit/offset defaults), that returned paths are local machine paths that may no longer exist on disk, and any ordering guarantee for the listing.

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 short sentences, front-loaded with the verb and resource, then the return payload, then the read-only guarantee. No filler or redundancy.

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

Completeness3/5

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

The description partly compensates for the absent output schema by enumerating returned fields, which is the strongest part. But for a 4-parameter, annotation-free listing tool it leaves out pagination behavior, filter semantics, and how it relates to read_attachment, so it is adequate rather than complete.

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 is already documented in the schema and the description adds no meaning beyond it. The description gives no hint that message_id and chat_identifier act as optional narrowing filters on the listing, which is the one piece of added semantics that would have helped.

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?

States a specific verb and resource ('列出 iMessage 附件') and enumerates what comes back (本地文件路径、大小、类型、关联短信元数据), so the agent knows exactly what the tool produces. It does not distinguish this listing operation from the sibling read_attachment, so it falls short of a 5.

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 explicit when-to-use or when-not-to-use guidance, and no mention of the obvious alternative read_attachment for fetching a single attachment's content. The agent must infer from the verb '列出' alone that this is an enumeration tool rather than a content-retrieval tool.

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