Skip to main content
Glama
iMessage MCP

iMessage MCP

by 4ndylg

get_messages_by_date

Retrieve text messages from all chats for a specific local date, filter by sent or received, and optionally extract attachment text. Read-only; no messages are sent or modified.

Instructions

按本机日期读取所有聊天中的短信,可筛选已发送/已接收,并默认尝试提取附件文字。只读,不会发送或修改任何信息。

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": "get_messages_by_date"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNo本机日期,格式为 YYYY-MM-DD。不填时默认今天。
limitNo最多返回多少条短信。
offsetNo分页偏移量。
directionNoall 表示全部短信,sent 表示我发送的短信,received 表示我收到的短信。all
include_attachmentsNo是否在每条短信下附带附件元数据和本机路径。
attachment_max_bytesNo每个附件最多返回多少字节的提取文本。
include_attachment_contentNo是否尝试把图片、PDF、文档等附件中的文字一起提取并返回。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/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 does disclose two non-obvious traits: it is strictly read-only ('只读,不会发送或修改任何信息') and it by default attempts attachment text extraction ('默认尝试提取附件文字'), which implies extra latency/cost an agent should know about. It does not mention access requirements or result ordering, so not a 5.

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 sentences, front-loaded with the core scope, followed by the safety/behavior clause. No repetition of the schema's parameter defaults and no filler wording.

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 7-parameter optional-only read tool with no annotations and no output schema, the description covers scope, filtering, attachment behavior and safety. It stops short of describing the shape of returned messages (fields, attachment metadata/paths) that an agent must reason about without an output schema, so it is strong but not 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 date format, direction enum, pagination and byte limits are already fully documented in the schema. The description only restates the direction filter and attachment-extraction default, adding no syntax or format detail beyond structured fields – the baseline 3 applies.

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+resource ('读取所有聊天中的短信' – read messages across all chats) and adds the scoping dimension (by local date) plus the sent/received filter, so an agent can tell it apart from a chat-scoped reader like get_messages in practice. It does not name any sibling explicitly, which keeps it at 4 rather than 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: '按本机日期' signals that date-based retrieval is this tool's domain, and the sent/received filter is mentioned. There is no explicit when-to-use vs. when-not guidance and no reference to search_messages or get_messages as alternatives, leaving routing to inference.

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