Skip to main content
Glama

unmake file tools

Straighten a photo of a flat surface to scale

photo_rectify
Read-onlyIdempotent

Straighten a photo of a flat surface to scale. Re-projects a photo of a wall, floor, facade or drawing straight-on at one scale, from an A4/Letter sheet or card on the surface or from four corners of a known rectangle; returns the PNG and its mm per pixel. Same engine as the photo rectify page. Use when: An agent has an angled photo of a flat surface and needs a true-to-scale, straight-on picture. Not for: Things that stick out of the plane, curved surfaces. File types: jpg, jpeg, png, webp. Max 20 MB.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "photo_rectify"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsNoTool options, if any (see the tool description).
file_urlNoPublic https URL of the file (preferred).
filenameNoFile name with its extension, e.g. part.step.
file_base64NoThe file as base64, for small files without a URL (give filename too).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive and open-world behavior, so the safety profile is covered. The description adds genuinely new context: accepted file types, a 20 MB size cap, the requirement for a scale reference (A4/Letter sheet or a known rectangle's four corners), and the return payload including mm-per-pixel calibration. It omits processing time, failure modes for bad reference detection, and authentication needs.

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 purpose and mechanism are front-loaded, and the 'Use when'/'Not for'/file-type clauses are scannable and informative. The line 'Same engine as the photo rectify page' is marketing filler that references an external page and earns no place in an agent-facing definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description responsibly states the return value (PNG plus mm per pixel) and covers inputs, limits, and applicability boundaries. The main residual gap is the unstated structure of the nested options object, which matters given the tool is unusable without a scale reference.

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 coverage is 100%, so the baseline is 3. The description does add real meaning for the otherwise opaque 'options' nested object by explaining that a scale reference (A4/Letter sheet, card, or four corners of a known rectangle) must be supplied, but it does not map this to specific option keys, leaving the agent to discover the shape.

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 uses a specific verb and resource ('Straighten a photo of a flat surface to scale') and explains the mechanism ('re-projects ... straight-on at one scale'), plus the concrete output ('the PNG and its mm per pixel'). It is clearly distinct from measurement or vectorization work, though it never names a sibling such as photo_measure or photo_to_dxf to route the agent explicitly.

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?

It provides an explicit 'Use when' clause (an angled photo of a flat surface needing a true-to-scale straight-on picture) and an explicit 'Not for' clause (objects protruding from the plane, curved surfaces). It stops short of naming alternatives, so the agent must infer which sibling to use for non-planar or vector-output cases.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources