Skip to main content
Glama

get_post_context

Read-only

The drafting bundle for one account, or several: workspace, account, and the account's recent posts.

Also where the posting limits are, so do not count posts yourself: the daily cap and today's count are account.dailyPostCap (limit, publishedLast24h, scheduledNext24h, remaining; a rolling 24 hours, not the calendar day; on each accounts entry with several), and X's plan allowance this billing cycle is xUsage. The account's recent published history is list_posts(platform=..., status="published").

  • workspace: name, website, logoUrl (the brand logo, for visuals), brandVersion, timezone, preferredTimes, tagOutboundLinks.

  • account: id, name, handle, token health, postsLeftToday and nextFreeAt (room left and the earliest time a post fits: no need to count recent posts; they hold the owner's own per-account limit when lower, limitSource: "owner"), dailyPostCap (posts per rolling 24h on the owner's plan, scheduled ones included), with posting slots its queue (slots, taken, how many more posts fit in the next 7 days, nextFree), for Pinterest its boards, for Slack its slackChannels and defaultSlackChannel, for Instagram recentTags (handles it tagged) and, when reading other creators needs a reconnect first, creatorReads (note, reauthUrl).

  • xUsage (X accounts only): this billing cycle's X posts against the X posts the plan includes, link posts against those included, and the owner's prepaid postCredits and linkCredits. warning (with its message) is set from 80% of the included X posts; past them each X post uses one X post credit, a link post one X link credit. schedule_post and publish_post carry the same xUsage when it has a warning.

  • recentPosts: up to 15 of the account's published posts with their metrics. They are the account's voice. Empty means no history.

  • performance: what performed, from Antwork's measured metrics over 90 days: topPosts (posts published through Antwork, best first by rankedBy, the signal that platform's ranking rewards, each with its score; rankedByMeans is the formula, e.g. shares per person reached on Instagram, weighted replies and reposts per impression on X, watch time on YouTube; a rate leaves out posts seen by under 30% of the account's median) and followers (count, change). Lean on what the top posts share (topic, hook, format) when choosing what to write. Absent when nothing is measured yet, and never ranked on Telegram, Discord, Slack or Google Business Profile.

Args: platform: "linkedin", "x", "facebook", "instagram", "threads", "tiktok", "youtube", "pinterest", "bluesky", "discord", "mastodon", "telegram", "google_business" or "slack". Implied by account_id. With neither, the error lists the connected platforms and accounts. account_ids: Several accounts at once (one post per account): an accounts list, each with its own recent posts (fewer per account). Overrides platform / account_id. account_id: One account. Needed when the platform has several: otherwise error: "account_ambiguous" lists them. workspace_id: Workspace ID or name. Optional if user has only one workspace. routine_id: Run an Autopilot routine the user saved in Antwork (a scheduled task's prompt names it). Adds routine: its brief, mode, post limit, what is already queued and instructions to follow. With no account named, reads the routine's accounts.

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

Input Schema

NameRequiredDescriptionDefault
contextNoThe user's underlying goal for this call, in one sentence without personal details. Used for product analytics only.
platformNo
llm_modelNoThe model identifier of the calling assistant, or "unknown". Used for product analytics only.
account_idNo
routine_idNo
account_idsNo
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 / routine_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Routine Id"
      +}
  3. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "context",
      -  "llm_model"
      -]New value: +[]
  4. First observed

TDQS

A3.5/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 safety is covered. The description adds genuine behavioral detail beyond that: the `account_ambiguous` error, the error listing connected platforms and accounts when no account is given, 'up to 15' recent posts, 'Empty means no history', and `performance` being absent when nothing is measured or unranked on Telegram/Discord/Slack/GBP. Much of the remainder is a field catalog duplicating the existing output schema rather than new behavior, which caps the score.

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?

The opening sentence is properly front-loaded, and bullets keep the field catalog scannable. But the bulk of the text re-describes fields already present in the output schema (workspace, account, xUsage, recentPosts) instead of spending that space on call-time guidance, so it is longer than its decision-relevant content warrants.

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?

For an 8-parameter, zero-required, multi-mode tool, the definition covers the ambiguous-selection paths, the multi-account path, and the routine path, which are the realistic failure modes. Since an output schema exists, the heavy return-value prose is not strictly needed, but nothing an agent must know in order to call it correctly appears to be 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 only 38% (the described properties are the analytics fields context, llm_model, conversation_id), so the description must carry the real arguments — and it does: it enumerates the platform values, states that account_ids overrides platform/account_id, explains account_id is required when a platform has several accounts, and describes workspace_id optionality and what routine_id adds. The main gap is that precedence among workspace_id/account_ids/routine_id combinations is only partially spelled out.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

'The drafting bundle for one account, or several: workspace, account, and the account's recent posts' names the resource and its contents concretely, and the Args section clarifies single-vs-multi-account behavior. It is clearly a pre-drafting read operation, though it never says in one clause 'call this before create_post/schedule_post' to explicitly separate it from list_posts or get_performance.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The strongest directive is 'do not count posts yourself', which steers the agent to trust the returned limits instead of computing them, and it points at list_posts for published history. However there is no explicit statement of when to call this versus list_social_accounts or get_performance, nor when not to call it; usage is implied by the 'drafting bundle' framing rather than stated.

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.