Skip to main content
Glama
jonmmease
by jonmmease

get_message_context

Retrieve surrounding messages from an iMessage conversation to understand context around a specific message, providing chronological order with the target marked.

Instructions

Get messages surrounding a specific message in the same conversation.

Use this to get context around a message found via search. Returns messages from the same chat/thread, ordered chronologically, with the target message marked.

Args: rowid: The rowid of the message to get context for before: Number of messages to fetch before the target (default: 5) after: Number of messages to fetch after the target (default: 5)

Returns: Dictionary with: - messages: List of messages in chronological order - target_index: Index of the target message in the list - chat_id: The chat ID for the conversation - chat_identifier: The chat identifier (phone/email/group)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rowidYes
beforeNo
afterNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jonmmease/jons-mcp-imessage'

If you have feedback or need assistance with the MCP directory API, please join our Discord server