Skip to main content
Glama

BusCalc — Business & Trade Calculations

Time duration

buscalc_time_duration
Read-onlyIdempotent

Find time between two clock readings, including an explicit end-day offset and optional excluded minutes. 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": {
        "end": "17:15",
        "start": "08:30",
        "endDays": 0,
        "excluded": 30
      }
    },
    "name": "buscalc_time_duration"
  }
}

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. Changed12 schema fields changed
    • addedInput schema / properties / inputs / properties / endDays / anyOf
      Added value: +[
      +  {
      +    "maximum": 36500,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "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 / endDays / description
      Previous value: -"End time is this many calendar days after start. Use matching records or an explicitly identified assumption for end time is this many calendar days after start. Unknown is not the same as zero."New value: +"End time is this many calendar days after start. Use matching records or an explicitly identified assumption for end time is this many calendar days after start. Unknown is not the same as zero. 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 / endDays / maximum
      Removed value: -36500
    • removedInput schema / properties / inputs / properties / endDays / minimum
      Removed value: -0
    • removedInput schema / properties / inputs / properties / endDays / type
      Removed value: -"integer"
    • addedInput schema / properties / inputs / properties / endDays / x-buscalc-numeric-string
      Added value: +true
    • addedInput schema / properties / inputs / properties / excluded / 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 / excluded / description
      Previous value: -"Minutes to exclude from the duration. Use matching records or an explicitly identified assumption for minutes to exclude from the duration. Unknown is not the same as zero."New value: +"Minutes to exclude from the duration. Use matching records or an explicitly identified assumption for minutes to exclude from the duration. Unknown is not the same as zero. 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 / excluded / maximum
      Removed value: -1000000000000
    • removedInput schema / properties / inputs / properties / excluded / minimum
      Removed value: -0
    • removedInput schema / properties / inputs / properties / excluded / type
      Removed value: -"number"
    • addedInput schema / properties / inputs / properties / excluded / x-buscalc-numeric-string
      Added value: +true
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "inputs": {
      +      "end": "17:15",
      +      "endDays": 0,
      +      "excluded": 30,
      +      "start": "08:30"
      +    }
      +  }
      +]
  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

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuine value by disclosing the return payload (named results, units, formula, assumptions, method version, source-page URL) and that a modelVersion mismatch is rejected (visible in the schema, but the description reinforces it). It does not explain edge behavior such as what happens when the end time precedes the start time with endDays=0.

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 purpose and return-payload sentences are correctly front-loaded and earn their place. The remaining sentences are weakly relevant operational boilerplate ("Put tool fields inside inputs", "Do not pass the REST calculator field inside MCP arguments") that read as prompt instructions rather than tool behavior and dilute the signal.

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 structure need not be spelled out, and the description is defensible for a read-only calculator. However, for a duration tool the key unknowns remain unaddressed: result units (minutes?), how `excluded` interacts with the computed span, and overnight handling when endDays is omitted. The purpose, exclusions and versioning contract are covered, so it is adequate but not complete.

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 coverage is only 33%, but the nested inputs properties (start, end, endDays, excluded) carry their own detailed descriptions, so the burden is partly met by the schema. The description restates endDays and excluded in prose ("explicit end-day offset", "optional excluded minutes") but adds no unit or precedence detail, and it never explains the anomalous empty `units` object, instead deferring with "Supply units or modelVersion only when listed in inputSchema."

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?

"Find time between two clock readings, including an explicit end-day offset and optional excluded minutes" gives a specific verb (find/calculate) plus the resource (elapsed time) and names the two distinguishing modifiers. It is clearly separable from siblings like buscalc_feet_and_inches or the financial/price tools, though it never explicitly names an alternative to route against.

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?

"Use this tested BusCalc worksheet when the task matches its inputs and scope" is circular and offers no real when-to-use condition or prerequisite. The only concrete guidance is negative scope (no prices, no omitted costs, no private projects), which weakly implies this is a pure arithmetic tool rather than a lookup.

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