Skip to main content
Glama

Import Content and Schedule It

postnitro_import_and_schedule

Convenience tool: creates a post from YOUR OWN content (import), waits for it to finish, then creates a scheduled post that attaches the resulting design. May take 15-60 seconds.

Set postType to 'CAROUSEL' (default) or 'VIDEO' and provide a 'slides' ARRAY, or 'IMAGE' and provide a single 'slide' OBJECT — this mirrors postnitro_import_carousel / postnitro_import_video / postnitro_import_image.

IMPORTANT: Call postnitro_get_import_template FIRST to see the exact slide structure and rules.

templateId, brandId, and responseType are optional if saved via postnitro_set_defaults.

The design attached is the imported design's ID (result.designId), resolved automatically. Pass designId only to attach a pre-existing design instead of the freshly imported one.

If scheduling fails after the design was already created (e.g. an invalid platform-settings combination), this tool returns the created designId so you can fix the inputs and retry with postnitro_create_scheduled_post — WITHOUT re-importing.

Provide the scheduling fields (status, scheduledAt, selectedAccounts, captions, and any required per-platform settings) just as you would for postnitro_create_scheduled_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": {
      "status": "<status>",
      "scheduledAt": "<scheduledAt>"
    },
    "name": "postnitro_import_and_schedule"
  }
}

Input Schema

