Skip to main content
Glama

OpenRouter Image MCP Server 🖼️

🤖 A Model Context Protocol (MCP) server for generating and editing images using OpenRouter's API with Gemini 2.5 Flash Image model.

一个用于通过 OpenRouter API 生成和编辑图像的 Model Context Protocol (MCP) 服务器,支持自定义图像尺寸比例。

✨ 特性

  • 🎨 生成图像: 从文本描述创建全新的图像

  • ✏️ 编辑图像: 使用文本提示修改现有图像

  • 🔄 迭代编辑: 持续编辑上次生成/编辑的图像

  • 📐 自定义尺寸: 支持多种图像宽高比(1:1, 16:9, 9:16, 等)

  • 🖼️ 多参考图像: 使用参考图像进行风格迁移和引导

  • 🌍 跨平台: 支持 Windows、macOS 和 Linux 的智能文件路径

  • 🔧 简单配置: 使用 API 密钥轻松配置

  • 📁 自动文件管理: 自动保存图像并组织命名

🔑 获取 API 密钥

  1. 访问 OpenRouter Settings - Keys

  2. 创建一个新的 API 密钥

  3. 复制密钥用于配置

💻 使用方法

在 Claude Desktop 中使用

配置方法:

在 Claude Desktop 的 MCP 配置中添加:

方法 A:使用环境变量(推荐 - 最安全)

{
  "mcpServers": {
    "openrouter-image": {
      "command": "npx",
      "args": ["openrouter-image-mcp"],
      "env": {
        "OPENROUTER_API_KEY": "your-openrouter-api-key-here"
      }
    }
  }
}

方法 B:不使用环境变量

{
  "mcpServers": {
    "openrouter-image": {
      "command": "npx",
      "args": ["openrouter-image-mcp"]
    }
  }
}

使用示例:

生成一张日落山景图像
将这张图像编辑成添加一些飞鸟
继续编辑,让它更加戏剧化
生成一张 16:9 比例的未来城市图像

🎯 在 Cursor 中使用

配置方法:

在 Cursor 的 MCP 配置中添加:

方法 A:使用环境变量(推荐)

{
  "openrouter-image": {
    "command": "node",
    "args": ["E:\\Study\\赚钱\\工具\\Openrouter-Image-MCP\\dist\\index.js"],
    "env": {
      "OPENROUTER_API_KEY": "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"
    }
  }
}

方法 B:不使用环境变量

{
  "openrouter-image": {
    "command": "npx",
    "args": ["openrouter-image-mcp"]
  }
}

使用示例:

  • 让 Cursor 为你的应用生成图像

  • 创建模型和原型

  • 为项目生成资源

🔧 在其他 MCP 客户端中使用

如果你使用其他 MCP 客户端,可以使用以下任一配置方法:

配置方法

方法 A:MCP 配置中的环境变量(推荐)

{
  "openrouter-image": {
    "command": "npx",
    "args": ["openrouter-image-mcp"],
    "env": {
      "OPENROUTER_API_KEY": "your-openrouter-api-key-here"
    }
  }
}

方法 B:系统环境变量

export OPENROUTER_API_KEY="your-openrouter-api-key-here"
npx openrouter-image-mcp

方法 C:使用配置工具

npx openrouter-image-mcp
# 服务器会在首次使用时提示你配置
# 这会在当前目录创建 .openrouter-image-config.json 文件

🛠️ 可用命令

generate_image

从文本提示创建新图像。

generate_image({
  prompt: "A futuristic city at night with neon lights",
  aspectRatio: "16:9" // 可选
})

支持的宽高比:

  • 1:1 → 1024×1024(默认)

  • 16:9 → 1344×768

  • 9:16 → 768×1344

  • 3:4 → 864×1184

  • 4:3 → 1184×864

  • 2:3 → 832×1248

  • 3:2 → 1248×832

  • 4:5 → 896×1152

  • 5:4 → 1152×896

  • 21:9 → 1536×672

