Skip to main content
Glama
Tetragon
by wckdboy

calibrate_reference

Calculate exact scale from two image or PDF points and a known millimetre distance; rectify perspective photos first before using a single scale.

Instructions

Record two image/paper points, page number, and a known distance in mm. Returns the exact scale. Perspective photographs require rectification before using a single scale.

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>",
      "expected_revision": "<expected_revision>",
      "calibration": "<calibration>"
    },
    "name": "calibrate_reference"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes
calibrationYes
reference_idYes
expected_revisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the return value ('exact scale') and a valid-input caveat, but frames the call as a read-like operation while the schema implies a persisted mutation gated by expected_revision — nothing is said about revision conflicts, overwriting an existing calibration, or persistence of the note/page fields.

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?

Three short sentences with the operation, its output, and the key caveat front-loaded; no filler. It could be tightened further only by folding the rectification warning into a single clause.

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

Completeness2/5

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

This is a four-parameter, all-required mutation with a revision precondition, no annotations, no output schema, and no parameter descriptions. The description covers the geometric payload but omits the concurrency parameter, unit selection, and what happens to prior calibration data — too much is left for the agent to infer.

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% at the top level, so the description is doing real work by mapping 'two points, page number, known distance in mm' onto start/end/page/distance_mm. It leaves project_id, reference_id, expected_revision and the pixel-vs-pdf_point unit enum entirely unexplained, so it only partly compensates for the coverage gap.

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 specific verb-and-resource pair ('Record two image/paper points... known distance in mm') plus the outcome ('Returns the exact scale'), so an agent can tell what the tool accomplishes. It does not differentiate itself from nearby siblings such as import_reference or measure_reference_distance, which is the only thing keeping it from a 5.

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

Usage Guidelines3/5

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

There is one genuine usage condition: 'Perspective photographs require rectification before using a single scale,' which tells the agent when this tool's result would be invalid. However, there is no guidance on when to calibrate versus import a reference or measure a distance, and no mention of prerequisites such as the required expected_revision.

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