Skip to main content
Glama

Indonesia Salary and Income Tax Calculator

Employer cost of a salary in Indonesia

employer_cost
Read-onlyIdempotent

What a salary in Indonesia costs the employer (employer social contributions itemised), or the reverse: the gross salary a total budget allows. Give gross_annual or budget_annual.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "employer_cost"
  }
}

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_annualNoGross yearly salary in IDR
budget_annualNoTotal yearly employer budget in IDR, to find the gross salary it allows
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.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so safety and determinism are covered. The description adds that employer social contributions are itemised and that a reverse calculation exists, but says nothing about units, rounding, or how defaults (dtp, foreigner, fx_per_eur) affect the result.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the primary purpose and followed immediately by the actionable input rule. No filler.

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-parameter, read-only calculator with no output schema, the description covers both modes and the required input choice. It could say more about the itemised breakdown returned and the fallback when neither gross_annual nor budget_annual is given, but it is broadly sufficient to call correctly.

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 13 parameters are already documented. The description still adds genuine meaning by implying gross_annual and budget_annual are mutually exclusive mode selectors — a fact the schema does not convey, since required is empty and both are optional.

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 resource and both computation directions: employer cost of a salary in Indonesia with social contributions itemised, and the inverse (gross salary from a total budget). It is clearly a payroll-cost calculator, though it does not name the sibling gross_for_target_net, which an agent could plausibly confuse with the reverse mode here.

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?

"Give gross_annual or budget_annual" tells the agent which input drives which mode, which is real usage guidance. However it never states when to pick this tool over net_salary or gross_for_target_net, nor what happens if neither input is supplied.

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