Skip to main content
Glama
macos-mcp
by jbkjr

list_messages

List iMessage and SMS messages with filters for chat, contact, sender, and date range; results return newest first so you can find specific conversations quickly.

Instructions

List iMessage/SMS messages with optional filters (chat, contact name, date range, sender). Use "contact" to filter by name (automatically resolves to chat IDs). Returns most recent messages first.

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_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of messages to return (default: 50)
chatIdNoFilter messages by chat ID
fromMeNoFilter to only messages sent by me (true) or received (false)
contactNoFilter by contact name, phone, or email (resolves to chat IDs automatically)
afterDateNoFilter messages after this date (ISO 8601)
beforeDateNoFilter messages before this date (ISO 8601)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses two useful traits — that 'contact' auto-resolves to chat IDs and that results come back newest-first — but says nothing about read-only safety, permission requirements (iMessage database access is typically privileged), pagination beyond the limit, or what fields a returned message contains, which is thin for a zero-annotation tool.

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?

Three short sentences, front-loaded with the operation and resource, then behavior. The parenthetical filter list largely restates schema property names and is the only mildly redundant element.

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?

For a six-parameter, all-optional read tool with no output schema and no annotations, the description covers the operation and ordering but leaves return shape, pagination semantics, and access requirements unstated. It is adequate to make a first call but not complete enough for an agent to predict results or handle edge cases.

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 all six parameters are already documented with defaults and formats. The description reinforces the non-obvious resolution behavior of 'contact' and the filter dimensions, but adds little beyond what the schema states, making the baseline of 3 appropriate.

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 concrete verb and resource ('List iMessage/SMS messages') plus the scope of filtering available, which is far more specific than the bare tool name. It does not, however, distinguish this from the sibling search_messages, so an agent must infer that this is the plain enumeration path versus a query-based one.

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: the parenthetical filter list and the note to use 'contact' for name-based filtering hint at when to reach for this tool, but there is no explicit when-to-use or when-not-to-use guidance and no mention of search_messages as the alternative for match-based retrieval.

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