Skip to main content
Glama

BusCalc — Business & Trade Calculations

Truck load offer comparison

buscalc_truck_load_offer_comparison
Read-onlyIdempotent

Compare several loads, including waiting, on the same cost basis and rank them by profit per truck day, total profit or profit per mile. Use this tested BusCalc worksheet when the task matches its inputs and scope. Returns named results, units, formula, assumptions, method version and a source-page URL. No prices or omitted costs are looked up; no private projects or purchases are accessed. Put tool fields inside inputs. Supply units or modelVersion only when listed in inputSchema. Follow its required fields and exact choices. Do not pass the REST calculator field inside MCP arguments.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "inputs": {
        "mpg": 6.5,
        "offers": [
          {
            "days": 2,
            "empty": 95,
            "extra": 45,
            "label": "Offer 1",
            "loaded": 640,
            "revenue": 2010
          },
          {
            "days": 1,
            "empty": 30,
            "extra": 20,
            "label": "Offer 2",
            "loaded": 410,
            "revenue": 1380
          },
          {
            "days": 3,
            "empty": 160,
            "extra": 60,
            "label": "Offer 3",
            "loaded": 1020,
            "revenue": 2900
          },
          {
            "days": 1,
            "empty": 0,
            "extra": 0,
            "label": "Wait for a better load (no revenue)",
            "loaded": 0,
            "revenue": 0
          }
        ],
        "rankBy": "day",
        "driverCpm": 0.62,
        "fuelPrice": 3.85,
        "fixedPerDay": 210,
        "variableCpm": 0.28
      }
    },
    "name": "buscalc_truck_load_offer_comparison"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitsNo
inputsYes
modelVersionNoOptional expected method version; a mismatch is rejected.

Output Schema

NameRequiredDescriptionDefault
unitsNo
inputsYes
receiptYes
resultsYes
sourceURLYes
calculatorYes
modelVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already establish that this is a read-only, idempotent, closed-world, non-destructive calculation. The description adds useful behavioral context beyond annotations: it returns named results, units, formula, assumptions, method version, and a source-page URL, and it explicitly states that no prices or omitted costs are looked up and no private projects or purchases are accessed.

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

Conciseness3/5

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

The first sentence is well front-loaded and precise. However, the middle contains vague filler such as "when the task matches its inputs and scope" and "Follow its required fields and exact choices," which do not add actionable information and dilute the otherwise useful input-structure guidance.

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?

The tool has a complex nested input, an output schema, and strong annotations. The description covers return contents, external lookup limits, nested input placement, optional fields, and method version handling, which is enough for an agent to call it correctly. It could still say more about how the waiting/no-revenue offer is interpreted, but the overall coverage is solid.

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 only 33%, so the description needs to compensate. It does clarify that tool fields go inside the `inputs` object, that `units` or `modelVersion` should be supplied only when listed in the schema, and that the REST calculator field must not be passed, which is useful. However, it adds little explanation of the individual cost, mileage, or offer fields beyond what the schema already says.

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 verb and resource: compare several loads, including waiting, on the same cost basis and rank by profit per truck day, total profit, or profit per mile. This is a clear analytical operation, though it does not explicitly distinguish itself from the sibling profit_and_walk_away_rate tool.

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?

The only usage guidance is "Use this tested BusCalc worksheet when the task matches its inputs and scope," which is circular and does not explain when to choose this tool over related truck-profit tools. It gives ranking choices but no concrete when-to-use or when-not-to-use conditions.

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