Skip to main content
Glama

BusCalc — Business & Trade Calculations

Credit card surcharge limit check

buscalc_credit_card_surcharge_limit_check
Read-onlyIdempotent

Check the most you can add as a credit card surcharge given your cost, the card network cap and any state cap, and what the customer pays. Use this tested BusCalc worksheet when the task matches its inputs and scope. Returns named results, units, formula, assumptions, method version, reference-value notes (official figure or your figure, with source and effective date), a check link and a source-page URL. Official reference values are prefilled when omitted; supply every other figure from the user's records. Percent fields take percent numbers. No figures 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": {
        "cost": 2.9,
        "chosen": 3.5,
        "ticket": 100
      }
    },
    "name": "buscalc_credit_card_surcharge_limit_check"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
rowsNo
notesNoReference-value notes first, then model notes and the standard limit statement.
titleNo
unitsNo
inputsYes
columnsNo
formulaNo
receiptYes
resultsYes
sealURLNoWhere a saved record of this result can be sealed with an independent timestamp.
checkURLNoLink that replays this calculation on https://buscalc.com/sumtru/verify/. Null when the inputs hold free-form text or the link would be too long.
currencyNo
sourceURLYes
calculatorYes
assumptionsNo
modelVersionYes
referenceValuesNoOne entry per official reference value in play: the official figure, the figure used, status official or user, source, effective date and the note text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false, idempotentHint=true and destructiveHint=false, and the description is consistent with them by stating no figures are looked up and no private projects are accessed. It adds useful behavior beyond the annotations: official reference values are prefilled when omitted, the networkCap default of 3% can be overridden and the result notes say which was used, and a modelVersion mismatch is rejected. The return-shape sentence is largely redundant given an output schema exists.

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?

The purpose is front-loaded in the opening sentence and the operational constraints follow in a logical order. Some sentences are boilerplate filler, notably 'Use this tested BusCalc worksheet when the task matches its inputs and scope' and 'Follow its required fields and exact choices,' which consume space without adding information.

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?

With annotations covering the safety profile and an output schema covering return values, the description needs only to explain input expectations, reference-value defaults and version pinning, all of which it does. The main gap is that it never states the conditional relationship requiring stateCap when state='cap', leaving that to the schema's if/then block.

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?

The nested input parameters are already documented in the schema with units, ranges, defaults and enum meanings, so the low top-level coverage (33%) is less damaging than it appears. The description adds real structural guidance the schema cannot express well: put tool fields inside 'inputs', supply 'units' or 'modelVersion' only when listed, and don't pass the REST calculator field in MCP arguments. It does not elaborate on the conditional stateCap requirement, which is the most error-prone parameter interaction.

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 gives a specific verb and resource: it computes the maximum allowable credit card surcharge from your cost, the network cap, any state cap, and the customer-paid amount. That is concrete enough to distinguish it from unrelated BusCalc siblings. It stops short of naming a sibling or explicitly delimiting scope against other surcharge/payment-cost tools.

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 instruction is 'Use this tested BusCalc worksheet when the task matches its inputs and scope,' which is circular and gives no when-to-use or when-not-to-use criteria. There is no mention of alternatives or prerequisites (e.g., that the state rule must be checked externally first), so the agent must infer applicability from the input names alone.

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