Skip to main content
Glama

calculate_tax

Calculate federal, cantonal, municipal, and church tax for a household. Derive social insurance and standard deductions from gross income and wealth.

Instructions

Compute federal, cantonal, municipal and church tax for a household.

Uses ESTV's detailed model: it derives social-insurance contributions and standard deductions from the gross figures, so you only need income, wealth and family situation. Call list_deductions first if you want to supply pillar 3a, mortgage interest or other real deductions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
age1No
age2No
wealthNoNet taxable wealth at year end, CHF.
income1YesAnnual income of person 1, CHF. Gross salary when income_type1='employed'.
income2NoAnnual income of the spouse, CHF. Only used for married/registered partners.
languageNode
locationYesTax location id, postal code or municipality name.
tax_yearNo
deductionsNoOverrides for the ESTV budget sheet, keyed by the ids from list_deductions, e.g. {'PRAEMIEN3A': 7258}.
confession1Nonone
confession2No
income_type1Noemployed
income_type2Noemployed
relationshipNosingle
children_agesNoAge of each dependent child, e.g. [4, 9].
include_breakdownNoInclude the line-by-line derivation of taxable income.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations provided, the description must cover behavioral traits. It reveals that the tool automatically derives social-insurance contributions and standard deductions from gross figures, which is a key behavioral detail. However, it does not disclose potential side effects, authorization needs, rate limits, or what happens to conflicts with standard deductions. Given the complexity, the transparency is adequate but not thorough.

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 description is concise, consisting of two short paragraphs. It is front-loaded with the main purpose, followed by the model explanation, and ends with a usage guideline. There is no redundant or unnecessary information, making it easy to read and understand quickly.

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?

Given the tool has 16 parameters and an output schema, the description provides sufficient context for an agent to decide when to use it. It explains the model's behavior and mentions a sibling tool. The schema handles parameter details, so the description doesn't need to repeat them. It feels complete for a tool of this complexity.

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 schema description coverage is 44%, so many parameters already have descriptions in the schema. The description adds context by emphasizing that only income, wealth, and family situation are needed, grouping the core parameters. It does not describe individual parameters beyond what the schema provides, but it does offer a high-level understanding. Baseline 3 is appropriate.

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 description clearly states that the tool computes federal, cantonal, municipal and church tax for a household. It specifies the model used (ESTV) and the inputs needed (income, wealth, family situation). It distinguishes from sibling `list_deductions` by mentioning it as a prerequisite for optional deductions, but does not explicitly differentiate from other siblings like `calculate_tax_from_taxable_amounts`.

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?

The description gives explicit guidance on when to use the tool: when you have gross income, wealth, and family situation. It advises calling `list_deductions` first if you want to supply optional deductions like pillar 3a. This helps the agent understand prerequisites and when to use this tool versus a sibling. However, it does not explicitly state when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/noaahh/estv-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server