Skip to main content
Glama

Postkey: Instagram DM Automation and Comment-to-DM

List the Library

postkey_list_library
Read-onlyIdempotent

Postkey: Lists the profile's media files (videos, images, audio, other files), 36 per page, newest first unless sort is oldest: id, kind, title, tags, length in seconds and how many posts use it. The files themselves are not returned. backlog true lists only the backlog: files the person marked to post on a day with nothing new, that no post uses yet. Use an id with postkey_attach_library_item or in library_item_ids; to add a file from the person's computer use postkey_begin_upload. Pass next_cursor as cursor for the next page (null: the last page).

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

Input Schema

NameRequiredDescriptionDefault
kindNoOnly this kind of file. Left out: every kind.
sortNo"newest" (default) or "oldest", by when the file was added.
cursorNoThe next_cursor of the previous answer, as it was. Leave out for the first page.
searchNoWords to look for in titles and tags, at most 120 characters.
backlogNotrue: only the backlog (files put there that no post uses yet). Default false: every file.

Output Schema

NameRequiredDescriptionDefault
okYesfalse: refused (isError; code, message, guide_topic, url); no change.
filesNoid, kind, title, tags, seconds, source, used_by_posts, added.
next_cursorNoPass as cursor for the next page; null on the last page.
remaining_after_this_pageNoFiles matching from this page on.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / backlog
      Added value: +{
      +  "description": "true: only the backlog (files put there that no post uses yet). Default false: every file.",
      +  "type": "boolean"
      +}
  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. Changed5 schema fields changed
    • changedInput schema / properties / cursor / description
      Previous value: -"The next_cursor of the page before. Leave out for the first page."New value: +"The next_cursor of the previous answer, as it was. Leave out for the first page."
    • changedInput schema / properties / kind / description
      Previous value: -"Only this kind of file."New value: +"Only this kind of file. Left out: every kind."
    • changedInput schema / properties / search / description
      Previous value: -"Words to look for in titles and tags."New value: +"Words to look for in titles and tags, at most 120 characters."
    • addedInput schema / properties / sort / description
      Added value: +"\"newest\" (default) or \"oldest\", by when the file was added."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "files": {
      +      "description": "id, kind, title, tags, seconds, source, used_by_posts, added.",
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "next_cursor": {
      +      "description": "Pass as cursor for the next page; null on the last page.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "ok": {
      +      "description": "false: refused (isError true; code, message, guide_topic, url), nothing changed.",
      +      "type": "boolean"
      +    },
      +    "remaining_after_this_page": {
      +      "description": "Files matching from this page on.",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, and non-destructive, so the safety profile is covered. The description adds genuinely new behavior: 36 items per page, newest-first default, that the media files themselves are not returned, and the precise semantics of the backlog flag. These are exactly the traits an agent cannot infer from structured fields.

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 the core action and scope, and nearly every clause carries information (page size, default sort, return contents, id reuse, upload alternative, pagination). It is a single dense paragraph rather than separated usage/pagination guidance, which slightly hurts scanability, and the field list overlaps with the output schema.

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 5-parameter, all-optional read tool with an output schema, the description covers page size, ordering, filtering modes, pagination, and follow-up actions. Nothing an agent needs to select or invoke it correctly is missing.

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 a 3 is the baseline. The description exceeds it by explaining that backlog means files marked for a day with nothing new that no post uses yet, and by tying the cursor parameter to the previous response's next_cursor with a null sentinel — meaning the schema does not convey on its own.

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 ('Lists the profile's media files') and immediately scopes it with kind enumeration, page size, and default ordering. This is clearly distinguishable from sibling list tools such as postkey_list_posts, which it implicitly contrasts by describing media files used by posts.

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 routes the agent: use an id with postkey_attach_library_item or in library_item_ids, and use postkey_begin_upload for files from the person's computer. It also defines the non-obvious 'backlog' mode and gives the pagination follow-up rule (pass next_cursor as cursor; null means last page).

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