Skip to main content
Glama
de-niji

owntracks-mcp

by de-niji

get_distance

Read-onlyIdempotent

Calculate straight-line distance from latest OwnTracks positions to a target point or configured home. Answer how far a user or device is from a place.

Instructions

Straight-line distance from the latest position(s) to a point (or to the configured home).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
latNoTarget latitude. Omit both to use home.
lonNoTarget longitude. Omit both to use home.
userNoOwnTracks user name. "me" = configured default user. Omit for everyone (where supported).
deviceNoDevice name of that user. Omit if the user has only one device.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint=false, and idempotentHint, covering safety. The description adds that the distance is straight-line (not route) and based on latest position(s), which is useful behavioral context but still leaves return format, error behavior, and multi-device semantics unstated.

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?

A single, front-loaded sentence that states exactly what the tool does with no filler. Every phrase contributes to understanding the operation.

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 a full output schema and annotations covering safety, the description needs only to convey the core concept. It does so adequately for a read-only computation, though it could briefly clarify how multiple latest positions are combined.

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 each parameter (lat, lon, user, device) is fully documented in the schema. The description adds no parameter-specific syntax or meaning beyond what the schema already provides, so the baseline 3 is appropriate.

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 operation: compute straight-line distance from latest positions to a target point or home. The resource and calculation type are clear, but the description does not explicitly differentiate it from siblings like get_last_location or get_location_history.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives, nor any prerequisites or exclusions. The phrase 'or to the configured home' implies one usage mode but does not route the agent among the sibling tools.

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