Skip to main content
Glama
Tetragon
by wckdboy

measure_reference_distance

Measures the distance between two points on a hash-verified reference and optionally compares it with a model dimension without editing the model, returning replayable inputs and uncertainty limits.

Instructions

Measure two points on a hash-verified reference and optionally compare with a model dimension without editing it. Plans require matching calibrated page and units. Photos require explicit coplanar rectangle corners (TL,TR,BR,BL), known width/height and control evidence. Returns replayable inputs, estimated distance and uncertainty limitations; never infer plane dimensions from a photograph or apply original-image GSD to a preview.

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": {
      "project_id": "<project_id>",
      "reference_id": "<reference_id>",
      "measurement": "<measurement>"
    },
    "name": "measure_reference_distance"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes
measurementYes
reference_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description does real work: it states the operation never edits the reference, that inputs are 'hash-verified,' what is returned ('replayable inputs, estimated distance and uncertainty limitations'), and it issues hard guardrails against inferring plane dimensions from a photo or reusing original-image GSD on a preview. It stops short of describing failure behavior when the reference is uncalibrated or the units mismatch.

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?

Four tight sentences, front-loaded with the action, then plan rules, photo rules, and output expectations in a logical order. Dense but every clause carries information; only slight terseness ('TL,TR,BR,BL' notation) risks misreading.

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 tool with no annotations, no output schema, and zero parameter descriptions, the definition covers purpose, preconditions, and return content. It leaves gaps on error conditions (uncalibrated page, unit mismatch), result units and precision, and the meaning of the uncertainty inputs the caller must supply.

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 0%, so the description must carry the load. It explains the two heavy branches well — page/unit matching for plans and the corner/width/height/coplanar/evidence bundle for photos — but says nothing about point_uncertainty, scale_uncertainty_mm, the target kind/parameter selection, or the evidence status values.

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 opens with a specific verb and object ('Measure two points on a hash-verified reference') and adds the scope boundary 'optionally compare with a model dimension without editing it.' That clearly separates it from mutating or calibration tools, though no sibling is named 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 gives concrete preconditions that branch by input type: plans need 'matching calibrated page and units,' photos need coplanar rectangle corners plus known width/height and control evidence. What is missing is an explicit pointer to the prerequisite step (e.g. calibrate_reference) and what to do when preconditions are unmet.

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