Skip to main content
Glama

ADS MCP

Generate AI Image

generate_image

Generates an image by calling an AI image model via the user's own OpenRouter API key (configured in MCP Settings). The image is saved to the server and a public URL is returned. The image is not automatically added to a Google Ads asset group — use create_image_asset and add_asset_group_assets for that. Requires an OpenRouter API key in MCP Settings. Include style, colours, mood, and dimensions in the prompt. ALWAYS describe the intended image and get explicit user approval before generating.

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": {
      "user_intent": "<user_intent>",
      "prompt": "<prompt>"
    },
    "name": "generate_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesDetailed image description including style, colours, mood, and pixel dimensions.
filenameNoOptional filename e.g. hero-bg.png.
user_intentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), the description discloses the auth requirement (user's own API key), the side effect (image saved to the server), the return value (public URL), and the non-obvious limitation that the image is not automatically added to a Google Ads asset group. It also imposes an explicit approval gate before generation, which is meaningful behavioral context for a paid external API call.

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?

Content is front-loaded with the core action and mechanism, and every sentence carries operational information. There is minor redundancy: the OpenRouter API key requirement is stated twice, once in the first sentence and again as a standalone prerequisite.

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?

For a three-parameter generation tool with no output schema, the description covers the mechanism, the side effect, the return value, the credential prerequisite, and the follow-on workflow. An agent has enough to call it correctly and to know what happens to the resulting image.

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 67%, and the description's prompt guidance ('Include style, colours, mood, and dimensions') largely restates the schema's own prompt description. The required user_intent parameter has no description in the schema and is not explained here either, leaving a genuine gap.

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 ('Generates an image by calling an AI image model') and immediately states the mechanism (the user's own OpenRouter API key). It also distinguishes itself from the downstream asset tools, so an agent knows this tool produces an image but does not attach it to a campaign.

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?

It explicitly names the follow-on tools (create_image_asset, add_asset_group_assets) and the condition that selects them, plus a prerequisite (OpenRouter key in MCP Settings) and an approval workflow before generating. The main gap is that the sibling generate_image_styled is never mentioned, so an agent gets no guidance on choosing between the two image generators.

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.