Skip to main content
Glama

get_truck_corridor

Truck-relevant restrictions, clearances and events along a straight corridor between two points. Needs a plan with truck data.

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": {
      "from_lat": "<from_lat>",
      "from_lng": "<from_lng>",
      "to_lat": "<to_lat>",
      "to_lng": "<to_lng>"
    },
    "name": "get_truck_corridor"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoresults to return, default 25, max 100
to_latYesdestination latitude
to_lngYesdestination longitude
from_latYesorigin latitude
from_lngYesorigin longitude
buffer_kmNocorridor half-width in km
jurisdictionNorestrict to one jurisdiction

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations present, the description carries the full behavioral burden. It usefully discloses that the corridor is a straight line between two points rather than a road-network route, which is a real behavioral trait, but it says nothing about permissions, whether results are read-only, ordering, or what counts as "truck-relevant".

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?

Two short sentences, front-loaded with the resource description and followed by the prerequisite. No wasted wording, though the second sentence is cryptic enough that brevity shades into under-specification.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Seven parameters with full schema coverage and no output schema, so the description does not need to explain returns. However, for a spatial query tool the description leaves unclear how the corridor is searched (feature centers vs. geometry intersection), what the default corridor width is when buffer_km is null, and what the "plan with truck data" prerequisite concretely requires.

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 all seven parameters are already documented, giving a baseline of 3. The description only implicitly reinforces the from/to pair via "between two points" and adds nothing about buffer_km behavior, jurisdiction filtering, or the relationship between limit and corridor size.

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 resource set (truck-relevant restrictions, clearances and events) and the geometric scope (a straight corridor between two points), which is more precise than the bare name. It stops short of naming siblings like plan_truck_route or search_events, so the agent must infer the boundary itself.

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

Usage Guidelines3/5

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

"Needs a plan with truck data" is a prerequisite statement but is ambiguous — it is unclear whether a plan must already exist, be passed in, or be configured elsewhere, and no such plan parameter appears in the schema. No explicit when-to-use or when-not-to-use guidance distinguishes this from plan_truck_route or search_events.

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