Skip to main content
Glama

Read Messages

read_messages
Read-only

Reads messages from an iMessage conversation by chat ID or contact name. An attachment shows as [attachment: ()] where it sits in the text, and attachments lists each file's filename and mime type.

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
limitNoMax messages (default 50)
chat_idNoChat identifier. Call list_message_chats first and pass the chat_id it returns, or pass contact_name.
contact_nameNoContact name substring (alternative to chat_id)

Output Schema

NameRequiredDescriptionDefault
noteNo
countNo
chat_idNo
messagesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / chat_id / description
      Previous value: -"Chat identifier from list_message_chats"New value: +"Chat identifier. Call list_message_chats first and pass the chat_id it returns, or pass contact_name."
  2. Changed1 schema field changed
    • addedOutput schema / properties / messages / items / properties / attachments
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "filename": {
      +        "type": "string"
      +      },
      +      "mime_type": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the low-risk read profile is covered. The description adds genuinely new behavioral context by specifying how attachments are surfaced — an inline '[attachment: <filename> (<type>)]' marker at the text position plus an `attachments` array of filename and mime type. That is format behavior an agent would otherwise have to discover by trial.

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, no filler, with the core purpose front-loaded ahead of the attachment-format detail. Every clause carries information an agent needs or benefits from.

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?

An output schema exists, so return values need not be spelled out, and the readOnly annotations cover the safety profile; the description fills the remaining gap by explaining attachment rendering. It is nearly complete for a 3-parameter, zero-required tool, losing a point only for not noting message ordering or the default/vs-explicit limit relationship outside 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 description coverage is 100%, so the baseline applies: chat_id, contact_name and limit are fully documented in the schema. The description only echoes that chat ID or contact name may be used as the selector and adds nothing about the limit, ordering, or precedence when both selectors are supplied.

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 ('Reads messages from an iMessage conversation') and narrows it by chat ID or contact name. Naming iMessage is the key differentiator against the many sibling read_messages tools (signal_, telegram_, whatsapp_, zalo_, teams_), so an agent can disambiguate. It stops short of a 5 because it never contrasts itself with search_messages or list_message_chats.

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: 'by chat ID or contact name' suggests you read one existing conversation at a time. There is no statement of when to prefer this over search_messages for cross-chat lookup, or that list_message_chats must be run first (that prerequisite lives only in the schema's chat_id description). Adequate but leaves the agent to infer routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources