Skip to main content
Glama

create_post

Create a post for one of the user's connected HubPost accounts. Saves as a draft, or schedules it when scheduledAt is set (a due time publishes immediately). The platform is derived from the account; platformOptions must match that platform. Media is attached by mediaId from the user's library, so when the user wants media that is not there yet, show the upload widget before creating the post.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "accountId": "<accountId>",
      "caption": "<caption>"
    },
    "name": "create_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
captionYesPost caption/body. Length limits depend on the account's platform
mediaIdsNomediaIds from the user's library to attach, in display order, taken from the media list or a finished upload. Some platforms require media, and some accept only images or only video
accountIdYesConnected account to post from. The platform is derived from it
scheduledAtNoISO 8601 time to publish. Omit to save as a draft. A time already due publishes immediately
platformOptionsNoPlatform-specific options, must match the account's platform. FACEBOOK: { kind: "POST", aiGenerated? } | { kind: "REEL", aiGenerated? } | { kind: "STORY", aiGenerated? }. INSTAGRAM: { kind: "POST", aiGenerated?, collaborators? } | { kind: "REEL", aiGenerated?, collaborators?, shareToFeed?, trialReel?: "OFF" | "MANUAL" | "AUTO" } | { kind: "STORY", aiGenerated? }. X: omit or null. TIKTOK: { privacyLevel, allowComment?, allowDuet?, allowStitch?, contentDisclosure?, yourBrand?, brandedContent?, aiGenerated? }. YOUTUBE: { title, tags, category: "autos_and_vehicles" | "comedy" | "education" | "entertainment" | "film_and_animation" | "gaming" | "howto_and_style" | "music" | "news_and_politics" | "nonprofits_and_activism" | "people_and_blogs" | "pets_and_animals" | "science_and_technology" | "sports" | "travel_and_events", visibility: "public" | "unlisted" | "private", license: "youtube" | "creativeCommon", madeForKids, notifySubscribers, allowEmbedding, aiGenerated? }. THREADS: omit or null. LINKEDIN: omit or null. PINTEREST: { boardId, title?, link? }. BLUESKY: omit or null. aiGenerated: Turn on when AI made or changed this media to look real, like a real-looking person, voice, place or event. Leave off for animation, fantasy visuals, small edits like filters or color, and AI-written captions.
thumbnailMediaIdNoImage mediaId from the user's library to use as the cover of a single-video post. Only some platforms and post kinds accept a custom cover; the post is rejected when it doesn't, so omit it there

Output Schema

NameRequiredDescriptionDefault
postYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare the write/non-idempotent/open-world profile, so the description's job is to add behavior — and it does: a past scheduledAt publishes immediately rather than being rejected, drafts are the default, and a mismatched thumbnail causes rejection. It stops short of disclosing failure modes for invalid platformOptions or caption limits.

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?

Four sentences, front-loaded with what the tool does and followed by mode, platform, and media prerequisites; no filler. Slightly dense in the final sentence, where two distinct points (mediaId sourcing and the upload-widget step) are compressed together.

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 6-parameter mutation tool with full schema coverage, annotations, and an output schema, the description covers the essential decisions: draft vs. schedule, platform derivation, and media sourcing. Missing only escalation/error guidance and acknowledgment that existing posts are changed via a sibling.

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 the baseline is 3; the description earns above that by tying parameters together — platform derived from accountId, platformOptions constrained to that derived platform, and mediaIds sourced from the library. It does not add format or ordering detail beyond the schema for thumbnailMediaId or scheduledAt.

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 ("Create a post") and immediately scopes it to one of the user's connected HubPost accounts, while distinguishing the two modes (draft vs. scheduled publish). The media clause also names the prerequisite flow (upload widget) that separates this tool from library-only operations.

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?

Gives clear when-to-use context: omit scheduledAt to save a draft, set it to schedule, and show the upload widget first when the desired media is not yet in the library. It does not route the agent to siblings for subsequent changes (e.g., edit_post), so a 4 rather than 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.

Resources