Skip to main content
Glama
imessage-mcp

imessage-mcp

by kashyapmanu

Read iMessage messages

read_messages
Read-only

Retrieve iMessage history newest-first with optional filters for chat, contact, and date range, returning timestamps, senders, text, and attachment counts; tapbacks and group events are excluded.

Instructions

Read messages newest-first, optionally filtered by chat id, contact (name, phone or email) and date range. Returns timestamp, sender (me or handle), sender_name from Contacts for incoming messages, text, is_from_me and attachment count. Tapbacks and group events are excluded.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of items to return (1-500, default 50).
sinceNoISO 8601 date or datetime, e.g. 2025-01-31 or 2025-01-31T09:00:00Z.
untilNoISO 8601 date or datetime, e.g. 2025-01-31 or 2025-01-31T09:00:00Z.
offsetNoNumber of messages to skip (pagination).
chat_idNoChat id as returned by list_chats.
contactNoContact name, phone number, email or handle id substring (e.g. 'Alice', '(415) 555-1234', 'alice@', '+1555'). Names are resolved from macOS Contacts. Matches messages from matching handles, and your replies in chats that include them.

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?

Annotations already establish readOnly, non-destructive, closed-world, so the description is not carrying the safety burden. It still adds real behavioral context: result ordering, the exact return fields, Contacts-based name resolution for incoming messages, and the exclusion of tapbacks and group events, which an agent could not infer from the schema.

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, both dense and front-loaded: filtering and ordering first, then return shape and exclusions. Nothing is repeated from the schema and no sentence is filler.

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?

With no output schema, the description correctly enumerates the returned fields and states what is filtered out, which is what an agent needs to interpret results. Minor gaps remain around pagination interaction with filters, but limit/offset are documented in the schema.

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 coverage is 100% and the schema describes contact-matching semantics, date formats, and limit/offset bounds in detail. The description mostly restates the filter set ('chat id, contact (name, phone or email) and date range') without adding syntax or interaction rules beyond what the parameters already document.

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 ('Read messages') plus ordering ('newest-first') and the three filters (chat id, contact, date range), which lets an agent tell it apart from a broad search. It never names search_messages or get_conversation, so the sibling differentiation is implicit rather than stated.

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 context is implied by the 'optionally filtered by' phrasing and the newest-first ordering, which suggests a browse/recent-read pattern. There is no explicit statement of when to prefer this over search_messages or get_conversation, and no exclusions or prerequisites.

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