Skip to main content
Glama

compute_stats

Recalculate a route's distance, elevation gain/loss, altitude, and duration using custom speeds or walker profiles (famille, moyen, sportif) for accurate hiking stats.

Instructions

Recalcule distance, D+/D-, altitudes et durée avec d'autres paramètres.

    `walker` applique un profil prédéfini qui remplace les vitesses (famille : 3 km/h et
    200 m/h en montée ; moyen : 4 km/h et 300 m/h ; sportif : 5 km/h et 450 m/h).
    Les paramètres de lissage par défaut conviennent à la plupart des cas.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
step_mNo
walkerNo
flat_kmhNo
route_idYes
up_m_per_hNo
threshold_mNo
down_m_per_hNo
smooth_window_mNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
statsYes
n_poisNo
sourceYes
n_pointsYes
route_idYes
warningsYes
validation_statusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the walker preset speeds (3/4/5 km/h flat, 200/300/450 m/h uphill) and that default smoothing is broadly adequate, which is genuine behavioral context. However it never states whether the recomputation is persisted (write) or read-only, nor permission requirements, leaving key traits undisclosed.

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?

Purpose is front-loaded and the walker profile detail is compact and relevant, with no filler sentences. Formatting is slightly noisy with the leading indentation and blank line, but the content is tight.

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?

Although an output schema exists (so return values need no explanation), the description is thin for a tool with 8 parameters at 0% coverage and no annotations. The relationship between walker and the explicit speed parameters, and whether recalculation overwrites stored route data, are left unresolved.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 8 parameters, so the description must compensate. It explains `walker` and its effect on the speed parameters, and mentions smoothing defaults, but says nothing about flat_kmh, up_m_per_h, down_m_per_h, threshold_m, step_m, smooth_window_m, or route_id, leaving most parameters semantically opaque.

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 (recalculates/recalcule) and concrete resources (distance, D+/D-, altitudes, duration), so the agent knows exactly what is computed. It does not differentiate itself from siblings like validate_route or compare_routes, but the core purpose is unambiguous.

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?

The phrase 'avec d'autres paramètres' vaguely implies you call it to recompute with different settings, but there is no explicit when-to-use, when-not, or named alternative. The note that default smoothing suits most cases is a hint, not real usage guidance.

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