Skip to main content
Glama

truck_cost_per_mile

Read-only

$0.01 via x402: itemized trucking cost-per-mile + minimum profitable rate.

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": {
      "annual_miles": "<annual_miles>"
    },
    "name": "truck_cost_per_mile"
  }
}

Input Schema

NameRequiredDescriptionDefault
mpgNotruck fuel economy in miles per gallon
other_moNoother fixed costs per month in USD
tires_cpmNotire cost per mile in USD
x_paymentNosigned x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms
fuel_priceNodiesel price in USD per gallon
annual_milesYesmiles driven per year
insurance_moNoinsurance per month in USD
maintenance_cpmNomaintenance cost per mile in USD
truck_payment_moNotruck payment per month in USD

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / annual_miles / description
      Added value: +"miles driven per year"
    • addedInput schema / properties / fuel_price / description
      Added value: +"diesel price in USD per gallon"
    • addedInput schema / properties / insurance_mo / description
      Added value: +"insurance per month in USD"
    • addedInput schema / properties / maintenance_cpm / description
      Added value: +"maintenance cost per mile in USD"
    • addedInput schema / properties / mpg / description
      Added value: +"truck fuel economy in miles per gallon"
    • addedInput schema / properties / other_mo / description
      Added value: +"other fixed costs per month in USD"
    • addedInput schema / properties / tires_cpm / description
      Added value: +"tire cost per mile in USD"
    • addedInput schema / properties / truck_payment_mo / description
      Added value: +"truck payment per month in USD"
    • addedInput schema / properties / x_payment / description
      Added value: +"signed x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms"
  2. Added
  3. Removed
  4. Added
  5. Removed
  6. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds genuinely new behavioral context by disclosing a monetary cost ($0.01 via x402), which the annotations do not convey, but it omits the two-step payment handshake (the schema's x_payment field carries that) and says nothing about what the itemization contains.

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?

A single compact sentence with the price front-loaded ahead of the purpose, which is good prioritization for a paid tool. The trailing '+ minimum profitable rate' is slightly terse and could be misread as an input rather than an output.

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?

With no output schema, the description is the only place to learn what the response looks like, and 'itemized' plus 'minimum profitable rate' only hints at it. For a nine-parameter financial calculation tool, the definition is adequate but leaves the return shape and default assumptions underspecified.

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% across all nine parameters, including the critical x_payment explanation for the terms-first-then-pay flow. The description contributes no additional parameter meaning beyond what the schema already documents, so the baseline of 3 applies.

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 names a concrete output: an itemized trucking cost-per-mile figure plus a minimum profitable rate. The verb is implicit (compute/calculate) rather than stated, and there is no differentiation from the sibling truck_load_profit, which an agent could plausibly confuse with this one.

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 prerequisites beyond the price tag, and no mention of when an agent should prefer truck_load_profit instead. The only implicit usage signal is that the tool is paid, which does not tell the agent under what circumstances to spend the $0.01.

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.