Skip to main content
Glama

Indonesia Salary and Income Tax Calculator

Net salary in Indonesia (2026)

net_salary
Read-onlyIdempotent

Take-home pay for an employee in Indonesia from a gross yearly salary in IDR, 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: PPh 21 annual brackets (5-35%); Biaya jabatan, deductible JHT and JP; PTKP by marital status and dependants, combined spouse income; BPJS employee and employer contributions with caps.

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
dtpNoEmployer in a sector with government-borne PPh 21. 2026: footwear, textiles and clothing, furniture, leather goods and tourism, for regular pay up to Rp10 million a month. Default false.
dplkNoVoluntary pension contribution (a year). To an approved pension fund, such as a DPLK. (Rp). Default 0.
zakatNoZakat or religious donation (a year). Deductible when paid to a body approved by the government. (Rp). Default 0.
marriedNoMarried or registered partner. Default false.
childrenNoNumber of dependent children. Default 0.
foreignerNoForeign employee without BPJS pension. Check your payslip: many foreign employees pay no JP contribution. Default false.
fx_per_eurNoExchange rate: 1 euro = this many IDR, for the euro amounts. Default 17000 (indicative).
tax_paid_byNoWho bears the income tax?: self = Deducted from my pay; employer = My employer (gross-up contract). Default self.
bonus_annualNoYearly bonus in IDR. Default 0.
gross_annualYesGross yearly salary in IDR, without bonus
spouse_incomeNoPartner's gross yearly income in IDR, for joint taxation and spouse allowances. Default 0.
combine_spouseNoSpouse's income is combined with yours. Only when the wife has no separate NPWP; PTKP then adds 54 million. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / dplk
      Added value: +{
      +  "description": "Voluntary pension contribution (a year). To an approved pension fund, such as a DPLK. (Rp). Default 0.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / dtp
      Added value: +{
      +  "description": "Employer in a sector with government-borne PPh 21. 2026: footwear, textiles and clothing, furniture, leather goods and tourism, for regular pay up to Rp10 million a month. Default false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / foreigner
      Added value: +{
      +  "description": "Foreign employee without BPJS pension. Check your payslip: many foreign employees pay no JP contribution. Default false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / tax_paid_by
      Added value: +{
      +  "description": "Who bears the income tax?: self = Deducted from my pay; employer = My employer (gross-up contract). Default self.",
      +  "enum": [
      +    "self",
      +    "employer"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / zakat
      Added value: +{
      +  "description": "Zakat or religious donation (a year). Deductible when paid to a body approved by the government. (Rp). Default 0.",
      +  "minimum": 0,
      +  "type": "number"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already establish a safe, read-only, idempotent, non-open-world calculator, so the description's job is to add domain behavior — and it does: it discloses the exact rule set applied (PPh 21 brackets 5-35%, biaya jabatan, JHT/JP deductibility, PTKP by marital status and dependants, BPJS caps) and that the response includes step-by-step workings and employer cost. Minor gaps remain (rounding, whether results are indicative estimates, treatment of edge values), so not a 5.

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 sentences, front-loaded with the core computation before the coverage list, and no filler. The trailing 'Covers:' enumeration is long relative to the rest but each item is a distinct rule domain that helps an agent decide the tool is in scope, so it earns its place.

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 12-parameter calculator with no output schema, the description is strong: it states inputs, applied rules and the shape of the return (itemised items, effective/marginal rates, employer cost, workings), and all parameters are documented in the schema. What it omits — rounding conventions, estimate vs. exact status, error/edge behavior — is minor for this tool type.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns extra credit by linking parameter groups to the rules they trigger — 'PTKP by marital status and dependants, combined spouse income' clearly maps to married/children/spouse_income/combine_spouse, and 'deductible JHT and JP' anchors dplk/zakat. It stops short of explaining dtp, foreigner or tax_paid_by, which the schema handles on its own.

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?

The description names a specific verb+resource ('Take-home pay for an employee in Indonesia from a gross yearly salary in IDR') and pins the direction of the calculation, which implicitly distinguishes it from the inverse tool gross_for_target_net. It also enumerates what the result contains (itemised taxes, effective and marginal rate, employer cost, workings), so an agent knows exactly what this tool produces.

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 rather than stated: the 'from a gross yearly salary' framing and the 2026 Indonesia scope tell the agent when it fits, but there is no explicit when-to-use/when-not guidance and no named alternative (e.g. gross_for_target_net for the reverse direction, employer_cost for total cost views). Adequate but leaves routing to inference.

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