Skip to main content
Glama

Generate cohesive images for one page

generate_page_image

Reads a web page and generates two thematically matching images (landscape and portrait) without text or recognizable faces, using a local image generation model.

Instructions

Reads a single web page, extracts its theme/content, and generates two cohesive images representing it (16:9 landscape and 9:16 portrait) via a local Draw Things instance (Flux Schnell, must be running with its API server enabled on http://127.0.0.1:7860 — no cloud dependency, no API key), saved into a folder named after the page title. The prompt forbids text and human faces, and two local offline detectors (OpenCV YuNet for faces, EAST for text) verify each result, retrying with a new seed up to 3 times if either is detected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL of the page to read
outDirNoBase directory under which the page's folder will be created (defaults to ~/Desktop/MCP/output)
styleHintNoOptional visual style guidance, e.g. 'minimalist flat illustration' or 'moody photography'
Behavior5/5

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

Despite no annotations, the description extensively discloses behavior: local execution, model (Flux Schnell), API endpoint, folder naming, prompt restrictions (no text/faces), offline detectors (OpenCV YuNet, EAST), and retry logic (up to 3 times). This fully compensates for missing annotations.

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 description is a single informative paragraph that front-loads the main action and key details. It is concise but could be slightly more structured (e.g., bullet points for prerequisites or retry logic) without losing brevity.

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?

While the description covers many behavioral aspects, it lacks explicit mention of return values (e.g., file paths) and error handling (e.g., what happens if all retries fail). Given no output schema, these gaps reduce completeness.

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% with descriptions for all three parameters. The description adds some context (e.g., folder named after page title) but does not significantly enhance parameter meaning beyond the schema. Baseline 3 is appropriate.

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 clearly states the verb 'generates' and the resource 'images for one page' with specific output (two images, 16:9 and 9:16 ratios), distinguishing it from sibling 'generate_site_images' by focusing on a single page.

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?

The description provides clear prerequisites (local Draw Things instance running with API at http://127.0.0.1:7860) and implies use case (offline image generation from a page), but does not explicitly state when not to use or mention alternatives like generate_site_images for multiple pages.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jhordan-pastorello/MCP-Generate-Image-Context'

If you have feedback or need assistance with the MCP directory API, please join our Discord server