Skip to main content
Glama

crop_image

Crop an image by specifying a bounding box [x1,y1,x2,y2], with options to expand edges and choose coordinate units, then save and return the new path and dimensions.

Instructions

按坐标裁切图片(可边缘外扩),保存并返回路径与新尺寸。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boxYes[x1,y1,x2,y2]
imageYes
coordsNo坐标单位,默认 pixel
out_pathNo
expand_pxNo四边外扩像素数,默认 0
Behavior3/5

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

With no annotations, the description must carry the behavioral disclosure burden. It discloses key behaviors: it saves the cropped image and returns the path and new dimensions, and supports edge expansion. However, it does not describe the return format or what happens if out_path is omitted, and it leaves coordinate system defaults to the schema.

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, front-loaded sentence that states the core action first ('按坐标裁切图片') and adds supplementary details. Every word adds value, with no redundancy or filler.

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, no output schema, and no annotations. The description adequately conveys the main operation and result, but it lacks details on return value structure and parameter semantics for image/out_path. Given the complexity, it is minimally viable but not fully complete.

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 60%, and the description adds some meaning beyond the schema by explaining the purpose of coordinates and edge expansion, and mentioning output path. It does not clarify the 'image' parameter or 'out_path' parameter in detail, but it partially compensates for the coverage gap.

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 crops an image by coordinates, with optional edge expansion, and saves/returns the result. This is a specific verb+resource combination that is distinct from sibling tools like ocr_image or describe_image, which have different purposes.

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 (crop an image when needed) but provides no explicit guidance on when to use this tool versus alternatives, nor any exclusions. It does not mention scenarios like 'use this instead of zoom_region' or when not to use it.

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