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.

  • 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).

  • 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 metric that matters on that platform: saves on Instagram, link clicks on Pinterest, watch time on YouTube...) 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.

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_idNoPass 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.

Output Schema

NameRequiredDescriptionDefault
_mcp_instructionsNoServer-issued metadata for this conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / routine_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Routine Id"
      +}
  2. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "context",
      -  "llm_model"
      -]New value: +[]
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/non-destructive; the description goes well beyond by documenting absence semantics ("Empty means no history", performance "Absent when nothing is measured yet"), limit precedence ("they hold the owner's own per-account limit when lower, `limitSource: \"owner\"`"), multi-account behavior ("fewer per account"), and the failure mode ("`error: \"account_ambiguous\"` lists them"). That is exactly the kind of context an agent needs to interpret results and recover from errors.

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?

Front-loaded with a one-line summary and organized into bullets, which is good. But it is long and heavy on return-payload field detail (logoUrl, brandVersion, preferredTimes, queue slot internals) that largely duplicates the declared output schema, and the Args block is formatted as plain prose rather than structure. Several clauses could be trimmed without losing callable information.

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 a zero-required-parameter, 8-argument, open-world context aggregator with an output schema and safety annotations, the description covers the essentials: what is returned, when sections are absent, error recovery, and argument precedence. Minor gaps remain around how the routine branch interacts with explicitly named accounts and how partial multi-account results behave, but nothing critical for correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

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

Schema description coverage is only 38%, and the description compensates by annotating every undocumented parameter: platform (enumerated values, implied-by rule, error when neither is given), account_id (ambiguity), account_ids (one post per account, override precedence), workspace_id (optional-with-one-workspace), routine_id (what it adds and account fallback). It adds real meaning—precedence and error behavior—not just restatements.

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 opening line names the resource precisely ("the drafting bundle for one account, or several: workspace, account, and the account's recent posts") and enumerates the payload sections, so an agent knows exactly what it gets back. It does not name a sibling tool it replaces (e.g. list_social_accounts or get_performance), so differentiation has to be inferred from the bundle framing rather than stated.

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

Usage Guidelines4/5

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

Usage is clearly implied ("Lean on what the top posts share ... when choosing what to write"), i.e. call this before drafting. Args section gives good selection guidance: platform is implied by account_id, account_ids overrides the single-account params, account_id is required when ambiguous, workspace_id is optional for single-workspace users, routine_id reads the routine's own accounts. No explicit when-not-to-use or named alternative is given, which keeps it below a 5.

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.