Skip to main content
Glama

MaCalculatriceEnLigne

Calculate Canada Ei

calculate_canada_ei
Read-onlyIdempotent

Calculate Canadian Employment Insurance (EI) premiums for Quebec and non-Quebec residents. Returns: {gross_annual_cad, max_insurable_earnings, insurable_earnings, employee_rate_pct, employee_premium}. See list_bundles for related 'finance-afrique-quebec' calculators.

Input Schema

NameRequiredDescriptionDefault
provinceNoProvince: QC (Quebec rate) or other (standard rate)QC
gross_annual_cadYesGross annual insurable earnings in CAD

Output Schema

NameRequiredDescriptionDefault
resultNoComputed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools).
sourceNoAuthoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21").
formulaNoHuman-readable formula or method used (e.g. "I=P·r·t", "Magnus formula").
reference_urlNoLink to a calcul2 page documenting the calculation in detail.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare this as a safe, deterministic, read-only calculation (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=false), so the bar is lower. The description adds little beyond that: it enumerates return fields that the output schema already documents, and does not disclose the rate year, whether premiums are capped at max insurable earnings, or rounding behavior.

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 tight sentences, front-loaded with the purpose, followed by return fields and a cross-reference. No filler or hedging.

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 two-parameter calculator with a full output schema and complete annotations, the description covers scope, jurisdiction variants, and the return shape well enough to call it correctly. Minor gaps remain around the applicable tax year and premium caps, which are not stated anywhere in the description.

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% and both parameters (province enum, gross_annual_cad) are documented in the schema, so the baseline is 3. The description's mention of 'Quebec and non-Quebec residents' loosely maps to the province enum but repeats rather than extends the schema's own explanation of QC vs other rates.

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?

States a specific verb and resource ('Calculate Canadian Employment Insurance (EI) premiums') and scopes it to Quebec vs non-Quebec residents, which cleanly distinguishes it from siblings like calculate_canada_rrq, calculate_canada_federal_tax, and calculate_canada_combined_tax.

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?

Usage is implied by the description's jurisdiction scope, but there is no explicit when-to-use guidance or comparison against the many adjacent Canada payroll/tax siblings. The pointer to list_bundles is a routing hint for related calculators, not a rule for selecting this tool over alternatives.

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.