Skip to main content
Glama
iMessage MCP

iMessage MCP

by 4ndylg

get_messages

Read text messages from a specified iMessage chat, with optional pagination and attachment paths or extracted attachment text. Returns messages only; it does not send or modify anything.

Instructions

读取指定聊天中的短信,并可把附件路径或附件文字一起返回。只读,不会发送或修改任何信息。

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": {
      "chat_identifier": "<chat_identifier>"
    },
    "name": "get_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo最多返回多少条短信。
offsetNo分页偏移量。
newest_firstNo是否按最新短信优先排序。
chat_identifierYes聊天 ID、chat_identifier、guid、显示名称或群聊 room_name。
include_attachmentsNo是否在每条短信下附带附件元数据和本机路径。
attachment_max_bytesNo每个附件最多返回多少字节的提取文本。
include_attachment_contentNo是否尝试把附件中的文字内容一起提取并返回。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations provided, the description carries the full disclosure burden and does contribute the key safety fact: it is read-only and will not send or modify anything. Beyond that it is silent on behavior an agent would want for a 7-parameter read tool, such as pagination semantics, attachment-text truncation at attachment_max_bytes, or any local-database access requirements.

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, purpose first and the read-only guarantee second; neither sentence is redundant and nothing is buried under preamble.

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 filtered-list tool whose seven parameters are fully documented in the schema and which has no output schema, the description covers the essentials: what is read, the attachment behavior, and the safety profile. It would be complete if it also hinted at ordering/paging defaults or mentioned that attachment content extraction is opt-in and byte-capped.

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 self-documenting with defaults, bounds, and meanings; the baseline of 3 applies. The description only gestures at the attachment options (include_attachments / include_attachment_content) without adding format or behavior detail beyond what the schema states.

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 states a specific verb and resource (读取指定聊天中的短信 – read messages in a given chat) and adds that attachment paths/text can be returned. It is clearly a retrieval tool, but it never distinguishes itself from siblings like get_messages_by_date or search_messages, which an agent must choose between.

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 when-to-use or when-not-to-use guidance and no alternative is named. The only usage signal is implicit in the phrase 'specified chat', leaving the agent to infer that a chat_identifier is required and that search_messages is the route for cross-chat queries.

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