Skip to main content
Glama

BusCalc — Business & Trade Calculations

Emergency contracting margin protection

buscalc_emergency_contracting_margin_protection
Read-onlyIdempotent

Calculate bid margin, break-even thresholds, and 27 combinations of explicit low, middle and high fuel prices, standby hours and delay days. Use funding for dated cash requirements, calibrate-hours for a productive-hours range from matched prior forecasts and actual hours, or dispatch-review to evaluate a bid and explicitly supplied readiness and source statuses. Use the emergency source lookup for current source snapshots. Dispatch review is advisory. Calculations return a replayable receipt. 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": {
        "bid": {
          "gallons": 400,
          "revenue": 20000,
          "baseCost": 12000,
          "idleRate": 100,
          "delayDays": 1,
          "delayRate": 1500,
          "idleHours": 10,
          "dieselPrice": 4
        },
        "ranges": {
          "delayDays": [
            1,
            2,
            3
          ],
          "idleHours": [
            10,
            12,
            30
          ],
          "dieselPrice": [
            3.25,
            4,
            4.75
          ]
        }
      }
    },
    "name": "buscalc_emergency_contracting_margin_protection"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitsNo
inputsYes
modelVersionNo

Output Schema

NameRequiredDescriptionDefault
unitsNo
inputsYes
receiptYes
resultsYes
sourceURLYes
calculatorYes
modelVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is covered. The description adds two real behavioral notes: dispatch review is advisory, and calculations return a replayable receipt. However, the trailing boilerplate about REST fields and 'follow its required fields' adds confusion rather than behavioral context, and it says nothing about how ambiguity in the supplied check statuses affects results.

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?

Purpose and mode routing are front-loaded and efficient, but the tail contains low-value boilerplate ('Follow its required fields and exact choices') and an opaque negative rule about a REST calculator field that an MCP agent has no way to interpret. 'Supply units or modelVersion only when listed in inputSchema' is self-referential filler, since units is an empty object.

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?

An output schema exists, so return values need no explanation, and optional lookup fields carry inline schema descriptions. Still, for a tool with four distinct modes and heavy nesting, the description gives no guidance on combining modes, on which optional dispatch-review checks materially change the advisory outcome, or on the units field's empty-object restriction.

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?

Top-level schema description coverage is 0%, and the description must carry meaning for a deeply nested four-way oneOf. It does explain what each mode's payload is for (funding events, calibrate-hours forecast/calibration/validation, dispatch-review bid/ranges/checks) and that fields belong under inputs. But it never explains required numeric fields like marginFloor, contingencyCash, schedule.minimumPercent, or the confirmed/unconfirmed/conflict check enums, leaving much semantic weight to 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 first sentence names specific verbs and outputs: calculate bid margin, break-even thresholds, and 27 combinations across fuel price, standby hours, and delay days. It also enumerates the alternative modes (funding, calibrate-hours, dispatch-review). It never distinguishes this tool from break-even-oriented siblings such as buscalc_break_even_sales or buscalc_markup_vs_margin, so an agent cannot fully rule those out from the description alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Each mode is tied to a concrete situation: funding for dated cash requirements, calibrate-hours for a productive-hours range from matched prior forecasts and actual hours, dispatch-review for evaluating a bid with supplied readiness/source statuses. It also routes source-snapshot needs to buscalc_emergency_source_lookup. There is no explicit when-not guidance or exclusion against the break-even siblings.

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