edit_image

编辑特定的图像文件。

edit_image({
  imagePath: "/path/to/image.png",
  prompt: "Add a rainbow in the sky",
  referenceImages: ["/path/to/reference.jpg"], // 可选
  aspectRatio: "16:9" // 可选
})

continue_editing

继续编辑上次生成/编辑的图像。

continue_editing({
  prompt: "Make it more colorful",
  referenceImages: ["/path/to/style.jpg"], // 可选
  aspectRatio: "1:1" // 可选
})

get_last_image_info

获取上次生成的图像信息。

get_last_image_info()

configure_openrouter_token

配置你的 OpenRouter API 密钥。

configure_openrouter_token({
  apiKey: "your-openrouter-api-key"
})

get_configuration_status

检查 API 密钥是否已配置。

get_configuration_status()

⚙️ 配置优先级

MCP 服务器按以下优先级顺序加载你的 API 密钥:

  1. 🥇 MCP 配置环境变量(最高优先级)

    • 在 MCP 客户端配置中设置

    • 最安全,因为包含在 MCP 配置中

    • 示例:"env": { "OPENROUTER_API_KEY": "your-key" }

  2. 🥈 系统环境变量

    • 在 shell/系统环境中设置

    • 示例:export OPENROUTER_API_KEY="your-key"

  3. 🥉 本地配置文件(最低优先级)

    • 使用 configure_openrouter_token 工具时创建

    • 作为 .openrouter-image-config.json 存储在当前目录

    • 自动被 Git 和 NPM 忽略

💡 推荐: 使用方法 1(MCP 配置环境变量)以获得最佳安全性和便利性。

📁 文件存储

图像自动保存到适合平台的位置:

  • Windows: %USERPROFILE%\\Documents\\openrouter-images\\

  • macOS/Linux: ./generated_imgs/(在当前目录)

  • 系统目录: ~/openrouter-images/(从系统路径运行时)

文件命名规范:

  • 生成的图像:generated-[timestamp]-[id].png

  • 编辑的图像:edited-[timestamp]-[id].png

🎨 示例工作流程

基本图像生成

  1. generate_image - 创建你的基础图像

  2. continue_editing - 优化和改进

  3. continue_editing - 添加最后的润色

风格迁移

  1. generate_image - 创建基础内容

  2. edit_image - 使用参考图像应用风格

  3. continue_editing - 微调结果

迭代设计

  1. generate_image - 从概念开始

  2. get_last_image_info - 检查当前状态

  3. continue_editing - 进行调整

  4. 重复直到满意

自定义尺寸

  1. generate_image - 使用 aspectRatio: "16:9" 创建宽屏图像

  2. continue_editing - 使用 aspectRatio: "9:16" 调整为竖屏

  3. edit_image - 使用不同比例创建变体

🔧 开发

本地开发

# 克隆仓库
git clone https://github.com/yourusername/openrouter-image-mcp.git
cd openrouter-image-mcp

# 安装依赖
npm install

# 开发模式运行
npm run dev

# 生产构建
npm run build

# 运行测试
npm test

技术栈

  • TypeScript - 类型安全开发

  • Node.js - 运行时环境

  • Zod - 模式验证

  • OpenAI SDK - OpenRouter API 客户端

  • MCP SDK - Model Context Protocol

📋 要求

  • Node.js 18.0.0 或更高版本

  • 来自 OpenRouter 的 API 密钥

  • 兼容 Claude Desktop、Cursor 和其他 MCP 客户端

🤝 贡献

欢迎贡献!请随时:

  • 报告 bug

  • 建议新功能

  • 提交 pull request

  • 改进文档

📄 许可证

MIT 许可证 - 详见 LICENSE 文件。

🙏 致谢

📞 支持

🔗 链接


✨ 通过 OpenRouter 和 MCP 协议实现强大的 AI 图像生成功能!

Available Tools

6 tools
configure_openrouter_tokenB

Configure your OpenRouter API token for image generation

