Skip to main content
Glama

图片旋转

image_rotate

Rotate an image by a specified clockwise angle using a local path or URL, and return the result as a base64 PNG with an optional save-to-file feature.

Instructions

旋转图片指定角度。

参数:

  • image: 图片路径或URL

  • angle: 旋转角度(正数为顺时针,如90/180/270/45等)

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

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
angleYes旋转角度(正数为顺时针)
imageYes图片路径或URL(http/https开头为URL,否则为本地路径)
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?

The annotations only signal readOnly=false and destructive=false, so the description adds useful behavioral context: positive angles mean clockwise, output is always a base64 PNG, and output_path is an optional save location. It clarifies the side-effect boundary without contradicting any annotation.

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?

The description is compact and front-loaded with the core action, followed by a short parameter list and a return-value line. It is slightly repetitive of the schema, but remains scannable and free of unnecessary prose.

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 straightforward rotation tool, the description plus full schema coverage and annotations cover required parameters, angle convention, optional output, and return format. Minor gaps such as error handling or alternative-tool routing do not significantly hinder correct invocation.

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 100%, so the baseline is 3. The description mostly repeats what the schema already says about angle direction and output_path behavior, only adding example angles (90/180/270/45). It does not introduce meaningful new parameter semantics.

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 opens with '旋转图片指定角度' (rotate an image by a specified angle), clearly identifying the action, resource, and key parameter. It is sufficiently distinct from sibling operations like resize, crop, and flip, though it does not explicitly reference any sibling tool.

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 details parameters and return behavior but provides no guidance on when to choose rotation over sibling tools such as image_flip or image_crop. In a context with multiple image transformation siblings, the absence of explicit routing or exclusions leaves selection to inference.

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