Skip to main content
Glama

Lane Cost freight rates

Diesel cost per mile by truck type

get_fuel_cost_per_mile
Read-onlyIdempotent

What diesel costs each truck type per mile at this week's price: assumed miles per gallon, fuel per mile, fuel per 1,000 miles and fuel's share of the all-in rate. For the US average, or for one state, city or ZIP.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_fuel_cost_per_mile"
  }
}

Input Schema

NameRequiredDescriptionDefault
placeNoA state ("TX"), a city and state ("Chicago, IL"), or a 5-digit ZIP. Leave out for the US average.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description adds genuinely new behavioral context: pricing is tied to 'this week's price' and results are model-derived from an assumed MPG, which warns the agent these are estimates rather than quoted costs.

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 output list and the temporal qualifier are front-loaded in one dense sentence, with geographic scope in a short follow-up fragment. Nothing is filler, though the trailing fragment reads slightly clipped rather than purposeful.

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 single-optional-parameter, read-only tool with no output schema, the description supplies what the agent needs: what is computed, that the price is current-week, and what scope the place parameter accepts. Only the absence of explicit sibling routing keeps it short of complete.

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 coverage is 100% and the single optional 'place' parameter is fully documented with format examples and the US-average default. The description's 'US average, or for one state, city or ZIP' merely restates the schema, adding no new syntax or validation detail.

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 gives a specific resource and derived metric ('diesel cost per truck type per mile') and enumerates the computed outputs (MPG assumption, fuel per mile, fuel per 1,000 miles, share of all-in rate). It implicitly separates this from a raw price lookup like get_diesel_price, but never names or contrasts a sibling explicitly.

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?

'For the US average, or for one state, city or ZIP' establishes the applicable geographic scopes and the default (omit place). It does not say when to prefer this over get_diesel_price or estimate_lane_fuel_cost, so the routing decision is left to inference.

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