Skip to main content
Glama

Generate background

generate_image_background

Generate a photo for 1 credit to go behind a social image, from a description of the scene. Only when the user asks for a photo, picture or background. Describe the scene, the light and where to leave empty space for the headline; never ask for text, words or logos in it. size is the canvas it will go on. Returns a file_id for generate_og_image's background_file_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoWhere the image will be posted. Sizes: 'og' 1200x630 (The card X, LinkedIn, Slack and iMessage show under a link); 'square' 1080x1080 (An Instagram, LinkedIn or Facebook feed post); 'portrait' 1080x1350 (A taller Instagram or LinkedIn feed post); 'story' 1080x1920 (An Instagram or Facebook story, or a Reels cover); 'landscape' 1280x720 (A YouTube thumbnail or a 16:9 slide); 'facebook_cover' 1640x624 (A Facebook page or profile cover photo, shown at 820 by 312); 'linkedin_banner' 1584x396 (The background image on a LinkedIn profile); 'x_header' 1500x500 (The header image on an X profile). Left out it is 'og'.
promptYesThe scene, in a sentence or two.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations carry only readOnlyHint=false, so the description does the heavy lifting and does it well: it discloses the 1-credit cost, the return artifact (a file_id), and how that value is consumed downstream. These are concrete operational traits an agent needs before calling a metered generation tool.

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 the core action and cost, and every clause carries signal (cost, gating, prompt guidance, exclusion, return value). It is a little dense and run-on in the middle, but not padded.

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?

There is no output schema, but the description compensates by explaining the return value and its downstream use, plus cost, size purpose, and prompt-construction guidance. For a 2-parameter generation tool this is complete enough to call correctly.

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 size enum is exhaustively documented, so the baseline is 3. The description nonetheless adds meaning by clarifying that size is 'the canvas it will go on' and by prescribing what the prompt should contain (scene, light, empty space for the headline), which goes beyond the schema's terse 'The scene, in a sentence or two.'

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?

Specific verb (Generate) plus resource (a photo/background to sit behind a social image), with the scope made unambiguous. It also distinguishes itself from the sibling generate_og_image by stating this output feeds that tool's background_file_id. An agent can route between the two without opening either schema.

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 an explicit gating condition: 'Only when the user asks for a photo, picture or background.' It also states the composition intent (leave empty space for the headline) and a hard exclusion ('never ask for text, words or logos'). It stops short of naming generate_og_image as the alternative for the full composite, leaving that to inference.

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.