Skip to main content
Glama
RecurPost MCP Server
by dinwal

generate_image_with_ai

Generates a single image from a text prompt and returns its URL for use as post image content. Consumes one AI image credit per request.

Instructions

Generate one image from a text description with RecurPost AI and get its URL, which can go into image_url of post_content or add_content_in_library. Spends an AI image credit (see ai_credits).

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": {
      "prompt_text": "<prompt_text>"
    },
    "name": "generate_image_with_ai"
  }
}

Input Schema

NameRequiredDescriptionDefault
prompt_textYesDescription of the image, up to 5000 characters.
workspace_idNoWorkspace to act in (ws_id from workspace_list). Omit to use your default workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.0.0
    • changedInput schema / properties / prompt_text / description
      Previous value: -"Detailed description of the image to generate"New value: +"Description of the image, up to 5000 characters."
    • addedInput schema / properties / workspace_id
      Added value: +{
      +  "description": "Workspace to act in (ws_id from workspace_list). Omit to use your default workspace.",
      +  "type": "string"
      +}
  2. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare a non-read-only, open-world, non-destructive operation, and the description adds the key cost behavior that annotations cannot express: each call spends an AI image credit and points to ai_credits. It does not cover failure modes such as what happens when credits run out, which keeps it below 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with no waste: output and downstream placement come first, the credit cost second. Every clause carries information an agent would otherwise have to guess.

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 two-parameter generation tool with no output schema, the description covers purpose, return value, cost, and where the value is consumed. A brief note on what happens if credits are insufficient or generation fails is the only meaningful gap.

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 both prompt_text (including the 5000-character limit) and workspace_id are already fully documented in the schema. The description's "text description" phrasing aligns with prompt_text but adds no format, style, or size guidance beyond it, so the baseline of 3 applies.

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 ("Generate one image from a text description with RecurPost AI") plus the return value (its URL), which cleanly separates it from text-generation siblings like generate_content_with_ai. An agent knows exactly what it gets back and how much of it ("one image").

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 a concrete downstream usage path by naming the fields the resulting URL feeds (image_url of post_content or add_content_in_library), which is clear usage context. It stops short of explicit when-not guidance or naming the sibling text-generation tool as the alternative for non-image needs.

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