NameRequiredDescriptionDefault
slideNoFor postType 'IMAGE': a SINGLE slide object (not an array). Only 'heading' is required. Ignored for CAROUSEL.
slidesNoFor postType 'CAROUSEL' or 'VIDEO': an array of 3+ typed slides (exactly 1 starting_slide, ≥1 body_slide, exactly 1 ending_slide). For VIDEO each slide is a scene. Ignored for IMAGE.
statusYes'DRAFT' or 'SCHEDULED'
brandIdNoBrand ID (optional if saved via postnitro_set_defaults)
designIdNoAttach a pre-existing design instead of the freshly imported one. Leave unset to use the imported design.
postTypeNo'CAROUSEL' (default) imports a multi-slide carousel — provide 'slides' (an array). 'IMAGE' imports a single-image post — provide 'slide' (a single object). 'VIDEO' imports a video whose slides are its scenes — provide 'slides' (an array), plus videoSettings when rendering to MP4.CAROUSEL
templateIdNoTemplate ID (optional if saved via postnitro_set_defaults)
postContentNoCaption text keyed by platform. Required unless a designId is set; at least one key must be non-empty. Hashtags are extracted automatically.
requestorIdNoOptional custom tracking ID
scheduledAtYesISO-8601 datetime string. Must be in the future.
postSettingsNoA reel's audio, used when any resolved postType is 'reel'. Optional: when omitted, the API takes the audio the attached design was generated with, else none. A reel runs as long as its design's motion.
responseTypeNoOutput format. 'DESIGN' (default) creates the design with no rendered file — fastest, and enough for scheduling/editing. Use 'PDF' or 'PNG' when you need a rendered file back, or 'MP4' for a rendered video (postType 'VIDEO' only). Optional if saved via postnitro_set_defaults.
videoSettingsNoA video's motion and audio — postType 'VIDEO' only, and optional: the video is animated without it. Scheduling a reel reuses its audio, so you usually don't also need postSettings.
generateImagesNoOptional AI image generation — include this object to enable it, omit it for no images. When included, `context` is required and you (the agent) must author it from the post. Best-effort: the post still COMPLETES if images fail or aren't permitted (free plan / exhausted AI-image quota); check the GENERATE_IMAGES step via postnitro_check_status. Requires a paid plan, consumes the org's AI-image quota (separate from post credits), and adds latency.
idempotencyKeyNoOptional key that makes this call safe to retry. Generate a new one (e.g. a UUID) for each new action. If the call times out, fails with a network or 5xx error, or you are unsure it went through, call again with the SAME key and the same arguments: PostNitro returns the first call's result instead of creating a second post, charging credits again or scheduling a duplicate. Only a successful call is remembered, so after an error you can fix the arguments and retry with the same key; reusing a successful call's key with different arguments is rejected (422).
selectedAccountsNoSocial-account IDs to publish to (from postnitro_list_social_accounts)
tiktokPostSettingsNoRequired when a TikTok account is selected AND a designId is set. When SCHEDULED: if isBrandedContent is true, at least one of isYourBrand/isThirdPartyBrand must be true, and isBrandedContent cannot be true with privacyLevel SELF_ONLY.
threadsPostSettingsNoRequired when a Threads account is selected AND a designId is set
facebookPostSettingsNoRequired when a Facebook Page is selected AND a designId is set. A designId is required when status is SCHEDULED (Facebook Pages can't take text-only posts from PostNitro).
linkedinPostSettingsNoRequired when a LinkedIn account is selected. A designId is required when status is SCHEDULED (text-only LinkedIn posts can only be drafts).
instagramPostSettingsNoRequired when an Instagram account is selected AND a designId is set
pinterestPostSettingsNoRequired when a Pinterest board is selected AND a designId is set. A designId is required when status is SCHEDULED (Pinterest can't take text-only Pins). Each board is its own connected account, so there is no board field here — pick boards via selectedAccounts.

Output Schema

NameRequiredDescriptionDefault
postYesA scheduled post or draft
messageYesConfirmation message
successYes
designIdYesThe design attached to the scheduled post
warningsNoNon-fatal issues worth surfacing to the user (e.g. AI image generation did not complete)
embedPostIdYesThe generation/import job ID
scheduledPostIdYesID of the created scheduled post

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / idempotencyKey
      Added value: +{
      +  "description": "Optional key that makes this call safe to retry. Generate a new one (e.g. a UUID) for each new action. If the call times out, fails with a network or 5xx error, or you are unsure it went through, call again with the SAME key and the same arguments: PostNitro returns the first call's result instead of creating a second post, charging credits again or scheduling a duplicate. Only a successful call is remembered, so after an error you can fix the arguments and retry with the same key; reusing a successful call's key with different arguments is rejected (422).",
      +  "pattern": "^[\\x21-\\x7E]{1,200}$",
      +  "type": "string"
      +}
  2. Changed14 schema fields changed
    • changedInput schema / properties / postSettings / description
      Previous value: -"Video render settings, used when any resolved postType is 'reel'. Optional: when omitted, the API fills each field from the videoSettings the attached design was generated with, falling back to 30 seconds with no audio. Same shape as a VIDEO post's videoSettings."New value: +"A reel's audio, used when any resolved postType is 'reel'. Optional: when omitted, the API takes the audio the attached design was generated with, else none. A reel runs as long as its design's motion."
    • changedInput schema / properties / postSettings / properties / audioId / description
      Previous value: -"Media ID of an audio track — an ID, NOT a URL. Get it from postnitro_list_audio; must be an audio file in this workspace."New value: +"The older name of backgroundMusicId, still taken. Give one or the other, not both."
    • addedInput schema / properties / postSettings / properties / backgroundMusicId
      Added value: +{
      +  "description": "Media ID of an audio track — an ID, NOT a URL. Get it from postnitro_list_audio; must be an audio file in this workspace.",
      +  "type": "string"
      +}
    • removedInput schema / properties / postSettings / properties / videoDuration
      Removed value: -{
      -  "description": "Video duration in seconds — at least 5 and under 60",
      -  "exclusiveMaximum": 60,
      -  "minimum": 5,
      -  "type": "number"
      -}
    • removedInput schema / properties / postSettings / required
      Removed value: -[
      -  "videoDuration"
      -]
    • changedInput schema / properties / videoSettings / description
      Previous value: -"Video render settings — postType 'VIDEO' only. Required when responseType is 'MP4'. Scheduling a reel reuses these automatically, so you usually don't also need postSettings."New value: +"A video's motion and audio — postType 'VIDEO' only, and optional: the video is animated without it. Scheduling a reel reuses its audio, so you usually don't also need postSettings."
    • changedInput schema / properties / videoSettings / properties / audioId / description
      Previous value: -"Media ID of an audio track to lay over the video — an ID, NOT a URL. Get it from postnitro_list_audio; the file must already exist in this workspace, and the API rejects a URL or a non-audio ID. Omit for a silent video."New value: +"The older name of backgroundMusicId, still taken. Give one or the other, not both."
    • addedInput schema / properties / videoSettings / properties / backgroundMusicId
      Added value: +{
      +  "description": "The video's background music: a media id from postnitro_list_audio, an audio file in this workspace. Not a URL.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / videoSettings / properties / backgroundMusicVolume
      Added value: +{
      +  "description": "The music's volume, 0 to 100 (default 100). It's lowered to 30% while narration plays. Needs backgroundMusicId on a new video; on an edit it sets the video's own track.",
      +  "maximum": 100,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / videoSettings / properties / motionStyle
      Added value: +{
      +  "description": "How every slide moves: a built-in style (none, minimal, clean, slideshow, editorial, cinematic, luxe, story, typewriter, snap, bold, playful, kinetic, glitch) or a saved style's id from postnitro_list_motion_styles. Omit for the template's motion, or clean.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / videoSettings / properties / sequenceId
      Added value: +{
      +  "description": "A saved sequence's id from postnitro_list_motion_sequences: its animations on every slide, over the style.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • removedInput schema / properties / videoSettings / properties / videoDuration
      Removed value: -{
      -  "description": "Length of the rendered video in seconds — at least 5 and under 60.",
      -  "exclusiveMaximum": 60,
      -  "minimum": 5,
      -  "type": "number"
      -}
    • addedInput schema / properties / videoSettings / properties / voiceover
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "captions": {
      +          "description": "Show the narration's words as captions (default true).",
      +          "type": "boolean"
      +        },
      +        "tone": {
      +          "description": "How it sounds: upbeat (default), calm, professional, storyteller, or your own words, up to 80 characters (\"Hype and punchy\").",
      +          "maxLength": 80,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "voice": {
      +          "description": "The narrator's voice (default coral).",
      +          "enum": [
      +            "alloy",
      +            "ash",
      +            "ballad",
      +            "coral",
      +            "echo",
      +            "fable",
      +            "nova",
      +            "onyx",
      +            "sage",
      +            "shimmer",
      +            "verse"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "const": false,
      +      "type": "boolean"
      +    }
      +  ],
      +  "description": "An AI voiceover: the AI writes a line for every slide and records it in the voice and tone; no script is taken. {} for the defaults. Costs the plan's AI tokens (the script's, and 5,000 a minute of audio), not API credits; best-effort, so with the tokens used up the video is made without it. Each slide lasts as long as its line. On an edit, false takes the narration off."
      +}
    • removedInput schema / properties / videoSettings / required
      Removed value: -[
      -  "videoDuration"
      -]
  3. Changed3 schema fields changed
    • addedInput schema / properties / pinterestPostSettings
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Required when a Pinterest board is selected AND a designId is set. A designId is required when status is SCHEDULED (Pinterest can't take text-only Pins). Each board is its own connected account, so there is no board field here — pick boards via selectedAccounts.",
      +  "properties": {
      +    "link": {
      +      "description": "Destination URL the Pin links to. Optional, but must be an absolute http(s) URL, e.g. https://example.com.",
      +      "type": "string"
      +    },
      +    "postType": {
      +      "description": "'carousel' = a carousel Pin (2-5 slides; a 1-slide design publishes as an image Pin, more than 5 slides fails); 'image' = a single image Pin; 'reel' = a video Pin (uses postSettings like other platforms' reels). Any design size works except ultra-wide (wider than 21:9); 2:3 is recommended.",
      +      "enum": [
      +        "carousel",
      +        "image",
      +        "reel"
      +      ],
      +      "type": "string"
      +    },
      +    "title": {
      +      "description": "Pin title, up to 100 characters. Optional.",
      +      "maxLength": 100,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "postType"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / postContent / properties / pinterest
      Added value: +{
      +  "description": "Pinterest Pin description. Only the first 800 characters are published.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / post / properties / pinterestPostSettings
      Added value: +{
      +  "$ref": "#/properties/post/properties/instagramPostSettings"
      +}
  4. Changed3 schema fields changed
    • addedInput schema / properties / facebookPostSettings
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Required when a Facebook Page is selected AND a designId is set. A designId is required when status is SCHEDULED (Facebook Pages can't take text-only posts from PostNitro).",
      +  "properties": {
      +    "callToAction": {
      +      "anyOf": [
      +        {
      +          "enum": [
      +            "BOOK_TRAVEL",
      +            "BUY_NOW",
      +            "CALL_NOW",
      +            "DOWNLOAD",
      +            "GET_DIRECTIONS",
      +            "GET_QUOTE",
      +            "INSTALL_APP",
      +            "INSTALL_MOBILE_APP",
      +            "LEARN_MORE",
      +            "LIKE_PAGE",
      +            "LISTEN_MUSIC",
      +            "MESSAGE_PAGE",
      +            "NO_BUTTON",
      +            "OPEN_LINK",
      +            "PLAY_GAME",
      +            "SHOP_NOW",
      +            "SIGN_UP",
      +            "SUBSCRIBE",
      +            "USE_APP",
      +            "USE_MOBILE_APP",
      +            "WATCH_MORE",
      +            "WATCH_VIDEO"
      +          ],
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "'link_carousel' only. Button shown on the carousel, e.g. 'LEARN_MORE' or 'SHOP_NOW'. Omit or null for no button. Some types are meant for ads and Facebook may reject them on organic posts."
      +    },
      +    "linkUrl": {
      +      "description": "'link_carousel' only. The absolute http(s) URL every card links to, e.g. https://example.com. Required when status is SCHEDULED. Facebook only accepts custom card images for links on a domain the Page's business has verified in Meta Business Settings.",
      +      "type": "string"
      +    },
      +    "postType": {
      +      "description": "'carousel' = every slide in one multi-photo post; 'link_carousel' = swipeable link cards (2-10 slides; Facebook shows up to 5 and picks which); 'image' = a single-slide design; 'reel' = a video, published as a Reel (any aspect ratio from 16:9 to 9:16).",
      +      "enum": [
      +        "carousel",
      +        "link_carousel",
      +        "image",
      +        "reel"
      +      ],
      +      "type": "string"
      +    },
      +    "showEndCard": {
      +      "description": "'link_carousel' only. Show Facebook's end card linking to the Page. Defaults to true.",
      +      "type": "boolean"
      +    },
      +    "useSlideDescriptions": {
      +      "description": "'link_carousel' only. Use each slide's description as its card description. Defaults to false.",
      +      "type": "boolean"
      +    },
      +    "useSlideTitles": {
      +      "description": "'link_carousel' only. Use each slide's title as its card headline. Defaults to false (Facebook uses the link's own title).",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "postType"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / postContent / properties / facebook / description
      Added value: +"Facebook Page caption (the post message)"
    • addedOutput schema / properties / post / properties / facebookPostSettings
      Added value: +{
      +  "$ref": "#/properties/post/properties/instagramPostSettings"
      +}
  5. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare non-readonly, openWorld and non-idempotent, so the safety bar is covered; the description adds real operational context they don't: a 15-60 second runtime, and the partial-success behavior where a scheduling failure still returns the created designId so the agent can retry without re-importing. It does not mention the idempotencyKey retry contract, which is left entirely to the schema.

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?

Front-loaded with the convenience framing and latency, with capped IMPORTANT markers for the prerequisite and failure-recovery notes. Slightly sprawling — the scheduling-fields paragraph and the failure/retry paragraph both reference postnitro_create_scheduled_post and could be merged.

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 22-parameter composite tool with deep nesting and an output schema, the description covers the full flow, the mode selection, the template prerequisite, defaults fallback, and the partial-failure recovery path. Per-platform settings are correctly delegated to postnitro_create_scheduled_post semantics, and return values are covered by the output schema, so nothing an agent needs is missing.

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

Parameters3/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, and the description mostly restates the postType branching and the slides-vs-slide distinction that the schema already spells out. It adds some genuine value by explaining that designId is resolved automatically from result.designId unless overridden, and by deferring slide shape to postnitro_get_import_template.

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 first sentence states a specific composite verb chain (import own content → wait → create scheduled post attaching the result) and explicitly labels itself a convenience wrapper, which distinguishes it from postnitro_import_carousel/postnitro_import_and_wait and postnitro_create_scheduled_post. It even names the three import siblings it mirrors by postType.

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?

It gives a hard prerequisite ('Call postnitro_get_import_template FIRST'), explains when defaults make templateId/brandId/responseType optional, and routes to postnitro_create_scheduled_post for retry after a partial failure. It does not explicitly say when to pick this over the plain import tools (e.g. if you don't want a scheduled post), leaving one selection decision implicit.

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