Skip to main content
Glama

图片镜像

image_flip
Idempotent

Flip an image horizontally or vertically. Provide an image path or URL and choose the direction to receive the flipped image as a base64 PNG.

Instructions

对图片进行水平或垂直镜像翻转。

参数:

  • image: 图片路径或URL

  • direction: 翻转方向(horizontal=水平镜像/左右翻转,vertical=垂直镜像/上下翻转)

  • output_path: 可选,保存到文件路径

返回:翻转后的图片(base64 PNG)和元信息

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageYes图片路径或URL(http/https开头为URL,否则为本地路径)
directionYes翻转方向:horizontal=左右翻转,vertical=上下翻转
output_pathNo可选:输出图片保存的文件路径。无论是否设置,图片都会以base64返回。

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
widthYes
formatYes
heightYes
size_bytesYes
Behavior4/5

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

Annotations already provide idempotentHint=true and destructiveHint=false, and the description adds useful return behavior: the flipped image is returned as base64 PNG along with metadata, and output_path only controls optional saving. It also clarifies that the result is still returned even when output_path is set. No contradiction with annotations.

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 leads with a one-sentence purpose, then presents parameters in a clean list and a short return note. Every sentence is functional and there is no filler.

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 simple, deterministic image transform, the description plus full schema and annotations covers accepted input forms, direction values, optional output path, and return format. An output schema exists, so return details need not be elaborated further.

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 all three parameters fully documented in the schema. The description repeats those parameter meanings but adds no new semantics beyond the schema.

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?

States a specific operation: horizontally or vertically mirror-flip an image, explicitly mapping horizontal and vertical directions. This clearly distinguishes it from sibling image tools like rotate, crop, resize, and concat.

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?

No explicit when-to-use or when-not-to-use guidance is provided, nor are alternatives named. However, the operation is self-descriptive enough that an agent can infer to use this tool when the request is to mirror an image horizontally or vertically.

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/karond-is-me/vision-mcp'

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