Skip to main content
Glama
imessage-mcp

imessage-mcp

by kashyapmanu

Get conversation context

get_conversation
Read-only

Retrieve a chat's most recent messages in chronological order, oldest first. Page back into older context by specifying a date cutoff.

Instructions

Return the most recent messages of one chat in chronological order (oldest first). Use 'before' (ISO date) to page back into older context.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "chat_id": "<chat_id>"
    },
    "name": "get_conversation"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of items to return (1-500, default 50).
beforeNoOnly return messages sent before this ISO date/time.
chat_idYesChat id as returned by list_chats.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, non-destructive, non-open-world, so the safety profile is covered. The description adds ordering and backward-paging direction, which is genuine behavioral context, but says nothing about what happens at the end of history, whether an empty list is returned, or what invalid chat_ids do.

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 short sentences, zero filler, and the ordering behavior is front-loaded before the paging hint. Every clause earns its place.

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 simple three-parameter read tool with full schema coverage and no output schema, the description covers ordering and pagination direction, which is the main ambiguity. Only the termination/invalid-id behavior is left unstated, a minor gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema: it frames 'before' as a backward-pagination cursor rather than a plain filter, telling the agent how to walk history. It adds nothing for limit beyond what the schema already documents.

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?

The description gives a specific verb and resource ('Return the most recent messages of one chat') plus a scoping detail (chronological, oldest first). It is clear on its own, but it doesn't name a sibling such as read_messages or get_unread, so the agent must infer the distinction from names alone.

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?

It states the paging mechanism ('Use "before" ... to page back into older context'), which implies when to reach for this tool, but never says when to prefer a sibling like read_messages or get_unread, nor any prerequisites for chat_id.

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