Skip to main content
Glama

unmake file tools

Measure distances in a photo with a sheet or card as reference

photo_measure
Read-onlyIdempotent

Measure distances in a photo with a sheet or card as reference. Measures distances between points you give (photo pixels) in the plane of an A4/Letter sheet or bank card in the photo, each with its own ± error. Same engine as the measure-from-photo page. Use when: An agent has a photo with a sheet or card flat next to an object and needs real lengths between known points. Not for: Points above or below the reference plane, finding the points by itself. 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_measure"
  }
}

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 state readOnly, idempotent, non-destructive reads, so the bar is lower. The description adds real value beyond them: accepted file types, a 20 MB size cap, the fact that each measurement carries its own ± error, and the limitation that the tool will not locate the points for you. It does not describe output format or precision guarantees in detail, which keeps it at 4 rather than 5.

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 sentence is front-loaded, followed by scope, explicit use/not-for cues, and constraints, so an agent can parse it quickly. The 'Same engine as the measure-from-photo page' line adds trust context but borders on filler, and the when/not-for labels keep the rest tight.

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 does useful work by implying per-point distance results with individual ± error, and it covers format and size limits. For a 4-parameter tool with an opaque nested 'options' object and zero required params, it is largely sufficient, though the undefined 'options' object is a residual gap.

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 agent already sees file_url, filename and file_base64 fully documented; the baseline is 3. The description adds nothing about parameter syntax beyond noting this is a photo-only tool. Notably, the nested 'options' param points back to the description ('see the tool description') for its meaning, but the description never defines what options exist, leaving a dangling reference.

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 gives a clear verb and resource: measuring real-world distances between agent-supplied photo-pixel points, in the plane of an A4/Letter sheet or bank card. It is specific about the reference-plane constraint and per-measurement error bars, but it differentiates against sibling tools only implicitly (via 'Not for') and never names an alternative such as photo_rectify.

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?

Explicit 'Use when:' and 'Not for:' sections spell out the trigger (photo with a sheet or card flat next to an object, known points) and two important exclusions (points off the reference plane, automatic point detection). The one gap is that it does not name a better-suited alternative tool for the excluded cases, so it falls short of 5.

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