Skip to main content
Glama
posterly-mcp-server

posterly-mcp-server

by awpthorp

generate_image

Queue an AI image generation job and return a job ID; poll status until complete, then use the image URLs to create social posts.

Instructions

Queue an AI image job via posterly using Nano Banana (Gemini) or Grok Imagine Image 2.0 (xAI). Returns job_id. Poll list_jobs with type=image until status is completed, then pass urls to create_post as media_url / media_urls. Gemini thinking high does not change the credit price.

COSTS CREDITS. Every call consumes part of the user's monthly AI image quota (or purchased credits once the quota is exhausted). Do NOT call speculatively - always describe the image you're about to generate (subject, style, aspect ratio, quality/thinking, resolution) to the user and get confirmation before calling.

If the user is over their plan limit and has no credits, this tool returns a 402 with upgrade info. Surface that message verbatim - do not retry.

Common aspect ratios by platform: • Instagram feed / LinkedIn: 1:1 (square) or 4:5 (portrait) • Instagram Story/Reel, TikTok, YouTube Shorts: 9:16 • YouTube thumbnail, Twitter cards, landscape feed: 16:9 • Pinterest: 2:3

Input Schema

NameRequiredDescriptionDefault
modelNoGoogle-only. lite (8 credits, 1K only) suits drafts; flash (default, Nano Banana 2.1, 15 at 1K) balances quality and cost; pro (30 at 1K) is highest quality. Ignored for xAI.
styleNoPreset style. Default photographic. Use youtube_thumbnail / reel_cover for platform-optimized covers; review_background for testimonial backgrounds.
promptYesDetailed image description. 5-4000 characters. Describe subject, scene, lighting, mood, and style.
confirmYesMust be true after explicit user confirmation of subject, style, aspect ratio, quality, and credit use.
qualityNoGoogle: high turns on Gemini thinking (dashboard thinkingLevel=high). low/medium leave thinking minimal unless thinking_level is set. xAI: low or medium credit tiers; high is invalid.
providerNoImage provider. Default google. Use xai for Grok Imagine Image 2.0.
resolutionNoOutput resolution. Default 1K. xAI supports 1K/2K only. Google flash (Nano Banana 2.1): 15/23/35 credits at 1K/2K/4K. 512 is no longer available. Pro: 30 at 1K-2K, 55 at 4K.
variationsNoHow many variations to generate. Default 1. Each variation costs credits separately - prefer 1 unless the user explicitly wants options.
aspect_ratioNoAspect ratio. Default 1:1. Pick based on target platform (see tool description).
workspace_idNoOptional. The workspace this acts in and whose plan pays (from whoami). Needed only when your connection can act in several workspaces.
thinking_levelNoGoogle flash/lite only. Gemini image quality control. minimal is fastest; high is for infographics, grounded scenes, and harder layouts. Pro reasons automatically. Overrides quality when both are set.
reference_image_urlsNoGoogle only. Up to 14 HTTPS image URLs used as references (logo, product, style lock). Same as dashboard reference images.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.55.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only flag non-readonly, open-world, non-idempotent. The description adds the critical behavior annotations don't cover: every call consumes quota/credits, variations cost separately, a 402 means over-limit with no retry, and the message should be surfaced verbatim. That is exactly the context an agent needs before a paid, non-idempotent call.

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-loads purpose, job flow, and cost warning before the bulleted aspect-ratio reference, so the important parts are not buried. The platform bullet list is somewhat long but each line maps a real decision to a concrete ratio, so it earns its place.

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 12-parameter, asynchronous, credit-consuming generation tool with no output schema, the description covers the full lifecycle (queue, poll, hand off), the cost/confirmation gate, and the over-limit failure mode. Nothing an agent needs to invoke it safely is 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 100% and the field descriptions are already detailed (credit tiers per model/resolution, thinking_level precedence over quality, xAI constraints). The description still adds value by supplying the platform-to-aspect-ratio mapping that the aspect_ratio field explicitly defers to ('see tool description').

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 ('Queue an AI image job') plus the underlying providers (Nano Banana/Gemini, Grok Imagine/xAI), and immediately declares the return value (job_id). This clearly separates it from the nearby generate_video and upload_media siblings.

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 an explicit end-to-end workflow: call this, poll list_jobs with type=image, then feed urls into create_post as media_url/media_urls. It also names a when-not-to-call rule ('Do NOT call speculatively') and the confirmation prerequisite.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.