Skip to main content
Glama

Read Image Crop

read_image_crop
Read-only

Read a rectangular crop from an original image by specifying top-left pixel coordinates, width, and height; returns the selected region scaled to a maximum 1600-pixel longest side.

Instructions

Read a rectangular crop directly from the original image, rendered at a safe maximum longest side of 1600 px. Coordinates are original-image pixels from the top-left corner.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYesCrop left coordinate in original-image pixels.
yYesCrop top coordinate in original-image pixels.
pathYesImage path relative to workspace root.
widthYesCrop width in original-image pixels.
heightYesCrop height in original-image pixels.
workspace_idNoWorkspace id from open_workspace. Omit to use default workspace.
max_dimensionNoCrop output longest-side dimension. Default/max: 1600 pixels.
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, covering the safety profile. The description adds genuinely useful behavior beyond that: the crop is 'rendered at a safe maximum longest side of 1600 px' (so output may be downscaled) and coordinates are 'original-image pixels from the top-left corner.' 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?

Two sentences with zero waste: purpose first, then the two critical constraints (rendering cap and coordinate frame). Every sentence earns its place and nothing is redundant with the schema.

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 7-parameter tool with no output schema, the description covers purpose, coordinate system, and rendering cap, but omits out-of-bounds behavior and any guidance on how this tool relates to read_image and read_image_tile. An agent can invoke it correctly, but the sibling selection context is left unresolved.

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 baseline of 3 applies. The description adds the 'from the top-left corner' origin clarification and the 1600 px cap context for max_dimension, but most parameter semantics (x/y/width/height in original-image pixels) are already fully documented in the schema, making the description's additive value modest.

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 names a specific operation ('Read a rectangular crop directly from the original image') with a clear resource and scope. 'Rectangular crop' plus 'directly from the original image' separates it from sibling tools like read_image and read_image_tile without needing to open their schemas.

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 when to use it — when a rectangular region of the original image is needed — but it never names read_image or read_image_tile as alternatives, and gives no explicit when-not-to-use guidance. Usage context is inferable rather than stated.

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/Nippori709/AgentDock'

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