ParametersJSON Schema
NameRequiredDescriptionDefault
apiKeyYesYour OpenRouter API key from https://openrouter.ai/settings/keys

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool configures an API token but doesn't describe what this entails—whether it stores the token persistently, requires specific permissions, has side effects (e.g., overwriting existing configuration), or what happens on success/failure. For a configuration tool with zero annotation coverage, this leaves critical behavioral traits unclear.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It is front-loaded and appropriately sized for a simple configuration tool, with zero waste or redundancy.

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?

Given the tool's low complexity (one parameter, no output schema, no annotations), the description is minimally adequate. It covers the basic purpose but lacks details on behavioral aspects like persistence or error handling. Without annotations or output schema, more context on what 'configure' entails would improve completeness, but it's not entirely inadequate for this simple case.

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 description coverage is 100%, with the parameter 'apiKey' fully documented in the schema (including a URL for obtaining the key). The description adds no additional meaning beyond what the schema provides, as it doesn't elaborate on parameter usage, format, or constraints. With high schema coverage, the baseline score of 3 is appropriate, as the description doesn't compensate but doesn't need to heavily.

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 clearly states the action ('configure') and the resource ('OpenRouter API token for image generation'), making the purpose understandable. It doesn't explicitly distinguish from sibling tools like 'get_configuration_status' or 'generate_image', but the verb 'configure' implies a setup action rather than retrieval or usage, providing some implicit differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing an API key first), when it should be invoked (e.g., before generating images), or how it relates to sibling tools like 'get_configuration_status' for checking configuration. Usage is implied only by the action 'configure', with no explicit context.

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

continue_editingA

Continue editing the LAST image that was generated or edited in this session, optionally using additional reference images. Use this for iterative improvements, modifications, or changes to the most recent image. This automatically uses the previous image without needing a file path.

ParametersJSON Schema
NameRequiredDescriptionDefault
aspectRatioNoOptional aspect ratio for the edited image. Default is 1:1 (1024×1024).
promptYesText describing the modifications/changes/improvements to make to the last image (e.g., 'change the hat color to red', 'remove the background', 'add flowers')
referenceImagesNoOptional array of file paths to additional reference images to use during editing (e.g., for style transfer, adding elements from other images, etc.)

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explains key behaviors: it operates on the last image in the session automatically and supports iterative editing. However, it doesn't cover important aspects like whether this is a destructive operation (overwrites the last image), authentication needs, rate limits, or what happens if no previous image exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is perfectly sized at three sentences, each earning its place. It's front-loaded with the core purpose, followed by usage context, and ending with the automatic behavior. Zero wasted words or redundancy.

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?

For a tool with 3 parameters, 100% schema coverage, but no annotations and no output schema, the description is adequate but has gaps. It explains the core purpose and session context well, but doesn't address behavioral aspects like whether this is a read-only or destructive operation, error conditions, or return values. The lack of annotations increases the burden on the description.

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 description coverage is 100%, so the schema already documents all three parameters thoroughly. The description adds minimal value beyond the schema - it mentions 'optionally using additional reference images' which aligns with the referenceImages parameter but doesn't provide additional semantic context. Baseline 3 is appropriate when schema does the heavy lifting.

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 tool's purpose with specific verbs ('continue editing') and identifies the resource ('the LAST image that was generated or edited in this session'). It distinguishes from siblings by specifying it works on the most recent image automatically, unlike 'edit_image' which likely requires explicit file paths.

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 context for when to use this tool ('for iterative improvements, modifications, or changes to the most recent image') and mentions it automatically uses the previous image. However, it doesn't explicitly state when NOT to use it or name specific alternatives like 'edit_image' for non-last images.

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

edit_imageB

Edit a SPECIFIC existing image file, optionally using additional reference images. Use this when you have the exact file path of an image to modify.

