Skip to main content
Glama

list_posts

Read-only

List the workspace's posts, optionally filtered, or laid out by day.

Not needed to find duplicates before drafting: create_post answers similarRecent for that. Recent published history on one network (e.g. before posting on X): status="published", platform="x". The count against the daily cap and X's plan allowance are already in get_post_context (account.dailyPostCap, xUsage). Pages run newest scheduled time first; each is sorted scheduled (soonest first), then draft, published, failed. hasMore means more posts: pass nextCursor back as cursor. get_post(post_id) returns one in full. A draft whose approval.state is changes_requested carries the reviewer's note. group_by_day=true is the calendar view: calendar maps each date (YYYY-MM-DD) to that day's posts by time (a draft only with a proposed time), calendarUrl is the calendar page, and the range defaults to the Monday of this week through 30 days ahead.

Args: status: "draft", "scheduled", "published", "failed", "pending_approval" (waiting for a person to approve), "waiting_in_app" (a TikTok video in the user's TikTok app for them to post there; not published), or "idea" (saved ideas with no account yet, oldest first; turn one into drafts with create_post(idea_id=…)). query: Keyword matched against post text, case-insensitive. platform: e.g. "linkedin", "x". campaign_id: Only the versions of one post (its campaignId from create_post with posts). date_from: Scheduled on or after this date (ISO 8601, e.g. "2026-03-01"). date_to: Scheduled on or before this date (ISO 8601). limit: Max posts to return (default 50, max 50). Ignored by group_by_day. group_by_day: Group the posts by date instead of listing them. workspace_id: Workspace ID or name. Optional if user has only one workspace. recurring: Instead, the repeating and evergreen posts (set with update_post's repeat / evergreen): rule, next time, posts made, last skip. attention: Instead, what needs the user, in one call: failed (last three days, with advice), willFail (scheduled on an account that needs reconnecting; get_connection_urls has the link), xTooLong (scheduled X posts over 280 on an account X holds to 280; trim or split with update_post first), firstCommentSkipped (scheduled posts that go out without their first comment unless the account is reconnected first, with reconnectUrl), pendingApproval, drafts (stale, mediaRequired) and upcoming, five each, with attentionCounts. cursor: nextCursor from the previous page, with the same filters.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNo
cursorNo
statusNo
contextNoThe user's underlying goal for this call, in one sentence without personal details. Used for product analytics only.
date_toNo
platformNo
attentionNo
date_fromNo
llm_modelNoThe model identifier of the calling assistant, or "unknown". Used for product analytics only.
recurringNo
campaign_idNo
group_by_dayNo
workspace_idNo
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.

Output Schema

NameRequiredDescriptionDefault
_mcp_instructionsNoServer-issued metadata for this conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / conversation_id / description
      Previous value: -"Pass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request."New value: +"The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics."
  2. Changed1 schema field changed
    • addedInput schema / properties / cursor
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Cursor"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / attention
      Added value: +{
      +  "default": false,
      +  "title": "Attention",
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / recurring
      Added value: +{
      +  "default": false,
      +  "title": "Recurring",
      +  "type": "boolean"
      +}
  5. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "context",
      -  "llm_model"
      -]New value: +[]
  6. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already establish readOnlyHint=true and destructiveHint=false, so the bar is lower. The description nevertheless adds real behavioral context beyond them: sort order ('newest scheduled time first', per-page ordering of scheduled/draft/published/failed), pagination via hasMore/nextCursor, and the default date range for the calendar view. It stops short of stating result-size or rate-limit behavior, so it is a solid rather than exceptional supplement to 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?

The purpose and the sibling-routing exclusions are front-loaded, and the Args block is scannable. It is long and occasionally overloaded with detail that belongs to other tools' outputs (e.g. quoting account.dailyPostCap, xUsage, and the shape of attention sub-keys), which slightly dilutes the core listing behavior.

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?

Given 15 optional parameters, three mutually exclusive modes (list, recurring, attention), and a group_by_day calendar variant, the description covers what an agent needs: filters, sorting, pagination, defaults, and the semantics of each alternate mode. An output schema exists, yet the description still calls out the key return markers (hasMore, calendarUrl, attentionCounts), which is more than required.

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 only 20%, so the description must carry the load, and it mostly does: it enumerates every status value with a plain-language gloss (including the non-obvious 'waiting_in_app' and 'idea' plus the create_post(idea_id=…) follow-up), specifies query is case-insensitive, gives the ISO 8601 date format with an example, and spells out the limit default/max and group_by_day's interaction with limit. What is missing is only minor — it does not describe the analytics-only parameters (context, llm_model, conversation_id), which is arguably 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?

The opening sentence names a specific verb and resource ('List the workspace's posts') and immediately declares the two operating modes ('optionally filtered, or laid out by day'). It explicitly separates itself from siblings by pointing to get_post for a single full record and create_post for duplicate detection.

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?

It gives explicit when/when-not guidance: 'Not needed to find duplicates before drafting: create_post answers similarRecent for that', and 'The count against the daily cap ... are already in get_post_context'. It also provides a concrete usage recipe ('status="published", platform="x"') and names get_connection_urls as the fix path for reconnect-related failures.

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.