Skip to main content
Glama

Postkey: Instagram DM Automation and Comment-to-DM

List connected social accounts

postkey_list_social_accounts
Read-onlyIdempotent

Postkey: Lists the active social accounts connected to this Postkey profile (Instagram, TikTok, YouTube, LinkedIn and the rest), all in one answer: id, platform, handle, name and needs_reconnect, plus how many are disconnected. A LinkedIn account also has post_as: who it can post as (itself, the company pages it manages), for linkedin_post_as. Use the ids as social_account_ids in postkey_create_post or postkey_update_post; an account that needs reconnecting cannot take posts. Connecting, reconnecting or removing an account is done by a person in Postkey.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
okYesfalse: refused (isError; code, message, guide_topic, url); no change.
noteNoWhich accounts can take posts; when none can, which profile and login this is and what the person can do.
profileNoThe Postkey profile this call works in.
disconnectedNoHow many accounts are not active (each once; not ones active again here).
signed_in_asNoOnly when nothing here can take posts: the Postkey login this connection was made with. An account connected under another login is not visible here.
social_accountsNoActive accounts: id, platform, handle, name, active, needs_reconnect; LinkedIn accounts also post_as (options: value and label, note).
disconnected_accountsNoAccounts that are not active, with why: platform, handle, reason (removed_idle, removed_plan_ended, removed_hold, needs_reconnect, disconnected), since, what_to_do.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedOutput schema / properties / disconnected / description
      Previous value: -"How many connected accounts are not active."New value: +"How many accounts are not active (each once; not ones active again here)."
    • addedOutput schema / properties / disconnected_accounts
      Added value: +{
      +  "description": "Accounts that are not active, with why: platform, handle, reason (removed_idle, removed_plan_ended, removed_hold, needs_reconnect, disconnected), since, what_to_do.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / note / description
      Previous value: -"A reminder of which accounts can take posts."New value: +"Which accounts can take posts; when none can, which profile and login this is and what the person can do."
    • addedOutput schema / properties / profile
      Added value: +{
      +  "description": "The Postkey profile this call works in.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / signed_in_as
      Added value: +{
      +  "description": "Only when nothing here can take posts: the Postkey login this connection was made with. An account connected under another login is not visible here.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed1 schema field changed
    • changedOutput schema / properties / social_accounts / description
      Previous value: -"Active accounts: id, platform, handle, name, active, needs_reconnect."New value: +"Active accounts: id, platform, handle, name, active, needs_reconnect; LinkedIn accounts also post_as (options: value and label, note)."
  3. 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."
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "disconnected": {
      +      "description": "How many connected accounts are not active.",
      +      "type": "number"
      +    },
      +    "note": {
      +      "description": "A reminder of which accounts can take posts.",
      +      "type": "string"
      +    },
      +    "ok": {
      +      "description": "false: refused (isError true; code, message, guide_topic, url), nothing changed.",
      +      "type": "boolean"
      +    },
      +    "social_accounts": {
      +      "description": "Active accounts: id, platform, handle, name, active, needs_reconnect.",
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  5. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint false), yet the description adds real behavior: only 'active' accounts are returned, a needs_reconnect account is unusable for posting, LinkedIn accounts expose post_as including managed company pages, and account management happens out-of-band in Postkey. It stops short of mentioning auth requirements or ordering/pagination guarantees, so it is strong but not exhaustive.

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 returned fields are front-loaded, and the cross-reference to the create/update tools follows immediately, which is the right priority order. There is minor filler ('all in one answer', 'and the rest') that a tighter version would drop, but nothing is genuinely wasted.

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 zero-parameter read tool with annotations and an output schema already supplied, the description covers everything an agent needs: what comes back, what the flags mean, how the ids are consumed, and where the account-management boundaries lie. Nothing required 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.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so the baseline is 4 and there is nothing for the description to disambiguate on the input side. It does clarify the meaning of non-obvious output fields (needs_reconnect, post_as), but those are already carried by the output schema, so no extra credit is warranted.

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 ('Lists the active social accounts connected to this Postkey profile') and even enumerates the platforms and returned fields (id, platform, handle, name, needs_reconnect). An agent can immediately distinguish this read/list tool from the mutating siblings postkey_create_post and postkey_update_post that consume its ids.

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 states the downstream use ('Use the ids as social_account_ids in postkey_create_post or postkey_update_post') and an exclusion ('an account that needs reconnecting cannot take posts'). It also closes the obvious follow-up question by declaring that connecting, reconnecting or removing accounts is done by a person in Postkey, so the agent knows not to hunt for a sibling that does it.

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