Skip to main content
Glama

logistics_route_optimize

Read-only

Multi-stop route optimizer — Offline traveling-salesman route order for up to 40 stops. Give stops= as lat,lon pairs separated by ; plus optional names= (pipe-separated), start= (1-based stop number, default 1), end= (fixed last stop), roundtrip=yes, speed_kmh= (default 70), road_factor= (default 1.3) and service_min= per stop. Returns the optimized order (nearest-neighbor plus 2-opt), legs with km/miles, total vs given-order distance and savings, estimated drive and total hours, and a Google Maps directions link. Price: $0.004 USDC (Base, via x402).

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": {
      "stops": "<stops>"
    },
    "name": "logistics_route_optimize"
  }
}

Input Schema

NameRequiredDescriptionDefault
stopsYese.g. 36.1627,-86.7816;35.9606,-83.9207;35.1495,-90.0490;35.0456,-85.3097

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint, openWorldHint, destructiveHint), the description discloses key behavioral traits: an offline traveling-salesman algorithm (nearest-neighbor plus 2-opt), a 40-stop limit, the return contents (optimized order, legs, savings, hours, Maps link), and pricing ($0.004 USDC via x402). This adds substantial value, though it does not mention error handling or partial failures.

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?

The description is front-loaded with the core purpose, followed by dense but necessary operational details. It is a single long sentence with no filler, though a more structured format (e.g., bullet points for parameters) would improve readability.

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 tool with no output schema, the description explains the return values (optimized order, legs, total vs given-order distance, hours, Maps link) and key constraints (40-stop limit, pricing). It is largely complete, missing only edge-case behavior such as handling of invalid inputs or stops beyond the limit.

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

Parameters4/5

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

The schema only defines the required 'stops' parameter with an example, but the description explains the format for 'stops' (lat,lon pairs separated by ;) and introduces several optional parameters (names, start, end, roundtrip, speed_kmh, road_factor, service_min) that are absent from the schema. While this mismatch could confuse, it meaningfully supplements the one documented parameter.

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 states a specific verb and resource: 'Multi-stop route optimizer — Offline traveling-salesman route order for up to 40 stops.' This clearly distinguishes it from a generic routing tool, though it does not explicitly contrast it with siblings like logistics_route_brief.

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 description gives operational instructions (how to format stops, optional names, etc.) but never states when to use this tool versus alternatives, nor does it name any sibling tool for comparison. The agent must infer the appropriate context.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources