Skip to main content
Glama

MaCalculatriceEnLigne

Calculate Canada Sales Tax

calculate_canada_sales_tax
Read-onlyIdempotent

Canadian sales taxes by province or territory (rates in force since 1 April 2025): GST (TPS) + QST (TVQ) in Quebec, GST only in Alberta and the territories, or the single HST (TVH) in Ontario and the Atlantic provinces. British Columbia, Manitoba and Saskatchewan are not covered. Computes tax and total from a pre-tax amount, or the pre-tax amount from a tax-included total (mode "reverse").

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": {
      "province": "<province>",
      "amount": "<amount>"
    },
    "name": "calculate_canada_sales_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoadd (default): pre-tax → total; reverse: total → pre-tax
amountYesAmount in CAD: pre-tax (mode "add") or tax-included (mode "reverse")
provinceYesProvince or territory code (QC = Quebec, ON = Ontario...)

Output Schema

NameRequiredDescriptionDefault
resultNoComputed result (fields depend on the tool).
sourceNoLegal or official source.
formulaNoMethod used.
reference_urlNomacalculatriceenligne.com page to share.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds genuinely non-obvious context: a rate validity date (1 April 2025) and the exact tax composition per region. Rounding/precision behavior is not mentioned, which is the only notable omission.

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?

Two sentences, zero filler, front-loaded with the tax-by-region mapping followed by the computation options. The coverage exclusions are placed before the mode explanation, which is the right priority order for a caller.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description need not describe return values, and annotations cover the safety profile. For a three-parameter, fully described calculator, the definition supplies all remaining decision-relevant information (region coverage, rate vintage, direction of computation).

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 coverage is 100% and both enums are documented in the schema, including the add/reverse meaning and the amount interpretation. The description restates those mode semantics rather than adding new parameter-level detail, so baseline 3 is appropriate despite the clarity.

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 ('Computes tax and total') and resource ('Canadian sales taxes by province or territory'), and enumerates exactly which taxes apply where (GST+QST in QC, GST only in AB/territories, HST in ON/Atlantic). It also states the excluded provinces (BC, MB, SK), so an agent can decide eligibility without opening the schema.

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?

Usage context is clear: apply it for Canadian provincial/territorial sales tax, and do not apply it for BC, Manitoba or Saskatchewan. Both calculation directions are named. It stops short of naming an alternative tool for the uncovered provinces, so it is clear rather than exhaustive.

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.