Skip to main content
Glama
dsh18235538266-crypto

onshape-mcp-codex

crop_image

Zoom into a region of a cached image via a normalized 0..1 bounding box to inspect fine details such as faces, edges, or fillets. Returns a new image for closer analysis.

Instructions

Zoom into a region of a cached image by normalized 0..1 bounding box. Use after render_* when you need to inspect a detail — a specific face, a feature edge, a suspicious fillet. (0,0) is top-left, (1,1) is bottom-right. Returns a new image keyed by its own image_id. This is the pattern behind Anthropic's CharXiv 84.7 -> 91.0% 'with tools' benchmark result; use it liberally.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
x1YesLeft edge (0..1)
x2YesRight edge (0..1), must be > x1
y1YesTop edge (0..1)
y2YesBottom edge (0..1), must be > y1
imageIdYesimage_id from a previous render_* or crop_image call

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/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 the coordinate system, the non-destructive nature via a new image_id, and that the input must be a cached image. It does not detail invalid-region behavior, but the schema covers ordering constraints.

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 operational content is front-loaded and efficient. The trailing benchmark claim about CharXiv is motivational rather than functional, and 'use it liberally' is more style than substance, so it does not fully earn its place.

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 5-parameter tool with a complete input schema, the description covers the when, the coordinate semantics, the source image requirement, and the return behavior. The lack of an output schema is mitigated by explicitly stating that a new image_id is returned.

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

Parameters4/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 adds value by explaining the normalized 0..1 bounding-box concept and explicitly stating that (0,0) is top-left and (1,1) is bottom-right, which helps an agent reason about x1/y1/x2/y2.

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 states a specific operation: zoom into a cached image by normalized 0..1 bounding box. It also clearly ties the tool to the render_* workflow by positioning it as the follow-up step for inspecting details like faces, edges, or fillets.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says to use after render_* when inspecting a detail, and even encourages liberal use. It does not enumerate when not to use it or name alternative zoom/recrop approaches, but the guidance is clear and actionable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.