Skip to main content
Glama

ADS MCP

Generate Style-Matched Image

generate_image_styled

Generates a new image that matches the style of a reference image, by calling an AI image model via the user's own OpenRouter API key (configured in MCP Settings). The user attaches a reference image in the Claude chat and its base64 data is passed as reference_image. The result 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. 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>",
      "reference_image": "<reference_image>"
    },
    "name": "generate_image_styled"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesText description of the image to generate.
filenameNoOptional filename.
user_intentYes
reference_imageYesBase64 data URI of the reference image.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), it discloses the dependency on the user's own OpenRouter API key configured in MCP Settings, that the result is persisted server-side and a public URL returned, and that no Google Ads asset group is modified as a side effect. This is exactly the operational context an agent needs for a non-read-only tool with an external paid dependency.

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?

Five sentences, each carrying distinct information — mechanism, input handling, output, downstream routing, and the approval guardrail — with the core purpose front-loaded. Slightly dense and the all-caps ALWAYS is heavy-handed, but nothing is redundant.

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, and the description compensates by stating the return value (a public URL after server-side save). It also covers the external auth prerequisite and the follow-up tools, which is everything needed to invoke this correctly and handle the result.

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 75%, so the schema documents prompt, filename, and reference_image. The description still adds real value by explaining how reference_image is obtained (user attaches the image in Claude chat and its base64 is passed), which the schema only calls 'base64 data URI'. The user_intent parameter remains unexplained in both places.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource — generates a new image that matches the style of a reference image — and names the model backend and credential source. It implicitly distinguishes itself from the plain generate_image sibling via 'style-matched'/'reference image', but never names that sibling explicitly, leaving a small ambiguity about when to pick one over the other.

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 routing guidance: it states the image is NOT auto-added to an asset group and directs the agent to create_image_asset and add_asset_group_assets instead. It also imposes a mandatory approval workflow ('ALWAYS describe the intended image and get explicit user approval'). The only gap is no explicit comparison against the closely-named generate_image sibling.

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.