Skip to main content
Glama

Morocco Salary and Income Tax Calculator

Net salary: Morocco vs the Netherlands

compare_with_netherlands
Read-onlyIdempotent

Take-home pay of a job in Morocco (with the situation options of net_salary) next to a job in the Netherlands (2026, optionally with the 8% holiday allowance and the 30% ruling), in euros, with the difference a year.

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": {
      "home_gross_annual": "<home_gross_annual>",
      "nl_gross_annual": "<nl_gross_annual>"
    },
    "name": "compare_with_netherlands"
  }
}

Input Schema

NameRequiredDescriptionDefault
marriedNoMarried or registered partner. Default false.
childrenNoNumber of dependent children. Default 0.
tax_yearNoTax year. Offered: 2026 (final), 2025 (final). Default 2026. A year that is not listed is not available for this country.
fx_per_eurNoExchange rate: 1 euro = this many MAD, for the euro amounts. Default 10.7 (indicative).
pension_pctNoVoluntary employee pension contribution through payroll, % of salary. Default 0.
bonus_annualNoYearly bonus in MAD. Default 0.
home_interestNoInterest on your home loan. Main home only. Deductible up to 10% of taxable income; paid to your bank, so take-home pay is not reduced. (DH / year). Default 0.
spouse_incomeNoPartner's gross yearly income in MAD, for joint taxation and spouse allowances. Default 0.
nl_gross_annualYesGross yearly salary in the Netherlands, in euros, without holiday allowance
home_gross_annualYesGross yearly salary in Morocco, in MAD
nl_holiday_allowanceNoThe Dutch job pays 8% holiday allowance on top. Default true.
nl_thirty_percent_rulingNoThe 30% ruling applies in the Netherlands. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / home_interest
      Added value: +{
      +  "description": "Interest on your home loan. Main home only. Deductible up to 10% of taxable income; paid to your bank, so take-home pay is not reduced. (DH / year). Default 0.",
      +  "minimum": 0,
      +  "type": "number"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / tax_year
      Added value: +{
      +  "description": "Tax year. Offered: 2026 (final), 2025 (final). Default 2026. A year that is not listed is not available for this country.",
      +  "enum": [
      +    2026,
      +    2025
      +  ],
      +  "type": "integer"
      +}
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare this a safe, read-only, idempotent, closed-world calculation, so the description only needs to add output semantics — which it does by stating results are expressed in euros and include the yearly difference, a non-obvious point given Moroccan inputs are in MAD and no output schema exists. It does not explain how the fx_per_eur default interacts with the euro conversion or how the tax year is applied to each side.

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?

A single front-loaded sentence delivering the two inputs, the currency, and the returned delta with no filler. The stacked parentheticals make it denser than ideal, but nothing is wasted.

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 13-field, read-only calculator with no output schema, the description covers the essential contract: which two salaries are compared, that results are in euros, and that the delta is annual. Minor gaps remain around the '2026' mention versus the schema's 2025/2026 tax_year enum, but nothing blocks correct invocation.

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 all twelve parameters are already documented in the schema. The description only highlights the two Netherlands-specific switches (8% holiday allowance, 30% ruling) and points to net_salary for the shared situation options, adding a little orientation but no meaning beyond the schema.

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 names two concrete resources (take-home pay for a Morocco job and a Netherlands job) and the operation (side-by-side comparison with an annual difference), and it explicitly links the Morocco side to the 'situation options of net_salary', which separates it from that sibling. It does not differentiate against the other comparison/calculation siblings, but the purpose itself is unambiguous.

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 comparison framing: you use it when you want Morocco vs Netherlands net pay with a yearly delta. There is no explicit when-not guidance and no statement of alternatives (e.g. when to use net_salary alone instead), so the agent must infer the selection 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