Skip to main content
Glama

Generate dossier image

generate_dossier_image

Draw a new image with gpt-image-2.5 and put it straight into a dossier's Mappe, returning the Markdown to paste into a document. This is the project's own image generator — it replaces the detour through innov-ai-tive's generate_asset_image, and the spend lands on this tenant's own OpenAI key. Two models: "flare" (default, fast, for everyday work) and "sunburst" (slower, holds a reference image more faithfully — use it for anything a customer will see). Quality runs low|medium|high|xhigh|max; each step costs render time and output tokens, so start at high. Size must be a multiple of 16 per edge, between 1:3 and 3:1, no edge over 3840 — the server checks before it spends anything. Give reference_image_ids to redraw or restyle images already in this Mappe (up to 16); without them the prompt alone decides. The image is stored like any other Mappe image and is marked origin_kind=generated with origin_is_ai=true, so nobody has to guess later whether a screen in the offer was a real draft. It is NOT free: one call, one image.

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": "<prompt>"
    },
    "name": "generate_dossier_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoDefault flare.
widthNoMultiple of 16. Default 1536.
heightNoMultiple of 16. Default 1024.
promptYesWhat to draw. Say where copy sits so the model leaves that area quiet. Avoid asking for lettering — generated words come out subtly wrong.
qualityNoDefault high.
alt_textNo
filenameNo
grant_idNo
tender_idNo
dossier_idNo
transparentNoTransparent background. PNG only.
reference_image_idsNoImage ids from THIS dossier to use as references (max 16). With references the call goes to the edit endpoint and the model keeps their content.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, the description discloses cost and billing (spot spend on the tenant's own OpenAI key, "one call, one image"), pre-flight validation ("the server checks before it spends anything"), side effects on storage (stored as a Mappe image, tagged origin_kind=generated and origin_is_ai=true), and that references route to the edit endpoint. These are exactly the facts an agent needs before invoking a non-idempotent, charged mutation.

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 purpose, return value, and the cost warning, then constraints and behaviors in a sensible order. A few clauses are more colorful than informative ("so nobody has to guess later whether a screen in the offer was a real draft"), but they still convey the provenance-tagging rationale rather than padding.

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 12-parameter, non-idempotent, charged tool with no output schema, the description covers the return value (Markdown to paste into a document), storage side effects, cost, and the main numeric constraints. The remaining gap is the targeting model: it never explains how dossier_id, grant_id, and tender_id interact or which is required to resolve "this dossier's Mappe".

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?

With 58% schema coverage, the description compensates well for the highest-risk parameters: it enumerates both model options, the quality ladder including the extra "auto" value present in the schema, and the exact width/height constraints (multiple of 16 per edge, ratio between 1:3 and 3:1, no edge over 3840) that the schema does not state. It says nothing about alt_text, filename, grant_id, tender_id, or dossier_id, so several untyped or undocumented IDs remain unexplained — notably which one actually selects the target Mappe.

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 concrete verb and resource ("Draw a new image with gpt-image-2.5 and put it straight into a dossier's Mappe") and explicitly distinguishes this tool from the external generate_asset_image detour. It also makes clear this is generation, not upload, which separates it from siblings like upload_dossier_image and create_dossier_image_upload_url.

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?

Strong conditional guidance is given for the model choice ("flare" for everyday work, "sunburst" for anything a customer will see), quality ("start at high"), and reference_image_ids ("give ... to redraw or restyle images already in this Mappe; without them the prompt alone decides"). What's missing is guidance on when to prefer this over the sibling upload/upload-url flow when the user already has an image, so an agent must still infer that boundary.

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