Skip to main content
Glama

route_matrix

Compute a distance/duration matrix between waypoint sets. ($2.00)

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": {
      "origins": "<origins>",
      "destinations": "<destinations>"
    },
    "name": "route_matrix"
  }
}

Input Schema

NameRequiredDescriptionDefault
originsYes
paymentNoOptional payment: x402 base64 payment payload, or MPP voucher (mpp.v1...). Without it, the tool returns a payment_required challenge.
destinationsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it discloses only a flat price of $2.00. It says nothing about waypoint-count limits, error behavior, latency, or the fact that a paid call may return a payment_required challenge (that detail lives only in the schema's payment parameter). The cost signal is genuinely useful, but it is the sole behavioral fact provided.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with no filler and the core verb front-loaded, so nothing is wasted. However, the brevity crosses into under-specification for a matrix API with three parameters and no output schema.

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?

Given zero annotations, no output schema, and two undocumented array parameters, the description is far too thin to let an agent invoke this confidently. It omits the payment flow that the schema hints at, the shape of the inputs, and anything about what the matrix response contains.

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 33%: origins and destinations are untyped arrays of 'any' with no element description, and only payment is documented in the schema. The phrase 'waypoint sets' weakly implies these are lists of waypoints, but there is no indication of element format (coordinates, addresses, place IDs) or of asymmetric origin/destination semantics. With low coverage, the description should compensate and does not.

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?

Uses a specific verb and resource: 'Compute a distance/duration matrix between waypoint sets.' An agent can tell this is a matrix computation rather than a single-route lookup (e.g. route_hgv) or a cost estimate. It stops short of naming or contrasting against any sibling, so it is clear but not differentiating.

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 stated preconditions, and no mention of when a matrix call is preferable to calling a single-route tool repeatedly. The only extra information is a price tag, which does not help the agent decide between alternatives.

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