Skip to main content
Glama

BusCalc — Business & Trade Calculations

Fleet cost per mile

buscalc_fleet_cost_per_mile
Read-onlyIdempotent

Add your vehicle operating, ownership and driver costs, then divide by productive miles for the same period. 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. Supply units.distance explicitly as mi or km. For miles, use units: {"distance":"mi"}. 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": {
      "units": {
        "distance": "mi"
      },
      "inputs": {
        "costs": [
          {
            "amount": 4000
          }
        ],
        "distance": 5000
      }
    },
    "name": "buscalc_fleet_cost_per_mile"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitsYes
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. Changed12 schema fields changed
    • addedInput schema / properties / inputs / properties / costs / items / properties / amount / anyOf
      Added value: +[
      +  {
      +    "maximum": 1000000000000,
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "pattern": "^\\s*(?:[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][+-]?\\d+)?|0[xX][\\da-fA-F]+|0[bB][01]+|0[oO][0-7]+)\\s*$",
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / inputs / properties / costs / items / properties / amount / description
      Previous value: -"Amount for this cost in the stated period. Matching invoice, quote, statement, bookkeeping record or explicit budget amount for cost amount. Use the stated period and exclude amounts already counted in another field. Zero means intentionally excluded/not incurred, not unknown."New value: +"Amount for this cost in the stated period. Matching invoice, quote, statement, bookkeeping record or explicit budget amount for cost amount. Use the stated period and exclude amounts already counted in another field. Zero means intentionally excluded/not incurred, not unknown. JSON numbers are preferred. Nonblank strings are also accepted when JavaScript Number conversion yields a finite value meeting the same bounds and whole-number rules."
    • removedInput schema / properties / inputs / properties / costs / items / properties / amount / maximum
      Removed value: -1000000000000
    • removedInput schema / properties / inputs / properties / costs / items / properties / amount / minimum
      Removed value: -0
    • removedInput schema / properties / inputs / properties / costs / items / properties / amount / type
      Removed value: -"number"
    • addedInput schema / properties / inputs / properties / costs / items / properties / amount / x-buscalc-numeric-string
      Added value: +true
    • addedInput schema / properties / inputs / properties / distance / anyOf
      Added value: +[
      +  {
      +    "exclusiveMinimum": 0,
      +    "maximum": 1000000000000,
      +    "type": "number"
      +  },
      +  {
      +    "pattern": "^\\s*(?:[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][+-]?\\d+)?|0[xX][\\da-fA-F]+|0[bB][01]+|0[oO][0-7]+)\\s*$",
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / inputs / properties / distance / description
      Previous value: -"Productive / billable distance for that same period. From your trip log, enter only productive or billable miles (or select kilometres). Include all trip costs above, including empty travel. This worksheet specifically measures cost per productive distance; do not mistake it for cost per all odometer miles."New value: +"Productive / billable distance for that same period. From your trip log, enter only productive or billable miles (or select kilometres). Include all trip costs above, including empty travel. This worksheet specifically measures cost per productive distance; do not mistake it for cost per all odometer miles. JSON numbers are preferred. Nonblank strings are also accepted when JavaScript Number conversion yields a finite value meeting the same bounds and whole-number rules."
    • removedInput schema / properties / inputs / properties / distance / exclusiveMinimum
      Removed value: -0
    • removedInput schema / properties / inputs / properties / distance / maximum
      Removed value: -1000000000000
    • removedInput schema / properties / inputs / properties / distance / type
      Removed value: -"number"
    • addedInput schema / properties / inputs / properties / distance / x-buscalc-numeric-string
      Added value: +true
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "inputs": {
      +      "costs": [
      +        {
      +          "amount": 4000
      +        }
      +      ],
      +      "distance": 5000
      +    },
      +    "units": {
      +      "distance": "mi"
      +    }
      +  }
      +]
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "calculator": {
      +      "type": "string"
      +    },
      +    "inputs": {
      +      "type": "object"
      +    },
      +    "modelVersion": {
      +      "type": "string"
      +    },
      +    "receipt": {
      +      "properties": {
      +        "additionalResults": {
      +          "type": "object"
      +        },
      +        "assumptions": {
      +          "type": "string"
      +        },
      +        "calculator": {
      +          "type": "string"
      +        },
      +        "checks": {
      +          "items": {
      +            "properties": {
      +              "name": {
      +                "type": "string"
      +              },
      +              "status": {
      +                "enum": [
      +                  "passed"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "name",
      +              "status"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "formula": {
      +          "type": "string"
      +        },
      +        "inputs": {
      +          "type": "object"
      +        },
      +        "integrity": {
      +          "type": "string"
      +        },
      +        "methodVersion": {
      +          "type": "string"
      +        },
      +        "replay": {
      +          "type": "string"
      +        },
      +        "replayRequest": {
      +          "type": "object"
      +        },
      +        "results": {
      +          "items": {
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "schemaVersion": {
      +          "enum": [
      +            "1.0.0"
      +          ],
      +          "type": "string"
      +        },
      +        "scope": {
      +          "type": "string"
      +        },
      +        "sourceURL": {
      +          "format": "uri",
      +          "type": "string"
      +        },
      +        "status": {
      +          "enum": [
      +            "calculated"
      +          ],
      +          "type": "string"
      +        },
      +        "tool": {
      +          "type": "string"
      +        },
      +        "units": {
      +          "type": "object"
      +        },
      +        "warnings": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "schemaVersion",
      +        "status",
      +        "tool",
      +        "calculator",
      +        "methodVersion",
      +        "sourceURL",
      +        "formula",
      +        "assumptions",
      +        "inputs",
      +        "units",
      +        "results",
      +        "replayRequest",
      +        "additionalResults",
      +        "checks",
      +        "warnings",
      +        "scope",
      +        "integrity",
      +        "replay"
      +      ],
      +      "type": "object"
      +    },
      +    "results": {
      +      "items": {
      +        "properties": {
      +          "label": {
      +            "type": "string"
      +          },
      +          "unit": {
      +            "type": "string"
      +          },
      +          "value": {
      +            "oneOf": [
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "type": "string"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "label",
      +          "value"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "sourceURL": {
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    "units": {
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "calculator",
      +    "modelVersion",
      +    "sourceURL",
      +    "inputs",
      +    "results",
      +    "receipt"
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world behavior, so the safety profile is covered. The description adds value beyond that by stating the return payload (named results, units, formula, assumptions, method version, source URL) and by clarifying that no prices are looked up and no private projects or purchases are touched. That materially tells the agent what it will and will not get back.

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 core operation is front-loaded in the first sentence, but the middle contains filler such as 'Use this tested BusCalc worksheet when the task matches its inputs and scope' and 'Follow its required fields and exact choices' that add no actionable information. The units instruction is repeated in two consecutive sentences. Trimming those would sharpen it without losing content.

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 three-parameter tool with a nested inputs object and an output schema, the description covers the essential risks: which distance to use, how to shape units, where to place fields, and what the response contains. Return-value explanation is redundant given the output schema but not harmful. Remaining gaps are minor details like the 20-row cost cap, which the schema already enforces.

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?

With schema description coverage at 33%, the description must compensate, and it does: it insists units.distance be supplied explicitly as mi or km, gives a literal example object, and states that tool fields belong inside inputs and that units/modelVersion are only supplied when listed. That resolves real ambiguity about the nested shape that the schema alone does not spell out. It stops short of explaining reportingPeriod semantics or the cost-row maxItems limit.

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 concrete computation: sum vehicle operating, ownership and driver costs and divide by productive distance for the same period. That is a specific verb-plus-resource statement an agent can match to a task. It does not name a sibling such as the per-hour equipment ownership tool, so differentiation is inferential rather than explicit.

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?

The only routing sentence, 'Use this tested BusCalc worksheet when the task matches its inputs and scope', is boilerplate that gives no real when-to-use condition. The one genuinely discriminating line is the warning not to confuse this with cost per all odometer miles, which tells the agent which distance figure to supply. No alternatives or prerequisites are named.

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