Skip to main content
Glama

Postkey: Instagram DM Automation and Comment-to-DM

Account results and follower growth

postkey_get_account_stats
Read-onlyIdempotent

Postkey: Reports how each connected social account did over the last 7, 30 or 90 days: per account its posts, views, likes, comments, shares, engagement rate, average views, followers now and the change in followers; the profile's totals; and a day by day series of views gained and followers. Use it to compare accounts and see growth over time; for the best single posts use postkey_get_post_stats, and for DM results use postkey_get_dm_insights.

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

Input Schema

NameRequiredDescriptionDefault
daysNoThe window, counted back from today in the profile's time zone: 7, 30 (default) or 90 days.

Output Schema

NameRequiredDescriptionDefault
okYesfalse: refused (isError; code, message, guide_topic, url); no change.
toNoIts last day (today).
daysNoThe window: the last 7, 30 or 90 days.
fromNoThe window's first day, YYYY-MM-DD in time_zone.
noteNoHow the numbers are counted.
dailyNoOne per day: day, views_gained (null when daily numbers are not kept yet), followers (all accounts together; null when not known).
totalsNoposts, views, likes, comments, shares, engagement_rate (0.03 is 3%; null without views).
accountsNoPer social account, most views first: social_account_id, platform, handle, connected, needs_reconnect, posts, views, likes, comments, shares, engagement_rate, average_views, followers, followers_change (null when not known).
followersNoavailable, total, change over the window, and note when follower numbers could not be read.
last_readNoWhen the post numbers were last read from the platforms.
time_zoneNoThe profile's time zone.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior, so the description doesn't need to restate safety. It adds the reporting granularity — per-account metrics, profile totals, and a day-by-day series — plus the comparison/growth intent, which is useful behavioral context. It stops short of noting data freshness, limits, or whether the daily series is paginated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and time window are front-loaded in the opening clause, and the second sentence routes the agent to alternatives. The metric enumeration is long but each item is informative; the text is dense rather than padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter reporting tool with a full output schema and rich annotations, the description covers purpose, metrics, time window, and sibling routing. The only omissions — default window and time-zone behavior — are already documented in the schema, so nothing an agent needs to call it correctly is missing.

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?

The single 'days' parameter has 100% schema description coverage, including the enum values, the 30-day default, and the time-zone basis. The description echoes the 7/30/90 window but adds no syntax or default detail beyond the schema, so the baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Reports how each connected social account did') and enumerates the exact metrics returned (posts, views, likes, comments, shares, engagement rate, followers, follower change). It also distinguishes itself from the two most relevant siblings, so an agent can identify it without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says when to use it ('compare accounts and see growth over time') and names the alternatives with their selecting conditions: postkey_get_post_stats for best single posts and postkey_get_dm_insights for DM results. Nothing 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources