Skip to main content
Glama

Postkey: Instagram DM Automation and Comment-to-DM

Post results

postkey_get_post_stats
Read-onlyIdempotent

Postkey: Reports how the profile's published posts did over the last 7, 30 or 90 days by publish time: totals of views, likes, comments and shares across platforms, and the 10 best posts by views. With post_id, that one post only. With recent, the newest posts with views and captions instead, including posts made outside Postkey: use it to compare posts and audit hooks. Use it for post results; for DM automation results use postkey_get_automation_stats, and for one post's status or errors use postkey_get_post.

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_post_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoThe window, counted back from now: 7, 30 (default) or 90 days.
recentNo1 to 50: the newest this many published posts across connected accounts, including posts made outside Postkey. Ignores days and post_id.
post_idNoOnly this post (a UUID from postkey_list_posts). Leave out for the whole profile.

Output Schema

NameRequiredDescriptionDefault
okYesfalse: refused (isError; code, message, guide_topic, url); no change.
bestNoUp to 10 by views: post_id, platform, handle, title, caption_start, published, views, likes, comments, shares, link.
daysNoThe window: the last 7, 30 or 90 days, by publish time.
noteNoWith recent: history still syncing, or nothing connected.
postsNoPublished posts in the window, counted once per social account.
recentNoWith recent: how many were asked for.
totalsNoviews, likes, comments, shares.
post_idNoWith post_id: the post asked for.
recent_postsNoWith recent, newest first: platform, handle, published, views, likes, comments, shares, caption, link, made_with_postkey.
accounts_readNoWith recent: accounts read.
accounts_failedNoWith recent: accounts not read this time, with reason.
accounts_skippedNoWith recent: accounts left out, with reason.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / recent
      Added value: +{
      +  "description": "1 to 50: the newest this many published posts across connected accounts, including posts made outside Postkey. Ignores days and post_id.",
      +  "maximum": 50,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / accounts_failed
      Added value: +{
      +  "description": "With recent: accounts not read this time, with reason.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / accounts_read
      Added value: +{
      +  "description": "With recent: accounts read.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / accounts_skipped
      Added value: +{
      +  "description": "With recent: accounts left out, with reason.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / note
      Added value: +{
      +  "description": "With recent: history still syncing, or nothing connected.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / recent
      Added value: +{
      +  "description": "With recent: how many were asked for.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / recent_posts
      Added value: +{
      +  "description": "With recent, newest first: platform, handle, published, views, likes, comments, shares, caption, link, made_with_postkey.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / properties / ok / description
      Previous value: -"false: refused (isError true; code, message, guide_topic, url), nothing changed."New value: +"false: refused (isError; code, message, guide_topic, url); no change."
  3. Changed3 schema fields changed
    • changedInput schema / properties / days / description
      Previous value: -"Default 30."New value: +"The window, counted back from now: 7, 30 (default) or 90 days."
    • changedInput schema / properties / post_id / description
      Previous value: -"Only this post (from postkey_list_posts). Leave out for the whole profile."New value: +"Only this post (a UUID from postkey_list_posts). Leave out for the whole profile."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "best": {
      +      "description": "Up to 10 by views: post_id, platform, handle, title, caption_start, published, views, likes, comments, shares, link.",
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "days": {
      +      "description": "The window: the last 7, 30 or 90 days, by publish time.",
      +      "type": "number"
      +    },
      +    "ok": {
      +      "description": "false: refused (isError true; code, message, guide_topic, url), nothing changed.",
      +      "type": "boolean"
      +    },
      +    "post_id": {
      +      "description": "With post_id: the post asked for.",
      +      "type": "string"
      +    },
      +    "posts": {
      +      "description": "Published posts in the window, counted once per social account.",
      +      "type": "number"
      +    },
      +    "totals": {
      +      "description": "views, likes, comments, shares.",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / post_id
      Added value: +{
      +  "description": "Only this post (from postkey_list_posts). Leave out for the whole profile.",
      +  "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
      +  "type": "string"
      +}
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, closed-world behavior, so the description's added value is in the semantics: the window is counted back from now with a 30-day default, post_id narrows to a single post, and recent overrides days/post_id and includes posts made outside Postkey. Those mode-precedence and data-coverage facts are exactly the behavior an agent cannot infer from the annotations.

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?

Front-loaded with purpose, then modes, then sibling routing — a sensible order with almost no filler. The middle sentence packing 'recent', the outside-Postkey note, and the use case into one colon-separated clause is dense enough to slightly slow parsing.

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?

All three optional parameters are accounted for, the default and precedence rules are stated, and an output schema exists so return values need no prose. An agent can call this correctly without consulting anything else.

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; the description adds the mode interplay and what each mode returns ('that one post only', 'newest posts with views and captions instead'), which goes beyond the field-level text. It does not, however, add format or edge-case detail (e.g. what happens with post_id and a non-published post), so it stays short of a 5.

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 published posts performed, with metric totals (views, likes, comments, shares), a top-10 by views, and named modes for single-post and recency views. The opening clause makes the resource distinguishable from siblings like postkey_get_automation_stats without opening any 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?

Gives explicit routing: 'Use it for post results; for DM automation results use postkey_get_automation_stats, and for one post's status or errors use postkey_get_post.' It also names the concrete use cases (compare posts, audit hooks), leaving no ambiguity about when this tool is the right pick.

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