Skip to main content
Glama

Lane Cost freight rates

Fuel cost of a lane

estimate_lane_fuel_cost
Read-onlyIdempotent

Estimate the diesel a truck burns between two US places: road miles, gallons, fuel cost, fuel per mile and fuel's share of the lane's all-in estimate. Returns every truck type unless one is given. Diesel is priced at the average of the origin and destination states.

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": {
      "origin": "<origin>",
      "destination": "<destination>"
    },
    "name": "estimate_lane_fuel_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
originYesThe pickup place: a city and state such as "Chicago, IL", or a 5-digit ZIP. Lower 48 states only. A city alone picks the largest of that name; the result says which place was used.
equipmentNoTruck type. Leave out for all types.
destinationYesThe delivery place: a city and state such as "Chicago, IL", or a 5-digit ZIP. Lower 48 states only. A city alone picks the largest of that name; the result says which place was used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish this is a read-only, idempotent, non-destructive, non-open-world operation, so the bar is lower. The description still adds real behavioral context beyond them: the cost model ('Diesel is priced at the average of the origin and destination states') and the default scope ('Returns every truck type unless one is given'), both of which affect how results should be interpreted.

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

Conciseness5/5

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

Two compact sentences: the first front-loads what is returned, the second covers the equipment default and the pricing methodology. Every clause carries information an agent needs, with no filler or repetition of the name.

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?

With no output schema, the description correctly compensates by enumerating the returned figures (road miles, gallons, fuel cost, fuel per mile, fuel's share of the all-in estimate). The remaining gap is minor: currency/units of the cost figures and a note that values are estimates rather than booked charges are left implicit.

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 origin, destination and equipment are already fully documented, making 3 the baseline. The description contributes modestly by clarifying the equipment default (all truck types when omitted) and tying origin/destination to the diesel pricing method, but adds no format or unit detail beyond the schema.

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 uses a specific verb ('estimate') on a specific resource ('diesel a truck burns between two US places') and enumerates the returned quantities, so the agent knows this yields a per-lane bundle rather than a single price. It doesn't explicitly distinguish itself from the similar-sounding sibling get_fuel_cost_per_mile or from estimate_lane_rate, leaving a small ambiguity about which tool to pick.

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?

Usage context is implied by the origin/destination framing and by 'Returns every truck type unless one is given', which tells the agent the equipment parameter is optional and enumerates the default. However, there is no explicit when-to-use versus alternatives (e.g., use get_fuel_cost_per_mile when you only want the per-mile figure) and no stated exclusions beyond the schema's 'Lower 48 states only'.

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