Skip to main content
Glama

Indonesia Salary and Income Tax Calculator

Gross salary needed for a net amount in Indonesia

gross_for_target_net
Read-onlyIdempotent

The gross yearly salary in Indonesia that leaves a given take-home pay, with the same situation options as net_salary. Use it to set a salary ask or check an offer.

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": {
      "net_target": "<net_target>"
    },
    "name": "gross_for_target_net"
  }
}

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.
periodNoWhether net_target is per year or per month. Default year.
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).
net_targetYesTake-home pay wanted, in IDR
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.
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

A3.8/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower. The description adds the inverse-of-net_salary framing but nothing about assumptions, error conditions when the net target is unreachable, or what the result contains. Calling the output 'yearly' while the period parameter permits monthly is a small inconsistency worth noting.

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 short sentences, front-loaded with the core computation, with no filler. The trailing clause about use cases is slightly loose ('set a salary ask or check an offer') but earns its place as guidance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter tax modeling tool with no output schema, the description is thin: it never says what the response looks like (a single gross figure, or a full breakdown including employer tax and allowances). The rich schema compensates for the input side, but the return contract is entirely unstated.

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 13 parameters are already documented in detail. The description only defers to net_salary for the 'situation options' rather than adding meaning of its own, which is baseline-appropriate.

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?

States a precise inverse computation: the gross yearly salary in Indonesia that yields a given take-home pay. This unambiguously separates it from the sibling net_salary, which runs the opposite direction.

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?

Gives two concrete use cases (setting a salary ask, checking an offer) and points to net_salary for the shared situation options. It never states the exclusion explicitly, e.g. 'do not use when you already know gross and want net'.

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