Skip to main content
Glama
nbrain-mena-logistics-wasl-dispatch

nbrain-mena-logistics-wasl-dispatch

calculate_wgs84_vincenty_dispatch_fare

Calculate precise WGS84 Vincenty distances between pickup and dropoff points and compute exact-decimal ride or delivery dispatch fares, including base fare, per-km rate, surge, and VAT.

Instructions

Compute 0.5mm-precision WGS84 Vincenty ellipsoidal distance and exact-Decimal ride/delivery dispatch fare.

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": {
      "pickup_lat": "<pickup_lat>",
      "pickup_lon": "<pickup_lon>",
      "dropoff_lat": "<dropoff_lat>",
      "dropoff_lon": "<dropoff_lon>"
    },
    "name": "calculate_wgs84_vincenty_dispatch_fare"
  }
}

Input Schema

NameRequiredDescriptionDefault
base_fareNo
pickup_latYes
pickup_lonYes
dropoff_latYes
dropoff_lonYes
per_km_rateNo
vat_rate_pctNo
surge_multiplierNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden, and it discloses only precision claims (0.5mm, exact-Decimal arithmetic). It never states that the tool is a pure side-effect-free computation, what units the distance is returned in, how rounding works, or what happens with invalid coordinates. Those are exactly the behaviors an agent needs before invoking an unannotated tool.

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?

A single front-loaded sentence with no filler; the verb and the two outputs come first. It is dense with precision jargon but nothing is redundant. Slight deduction because the density of qualifiers ("0.5mm-precision", "exact-Decimal") crowds out more actionable information.

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?

With 8 parameters, no annotations, and no output schema, the description should explain at minimum the return shape (does it return distance and fare together?) and the fare formula inputs. Instead it leaves the entire parameter and return contract to be reverse-engineered, which is inadequate for a tool of this complexity.

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 and it does not. base_fare, per_km_rate, vat_rate_pct, and surge_multiplier are never mentioned, and critical units are undefined (per_km_rate per km or per mile; vat_rate_pct as percent or fraction; surge_multiplier as factor or percent). Only the vague hint that "exact-Decimal" values are expected partially explains why all params are typed as strings.

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 ("Compute") and two concrete outputs (Vincenty ellipsoidal distance and dispatch fare) with the algorithm and coordinate system named. This clearly separates it from the sibling tools, which audit, reconcile, and validate rather than compute. It stops short of a 5 because it never frames the scope negatively (e.g. what it does not cover).

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?

There is no when-to-use guidance, no prerequisites (e.g. valid WGS84 coordinate ranges), and no mention of alternatives or when not to call it. The only signal is implicit: the name and description suggest distance/fare calculation for dispatch. An agent must infer the calling context entirely.

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