Skip to main content
Glama

zoom_region

Enlarge a specified image region (or whole image) by a scale factor from 1 to 8, save the zoomed file, and return its path. Accepts optional pixel/normalized coordinates.

Instructions

放大图片指定区域(默认整图 2 倍),保存并返回路径。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boxNo[x1,y1,x2,y2],省略则放大整图
imageYes
scaleNo放大倍数 1-8,默认 2
coordsNo坐标单位,默认 pixel
out_pathNo
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses that the tool saves the result and returns a path, which is useful. However, it does not mention side effects (e.g., whether the original image is modified), error conditions, or the exact output format beyond 'path.'

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, concise sentence that is front-loaded with the core action and includes the two most important defaults. Every word earns its place with no unnecessary repetition.

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?

The tool has 5 parameters and no output schema, but the description covers the main behavior (zoom, save, return path). Missing details include coordinate system behavior, out_path handling, and edge cases, though some of this is captured in the schema. Overall, it is adequate but not rich.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 60%, and the description only rephrases the defaults already present in the schema (e.g., box omitted = whole image, scale default = 2). It adds no new meaning for parameters like coords or out_path, so the value beyond the schema is minimal.

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 function: zoom into a specified region of an image, defaulting to the whole image at 2x, then save and return the path. This is a specific verb+resource combination that distinguishes it from similar tools like crop_image or ocr_image.

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. There is no mention of exclusions, prerequisites, or comparison to sibling tools, leaving the agent to infer the appropriate context.

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/zouyuanqing/vision-primitives-mcp'

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