Skip to main content
Glama
Open Instagram API

Open Instagram API

get_new_messages

Read-only

Retrieve incoming Instagram direct messages newer than a specified epoch timestamp so assistants can read and answer new DMs as they arrive.

Instructions

Incoming messages newer than since_ms (epoch milliseconds). Use the newest timestamp_ms you've seen.

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": "get_new_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
since_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 and external reach are covered. The description adds cursor-advancement behavior, which is useful, but says nothing about ordering, result limits, or whether returning a message affects its read/seen state.

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: the filter definition first, then the operational hint. Nothing is redundant and nothing is buried.

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 one-parameter polling read with annotations and no output schema, the essentials are present, and timestamp_ms implicitly hints at the returned item shape. Gaps remain around ordering, pagination limits, and whether messages are marked as seen as a side effect.

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 0% and the single parameter only carries a default of 0, so the description carries the burden. It explains that since_ms is epoch milliseconds and, critically, tells the agent where to get the value ('the newest timestamp_ms you've seen'), which is meaning the schema does not provide.

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 names a specific resource and scope: incoming messages newer than a cursor, expressed as 'since_ms (epoch milliseconds)'. That is concrete enough to distinguish it from broad readers like read_messages or blocking waiters like wait_for_messages, though it never states the verb explicitly or names an alternative.

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?

'Use the newest timestamp_ms you've seen' gives real guidance on how to chain calls, which implies a polling pattern. However, it never says when to use this instead of read_messages or wait_for_messages, so the choice between siblings is left to inference.

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