Skip to main content
Glama

Measure Distance

measure_distance

Measures the distance in Angstroms between two single-atom selections to support precise structural analysis.

Instructions

Measure the distance (Angstroms) between two single-atom selections.

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": {
      "atom1": "<atom1>",
      "atom2": "<atom2>"
    },
    "name": "measure_distance"
  }
}

Input Schema

NameRequiredDescriptionDefault
atom1YesSingle-atom selection.
atom2YesSingle-atom selection.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure; it does reveal the unit of measurement and that both selections must be single atoms. It does not state what happens if a multi-atom selection is supplied (error vs. centroid), nor whether it is a pure read of current frame state. Because an output schema exists, return format needn't be covered.

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?

One sentence, front-loaded with the verb and result, with the unit and input constraint packed in without waste. Nothing could be removed without losing information.

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?

For a two-parameter measurement tool with a fully described schema and an output schema, this covers the essentials. The only meaningful gap is error/precondition behavior for non-single-atom selections.

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% and both parameters are already documented as 'Single-atom selection.' The description reinforces the single-atom constraint and adds the output unit, but adds no syntax or format detail beyond the schema. Baseline 3 applies.

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?

States a specific verb (measure) and resource (distance) plus the unit (Angstroms) and the input constraint (two single-atom selections). This implicitly distinguishes it from siblings like measure_angle and measure_dihedral, though it does not name them explicitly.

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?

Usage is implied by the operation itself and by the 'single-atom selections' constraint, which tells the agent the preconditions. There is no explicit when-to-use versus when-to-use-an-alternative guidance (e.g., distance vs. angle vs. dihedral).

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