Skip to main content
Glama

Postkey: Instagram DM Automation and Comment-to-DM

Get one post

postkey_get_post
Read-onlyIdempotent

Postkey: Gets one post in full: the caption, keyword, link_url, media (library_item_id, kind, title), YouTube and Instagram reel settings, platform_settings, what is planned (when, at), and each social account's outcome (scheduled, posted with its link, or the platform's error; a LinkedIn account posting as itself and a company page has one line for each, with posting_as), and can_edit (with edit_note for a draft that cannot be changed). Use it before postkey_update_post or postkey_schedule_post, or to see why a post failed; postkey_list_posts finds the id and postkey_get_post_stats has results. An id that is not this profile's is refused not_found.

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": {
      "post_id": "<post_id>"
    },
    "name": "postkey_get_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
post_idYesThe post id (a UUID) from postkey_list_posts or postkey_create_post.

Output Schema

NameRequiredDescriptionDefault
okYesfalse: refused (isError; code, message, guide_topic, url); no change.
postNoid, status, detail_status, can_edit (false: postkey_update_post refuses it), edit_note (for a draft that cannot be changed: what to do), title, caption, type, keyword, link_url, time, planned, media, youtube, instagram_trial_reel, linkedin_post_as, platform_settings, goes_to (each account's state, link and error; posting_as on a LinkedIn company page's line), link, updated_at.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / post / description
      Previous value: -"id, status, detail_status, can_edit (false: postkey_update_post refuses it), edit_note (for a draft that cannot be changed: what to do), title, caption, type, keyword, link_url, time, planned, media, youtube, instagram_trial_reel, platform_settings, goes_to (each account's state, link and error), link, updated_at."New value: +"id, status, detail_status, can_edit (false: postkey_update_post refuses it), edit_note (for a draft that cannot be changed: what to do), title, caption, type, keyword, link_url, time, planned, media, youtube, instagram_trial_reel, linkedin_post_as, platform_settings, goes_to (each account's state, link and error; posting_as on a LinkedIn company page's line), link, updated_at."
  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. Changed2 schema fields changed
    • changedInput schema / properties / post_id / description
      Previous value: -"The post id from postkey_list_posts."New value: +"The post id (a UUID) from postkey_list_posts or postkey_create_post."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "ok": {
      +      "description": "false: refused (isError true; code, message, guide_topic, url), nothing changed.",
      +      "type": "boolean"
      +    },
      +    "post": {
      +      "description": "id, status, detail_status, can_edit (false: postkey_update_post refuses it), edit_note (for a draft that cannot be changed: what to do), title, caption, type, keyword, link_url, time, planned, media, youtube, instagram_trial_reel, platform_settings, goes_to (each account's state, link and error), link, updated_at.",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, yet the description adds real behavior: cross-profile ids are refused with not_found, per-account outcomes can be scheduled/posted/error, LinkedIn self-plus-company-page yields two lines with posting_as, and can_edit carries edit_note for locked drafts. These are access-scoping and result-shape facts not present in 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.

Conciseness3/5

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

Purpose and routing are correctly front-loaded, but the middle is one enormous run-on clause enumerating every returned field, which duplicates what the output schema already declares and is hard to parse. The information is useful in aggregate but the packaging costs readability.

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?

Usage guidance, access-control behavior, and failure diagnosis are all covered for a single-parameter read tool, and an output schema exists so return values need not be spelled out in prose. The only redundancy is that the field enumeration restates the output schema rather than leaving it there.

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% and the single post_id is fully documented with its UUID pattern and source, so the baseline is 3. The description adds one piece of param-level meaning beyond the schema: an id belonging to another profile is rejected as not_found, which tells the agent how bad ids fail rather than just their format.

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?

Opens with a specific verb and resource ("Gets one post in full") and immediately enumerates the resource's scope (caption, keyword, link_url, media, platform settings, per-account outcomes). It is clearly distinguishable from postkey_list_posts and postkey_get_post_stats, which are named with their distinct roles.

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?

Explicit when-to-use is given: before postkey_update_post or postkey_schedule_post, and to diagnose a failed post. It also routes the agent elsewhere when this tool is wrong — postkey_list_posts for finding the id, postkey_get_post_stats for results — which is exactly the alternative-selection guidance needed.

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