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.

Input Schema

TableJSON 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.
postSettingsNoVideo 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.
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.
videoSettingsNoVideo render settings — postType 'VIDEO' only. Required when responseType is 'MP4'. Scheduling a reel reuses these automatically, 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.
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

TableJSON 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. 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"
      +}
  2. 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"
      +}
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Adds latency expectation (15–60 seconds) and a valuable partial-failure disclosure: the created designId is returned if scheduling fails so the import does not have to be repeated. Annotations already cover the write/non-destructive/non-idempotent profile, so this extra context is what earns credit; it stops short of describing auth or rate-limit behavior.

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 core behavior and latency are front-loaded in the first sentence, and the remaining paragraphs each carry actionable information (prerequisite, defaults, failure recovery). It is somewhat long, but no sentence is clearly redundant filler.

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 21-parameter composite tool with nested platform settings, the description supplies the prerequisite call, the defaults shortcut, the failure-recovery semantics, and where to find scheduling-field guidance. With an output schema present, return-value explanation is not needed, and the remaining gaps are minor.

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 description coverage is 100%, so the baseline is 3. The description explains the designId-vs-imported-design choice and the postType→slides/slide correspondence, but those relationships are already stated in the schema's own property descriptions, so it adds little beyond structured data.

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 composite verb chain (import → wait → schedule) and the resource (post/design), and explicitly frames itself as a 'convenience tool' distinct from the import-only siblings it names (postnitro_import_carousel/video/image) and from postnitro_create_scheduled_post. An agent can identify the composite behavior without opening the schema.

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?

Gives explicit prerequisites (call postnitro_get_import_template FIRST), conditional routing (CAROUSEL/VIDEO use 'slides', IMAGE uses 'slide'), a decision rule for designId (only to attach a pre-existing design), and a recovery path (retry with postnitro_create_scheduled_post). It also says which fields become optional when defaults are saved.

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