Skip to main content
Glama

photo_crop

Crop or reframe a photo by trimming pixels from any edge, and apply optional zoom or rotation to adjust the framing.

Instructions

Crop / reframe a photo (pixels from each edge, optional zoom and rotation).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "photo": "<photo>"
    },
    "name": "photo_crop"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNo
leftNo
zoomNo
albumNoAlbum name or id (default: current album)
photoYesPhoto name, id or 1-based index in the album
rightNo
bottomNo
rotationNo
lockAspectNoKeep Resolve's crop aspect lock (it rejects crops that change the aspect when on)

Output Schema

NameRequiredDescriptionDefault
okYesTrue only when DaVinci Resolve confirmed the operation.
dataNo
toolYes
errorNo
sourceNoWhere the result came from: the real DaVinci Resolve, the mock adapter (tests), or the server alone.
statusYes
messageYes
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is known. The description adds that it crops/reframes and supports optional zoom and rotation, but does not explain whether the original photo is modified in place or whether the edit is reversible; with annotations present, this is adequate but thin.

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?

It is a single front-loaded sentence with no filler, and the parenthetical efficiently groups the crop-related context. It is appropriately sized for a definition that relies on the schema and annotations.

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 9 parameters, a mutation annotation profile, and an output schema, so the description needn't explain return values. Still, for a 9-parameter photo operation it omits important context about lockAspect behavior, photo/album targeting, and whether the edit is applied in place; it is minimally adequate rather than 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 only 33%, so the description needs to compensate. 'Pixels from each edge' gives semantic meaning to top/left/right/bottom, and 'optional zoom and rotation' identifies those two parameters, but the description does not explain lockAspect, album/photo selection, defaults, or ranges, and does not fully replace the missing schema descriptions.

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 states a specific action and resource: 'Crop / reframe a photo', with scope clarified by 'pixels from each edge' and optional zoom/rotation. It does not name or differentiate from sibling tools such as clip_set_crop or photo_edit, so it falls short of 5.

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?

There is no explicit when-to-use or when-not-to-use guidance, no prerequisites, and no alternatives named. The purpose implies it is for cropping/reframing, but the description leaves the agent to infer the context.

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

Deploy Server

Other Tools