ParametersJSON Schema
NameRequiredDescriptionDefault
aspectRatioNoOptional aspect ratio for the edited image. Default is 1:1 (1024×1024).
imagePathYesFull file path to the main image file to edit
promptYesText describing the modifications to make to the existing image
referenceImagesNoOptional array of file paths to additional reference images to use during editing (e.g., for style transfer, adding elements, etc.)

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool edits an existing image but doesn't disclose critical behavioral traits: whether this is a destructive mutation (overwrites the original or creates a new file), what permissions or authentication are needed, any rate limits, error handling, or the nature of the output (e.g., returns a new file path or modifies in-place). For a mutation tool with zero annotation coverage, this is a significant gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded: two concise sentences that directly state the purpose and usage context. Every sentence earns its place by providing essential information without redundancy or fluff, making it efficient and easy to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of an image editing tool with no annotations and no output schema, the description is incomplete. It lacks behavioral details (e.g., mutation effects, auth needs), doesn't explain the return values or output format, and relies heavily on the schema for parameters. For a tool that performs edits, this leaves significant gaps in understanding how to use it effectively.

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 description coverage is 100%, so the schema already documents all four parameters (imagePath, prompt, aspectRatio, referenceImages) with descriptions. The description adds minimal value beyond the schema: it mentions 'optionally using additional reference images' (implied by referenceImages) and 'exact file path' (implied by imagePath). No additional syntax, format details, or constraints are provided, so the baseline score of 3 is appropriate.

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 clearly states the tool's purpose: 'Edit a SPECIFIC existing image file, optionally using additional reference images.' It specifies the verb ('edit'), resource ('existing image file'), and scope ('specific'), distinguishing it from sibling tools like 'generate_image' (creation) and 'continue_editing' (ongoing edits). However, it doesn't explicitly differentiate from all siblings (e.g., 'get_last_image_info' is informational, but this isn't mentioned).

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 context for when to use this tool: 'Use this when you have the exact file path of an image to modify.' This gives a specific prerequisite (file path availability) and implies it's for modifying existing images rather than creating new ones. It doesn't explicitly state when not to use it or name alternatives like 'generate_image', but the context is sufficient for basic guidance.

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

generate_imageA

Generate a NEW image from text prompt using OpenRouter (Gemini 2.5 Flash Image). Use this ONLY when creating a completely new image, not when modifying an existing one.

ParametersJSON Schema
NameRequiredDescriptionDefault
aspectRatioNoOptional aspect ratio for the generated image. Default is 1:1 (1024×1024). Options: 1:1, 16:9, 9:16, 3:4, 4:3, etc.
promptYesText prompt describing the NEW image to create from scratch

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions that the tool generates images via OpenRouter with a specific model, which adds useful context about the external service and generation method. However, it lacks details on potential limitations (e.g., rate limits, costs, output format, or error handling), which are important for a tool that likely involves API calls and resource consumption.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two concise sentences that are front-loaded with the core purpose and usage rule. Every word earns its place by clarifying the tool's intent and distinguishing it from siblings, with no redundant or vague phrasing. It efficiently communicates essential information without unnecessary elaboration.

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?

Given the tool's complexity (image generation via external API) and lack of annotations or output schema, the description is somewhat incomplete. It covers the purpose and usage well but misses behavioral details like expected output format, error conditions, or dependencies (e.g., token configuration via 'configure_openrouter_token'). For a tool with no structured safety or output info, more context would be beneficial.

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 description coverage is 100%, with clear descriptions for both parameters (e.g., 'prompt' is for 'describing the NEW image to create from scratch'). The description reinforces the 'NEW' aspect for the prompt but doesn't add significant semantic details beyond what the schema already provides, such as explaining prompt best practices or aspect ratio implications. Baseline 3 is appropriate given the high schema coverage.

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 specific action ('Generate a NEW image'), the resource ('image'), and the method ('from text prompt using OpenRouter (Gemini 2.5 Flash Image)'). It explicitly distinguishes this tool from modification tools like 'edit_image' among its siblings by emphasizing 'creating a completely new image, not when modifying an existing one.'

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use this tool ('ONLY when creating a completely new image') and when not to use it ('not when modifying an existing one'), which clearly differentiates it from alternatives like 'edit_image' among the sibling tools. This direct exclusion rule offers strong usage context.

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

get_configuration_statusB

Check if OpenRouter API token is configured

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the action ('Check') but doesn't describe what the check entails (e.g., returns a boolean, error message, or status details), potential side effects, or authentication requirements. This leaves gaps in understanding the tool's behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence that efficiently conveys the tool's purpose without unnecessary words. It is front-loaded and appropriately sized for a simple tool, with no wasted information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (0 parameters, no annotations, no output schema), the description is minimal but lacks completeness. It doesn't explain what the output might be (e.g., success/failure status, configuration details), which is critical for a check operation. This leaves the agent uncertain about how to interpret results.

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?

The tool has 0 parameters with 100% schema description coverage, so the schema fully documents the lack of inputs. The description adds no parameter information, which is appropriate here, and the baseline score for 0 parameters is 4, as no compensation is needed.

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 clearly states the tool's purpose with a specific verb ('Check') and resource ('OpenRouter API token configuration'), making it immediately understandable. It doesn't explicitly differentiate from sibling tools like 'configure_openrouter_token', but the distinction is implied through the action (checking vs. configuring).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context (verifying token setup) but doesn't provide explicit guidance on when to use this tool versus alternatives like 'configure_openrouter_token' or other siblings. It lacks details on prerequisites, error conditions, or specific scenarios where this check is necessary.

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

get_last_image_infoA

Get information about the last generated/edited image in this session (file path, size, etc.). Use this to check what image is currently available for continue_editing.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.4/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. It clearly indicates this is a read operation ('Get information') and specifies the scope ('in this session'), but doesn't disclose potential limitations like what happens if no image exists, error conditions, or session persistence details. It adds some context about the tool's role in the workflow.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is perfectly concise with two sentences that each serve distinct purposes: the first defines what the tool does, the second explains when to use it. There's zero wasted text, and the most important information (the tool's purpose) is front-loaded.

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 zero-parameter tool with no annotations and no output schema, the description provides good context about what information is retrieved and how it fits into the workflow with 'continue_editing'. However, it doesn't specify the exact format of returned information or what 'etc.' might include, leaving some ambiguity about the output.

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?

The tool has zero parameters with 100% schema description coverage, so the baseline is 4. The description appropriately doesn't discuss parameters since none exist, and instead focuses on the tool's purpose and usage context.

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 specific action ('Get information about') and resource ('last generated/edited image'), including what information is retrieved ('file path, size, etc.'). It explicitly distinguishes this tool from its sibling 'continue_editing' by explaining its role in checking what image is available for that operation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use this tool ('to check what image is currently available for continue_editing'), directly naming the sibling tool 'continue_editing' as the alternative for which this serves as a prerequisite check. This creates clear contextual boundaries.

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

TDQS

A4/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose with no ambiguity: configure token, check configuration, generate new image, edit specific image, continue editing last image, and get last image info. The descriptions explicitly differentiate between generate_image (new images), edit_image (specific files), and continue_editing (last session image), preventing misselection.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern with snake_case throughout: configure_openrouter_token, continue_editing, edit_image, generate_image, get_configuration_status, and get_last_image_info. The naming is predictable and follows the same convention across all six tools.

Tool Count5/5

With 6 tools, this server is well-scoped for image generation and editing. Each tool earns its place by covering essential operations: setup (configure/check), generation, editing (both specific and iterative), and session management (get last image info). This count is appropriate for the domain without being too sparse or bloated.

Completeness5/5

The tool surface provides complete coverage for the image generation and editing domain. It includes setup (configure/check), creation (generate_image), modification (edit_image and continue_editing for different use cases), and session state management (get_last_image_info). There are no obvious gaps that would cause agent failures in this workflow.

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

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/WeiYu021/openrouter-image-MCP'

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