Skip to main content
Glama

Morocco Salary and Income Tax Calculator

Net salary in Morocco (2026)

net_salary
Read-onlyIdempotent

Take-home pay for an employee in Morocco from a gross yearly salary in MAD, with 2026 rules: every tax and contribution itemised with its local name, the effective and marginal rate, employer cost and the step-by-step workings. Covers: IR barème from the 2025 finance law (0-37%); Professional expenses 35% (max 30,000 MAD) up to 78,000 gross, 25% (max 35,000) above; CNSS with its ceiling, AMO, CIMR; Family charges for spouse and children (600 MAD each from 2026); Employer contributions and vocational training tax.

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": {
      "gross_annual": "<gross_annual>"
    },
    "name": "net_salary"
  }
}

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.
gross_annualYesGross yearly salary in MAD, without bonus
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.

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 establish that this is a safe read-only, idempotent calculation. The description adds meaningful behavioral context: itemised tax and contribution lines with local names, effective and marginal rates, employer cost, and step-by-step workings.

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 front-loaded with the core purpose and then lists relevant calculation components. It is dense and delivered as a single paragraph, but the detail is germane for a multi-component payroll tax calculation.

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 complex nine-parameter tax calculation with no output schema, the description supplies substantial domain context: tax brackets, professional expense rules, CNSS/AMO/CIMR, family charges, employer contributions, and outputs such as effective and marginal rates. It could be more complete about how tax_year 2025 is handled and what the returned structure contains, but it is largely sufficient.

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 the schema already documents all nine parameters in detail. The description adds tax-rule context that helps interpret family charges and professional expenses, but it does not individually clarify parameters such as fx_per_eur, pension_pct, bonus_annual, or home_interest beyond what the schema provides.

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 states a specific calculation: take-home pay in Morocco from a gross yearly salary in MAD under 2026 rules. It clearly identifies the resource and direction of the computation, though it does not explicitly distinguish itself from siblings such as gross_for_target_net or employer_cost.

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 'Take-home pay ... from a gross yearly salary,' making the gross-to-net direction clear. However, the description gives no explicit when-to-use guidance versus alternatives and does not explain why tax_year offers 2025 when the title and description emphasize 2026.

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