Skip to main content
Glama

Generate an image with AI

generate_image

Creates AI-generated photos or illustrations for LinkedIn posts using a chosen provider and the user’s API key, then saves verified PNG/JPEG files locally without publishing to LinkedIn.

Instructions

Create photos or illustrations for a post with an AI image model (Higgsfield, OpenAI, Gemini, fal.ai, Replicate or Ideogram). It uses the user's own API key for that provider and may cost money on their account, so generate only what the user asked for and say which provider was used. Files are saved to linkedin-mcp's media folder and checked to be real PNG/JPEG images. Nothing is sent to LinkedIn. Ideogram is best for legible text in images; for quotes and slides use create_quote_card or create_carousel instead (free, no AI). Avoid depicting real people or brands without permission. Call image_providers to see which providers are set up. If it returns status pending, call again with only job_id.

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": "generate_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoFor repeatable results, where the provider supports it.
countNoHow many images (1-4). Each one costs money.
modelNoUse this model id instead of the provider's default.
styleNoStyle direction, e.g. 'editorial photo, soft daylight' or 'flat vector illustration'.
job_idNoFrom an earlier pending result: wait for that generation instead of starting a new one.
promptNoWhat to draw: subject, setting, composition, lighting, mood. Required unless job_id is given.
providerNoUse this provider instead of the configured one.
aspect_ratioNo1:1 square, 4:5 portrait (most feed space), 16:9 landscape, 1.91:1 link-preview landscape. Providers without a ratio use the closest one and say so.1:1
negative_promptNoThings to avoid.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag a non-read-only, non-idempotent, open-world operation, and the description builds on that with cost implications on the user's own API key, the fact that files are written to linkedin-mcp's media folder, PNG/JPEG validation, and that nothing is sent to LinkedIn. It also discloses the async pattern: a pending status means call again with only job_id. It does not describe what a successful result returns (file path, URL, job id) beyond the pending case, which keeps it from a 5.

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?

Purpose is front-loaded in the first clause, followed by cost/risk, then alternatives, then the operational note. Every sentence carries information, though the dense single paragraph mixes purpose, cost warnings, alternatives, safety policy, and job polling — bullets or line breaks would make the job_id resume rule easier to scan.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter, costly, open-world generation tool with no output schema, the description covers cost, storage, provider setup, safety, and the pending-job continuation. What it leaves out is the success return shape and size/dimension of output, which an agent needs to chain the result into create_post; with no output schema declared, the description should have closed that gap.

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 schema already carries per-parameter meaning, and a baseline of 3 would apply. The description adds real value on top: it explains the repeat-count semantics economically ('Each one costs money' is in-schema, but the provider-default vs override distinction and cost framing are reinforced), and it clarifies job_id as the resume-a-pending-generation path. Provider selection guidance (Ideogram for text) is meaning the enum alone cannot convey.

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 description opens with a specific verb and resource: 'Create photos or illustrations for a post with an AI image model', then enumerates the supported providers (Higgsfield, OpenAI, Gemini, fal.ai, Replicate, Ideogram). It explicitly separates itself from the non-AI siblings create_quote_card and create_carousel, so an agent can route correctly without opening a 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?

It states when to use it (image generation for a post), when not to (quotes and slides go to create_quote_card/create_carousel because they are free), and how to pick a provider (Ideogram for legible text). It also gives an explicit prerequisite step and a safety constraint: call image_providers first, avoid real people or brands without permission.

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