Skip to main content
Glama

Calculate Swiss Pillar3a

calculate_swiss_pillar3a
Read-onlyIdempotent

Calculate Swiss pillar 3a tax savings (3e pilier lie). Returns: {annual_contribution, net_cost_after_saving, max_employee_2026, max_self_employed_2026}. See list_bundles for related 'finance-suisse' calculators.

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": {
      "annual_contribution": "<annual_contribution>",
      "marginal_tax_rate": "<marginal_tax_rate>"
    },
    "name": "calculate_swiss_pillar3a"
  }
}

Input Schema

NameRequiredDescriptionDefault
marginal_tax_rateYesMarginal income tax rate in % (federal + cantonal combined)
annual_contributionYesAnnual contribution to pillar 3a in CHF (max 7258 for employees, 36288 for self-employed in 2025-2026; 7373 and 36864 from 2027)

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. Changed1 schema field changed
    • changedInput schema / properties / annual_contribution / description
      Previous value: -"Annual contribution to pillar 3a in CHF (max 7056 for employees, 35280 for self-employed)"New value: +"Annual contribution to pillar 3a in CHF (max 7258 for employees, 36288 for self-employed in 2025-2026; 7373 and 36864 from 2027)"
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "formula": {
      +      "description": "Human-readable formula or method used (e.g. \"I=P·r·t\", \"Magnus formula\").",
      +      "type": "string"
      +    },
      +    "reference_url": {
      +      "description": "Link to a calcul2 page documenting the calculation in detail.",
      +      "type": "string"
      +    },
      +    "result": {
      +      "description": "Computed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools)."
      +    },
      +    "source": {
      +      "description": "Authoritative source for the rule or formula (e.g. \"Article 197 CGI\", \"NF DTU 21\").",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is fully covered. The description adds the return field names, but it does not disclose modeling assumptions an agent would care about, such as whether the result accounts for cantonal variation or which contribution year the limits reflect (the schema mentions 2025-2026 while the return field is named max_employee_2026).

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?

Two tight sentences: purpose first, then return shape, then a pointer to a sibling. The return-field enumeration is partly redundant with the output schema, but it is short and front-loaded, so nothing is wasted enough to penalize.

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 an output schema, full parameter coverage, and rich annotations, the description supplies the missing piece—the domain identity of the calculation and the pointer to related finance calculators. Only a note on year/canton assumptions is absent, which is a minor gap for a read-only two-parameter calculator.

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 carry ranges and unit notes ('in %', 'in CHF'), so the schema does the heavy lifting. The description contributes no additional parameter semantics beyond echoing the contribution-limit concepts through output field names; baseline 3 applies.

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?

Names a specific verb and resource ('Calculate Swiss pillar 3a tax savings') with the French synonym '3e pilier lie', which is enough to separate it from the many generic calculate_* siblings. It does not explicitly contrast itself with the closest relatives such as calculate_swiss_income_tax or calculate_swiss_lpp, so differentiation is by domain vocabulary rather than routing guidance.

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 only implied by the task the tool performs; there is no statement of when to prefer it over calculate_swiss_income_tax or calculate_swiss_lpp, nor any prerequisite. The 'See list_bundles for related finance-suisse calculators' line is a discovery pointer rather than a when-to-use rule.

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