Skip to main content
Glama
Open Instagram API

Open Instagram API

read_messages

Read-only

Fetches the newest messages from an Instagram chat thread and accepts a cursor to page back through older messages.

Instructions

Read the newest messages of a chat (about 20). Pass next_cursor as cursor for older ones.

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": {
      "thread_id": "<thread_id>"
    },
    "name": "read_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
cursorNo
thread_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds a real behavioral detail, the approximate page size of ~20 messages, which the annotations do not convey. It is silent on read-state effects (does reading mark messages seen?), error behavior, and whether the result includes a next_cursor field, which matters since there is no output 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 short sentences with zero filler; the primary behavior is front-loaded and the pagination instruction follows immediately. Nothing could be removed without losing information.

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?

The tool is simple (2 params, no output schema), and the description covers the core read plus paging. Still missing for correct invocation: how large the result can be beyond the vague 'about 20', what the response contains (next_cursor field name), and whether reading affects seen/unread state given the presence of mark_seen and unread_threads siblings.

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 0%, so the description must carry parameter meaning. It does explain the non-obvious part, that the value to pass as 'cursor' is the 'next_cursor' returned for older pages, which is genuinely additive. The required 'thread_id' is never explained, and the format of the cursor string is left implicit.

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 the newest messages of a chat') with a concrete scope ('about 20'). It does not distinguish itself from siblings like get_new_messages or wait_for_messages, so an agent cannot tell from the description alone which of the three read paths to pick.

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?

Gives clear pagination guidance ('Pass next_cursor as cursor for older ones'), which is the main when-to-use decision for this tool. However, there is no guidance on when to use this versus get_new_messages or wait_for_messages, and no exclusions or prerequisites (e.g., membership in the thread).

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