Skip to main content
Glama

truck_load_profit

Read-only

$0.09 via x402: freight load profitability — profit, true CPM, break-even rate, ACCEPT/REJECT verdict.

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": {
      "rate": "<rate>",
      "miles": "<miles>"
    },
    "name": "truck_load_profit"
  }
}

Input Schema

NameRequiredDescriptionDefault
mpgNotruck fuel economy in miles per gallon
rateYesload rate in USD
milesYesloaded miles
deadheadNoempty miles to the pickup
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
cost_per_mile_fixedNofixed cost per mile in USD
cost_per_mile_variableNovariable cost per mile in USD

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / cost_per_mile_fixed / description
      Added value: +"fixed cost per mile in USD"
    • addedInput schema / properties / cost_per_mile_variable / description
      Added value: +"variable cost per mile in USD"
    • addedInput schema / properties / deadhead / description
      Added value: +"empty miles to the pickup"
    • addedInput schema / properties / fuel_price / description
      Added value: +"diesel price in USD per gallon"
    • addedInput schema / properties / miles / description
      Added value: +"loaded miles"
    • addedInput schema / properties / mpg / description
      Added value: +"truck fuel economy in miles per gallon"
    • addedInput schema / properties / rate / description
      Added value: +"load rate 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

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds genuinely useful context beyond them — an explicit $0.09 x402 price and the returned outputs including a verdict — but it omits the two-step payment handshake (that a first call returns terms) and any cost defaults, which matters for a metered tool.

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 front-loaded line with the price first and the output set enumerated — no wasted words. The density of shorthand ('true CPM', 'ACCEPT/REJECT verdict') is slightly compressed but still readable.

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 an 8-parameter tool with full schema coverage and no output schema, the description efficiently substitutes by naming the four returned values. The main residual gap is that the x402 payment sequencing is only found in the x_payment parameter description, not the top-level prose.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% with 8 well-documented parameters including the x_payment flow, so the schema carries the burden and baseline 3 applies. The description hints at the domain semantics ('true CPM', break-even) that give the cost parameters meaning but adds no per-parameter detail of its own; the payment-flow note in the schema is what fills the key gap.

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 the resource (freight load profitability) and enumerates the concrete outputs — profit, true CPM, break-even rate, ACCEPT/REJECT verdict — so an agent knows exactly what it gets back. It does not, however, distinguish itself from the sibling truck_cost_per_mile, and there is no explicit verb.

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 is only implied: the tool is for evaluating whether a given load is worth running, and the '$0.09 via x402' prefix signals it is paid. There is no statement of when to prefer this over truck_cost_per_mile or when not to call it, leaving the agent to infer the choice.

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.