Skip to main content
Glama

Nova Scotia HST calculator

hst-calc
Read-only

Adds 14% NS HST to a subtotal, or splits a tax-included total. Confirm the rate with CRA. Returns { subtotalCents, hstCents, totalCents, rate }. Price: 1 credit (1 credit = 1 US cent) per successful call; input that does not match the schema is rejected before billing.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "amountCents": "<amountCents>"
    },
    "name": "hst-calc"
  }
}

Input Schema

NameRequiredDescriptionDefault
rateNoHST rate as a fraction (0.14 is the Nova Scotia rate).
includedNoamountCents already includes HST: split it instead of adding to it.
amountCentsYesPre-tax subtotal, or the tax-included total when included is true. Integer CAD cents.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description is consistent with that — nothing implies side effects. It adds genuinely useful context beyond the annotations: the exact return keys, the per-call credit price with the definition of a credit, and that schema-invalid input is rejected before billing. It does not mention rounding behavior for the cent math, which is the one meaningful gap for a money tool.

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

Conciseness5/5

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

Three short sentences, front-loaded with the operation, followed by the caveat, the return shape, and the billing terms. Nothing is redundant and each sentence carries information an agent would otherwise have to guess.

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 no output schema, the description compensates by enumerating the four returned fields, and it covers cost and validation failure. For a three-parameter calculator with annotations covering the safety profile, that is nearly complete; only rounding/cents-precision behavior is left unstated.

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 100%, so amountCents, rate, and included are already fully documented in the schema, including the 0.14 Nova Scotia default. The description only echoes the rate and the two modes without adding format or precision guidance, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/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 ('Adds 14% NS HST to a subtotal, or splits a tax-included total') and names both operating modes. No sibling in the catalog does tax arithmetic, and the two modes are stated up front so an agent can immediately tell whether this tool is applicable.

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?

It clearly distinguishes the two usage modes (adding tax vs. splitting a tax-included total) and adds a caveat to confirm the rate with CRA, which tells the agent the default is a jurisdiction assumption rather than a guarantee. It lacks any explicit when-not-to-use or alternative-tool guidance, which keeps it short of a 5.

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