Skip to main content
Glama

calculate kr year end settlement

calculate_kr_year_end_settlement
Read-onlyIdempotent

South Korea 2026 귀속 year-end tax settlement (연말정산) for a resident wage earner: income deductions, card deduction, special deductions/credits vs the 130,000 KRW standard credit (picks the lower tax), refund or extra payment when withheld tax is given. Same formulas as tools.oiyo.net. Refuses unknown inputs and tax years other than 2026; returns statute basis and what is not covered. Estimate, not tax advice.

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": {
      "salary": "<salary>"
    },
    "name": "calculate_kr_year_end_settlement"
  }
}

Input Schema

NameRequiredDescriptionDefault
irpNoIRP / DC personal contributions in KRW
rentNoMonthly rent paid for the year in KRW
salaryYesGross annual salary excluding non-taxable pay (총급여) in KRW
medicalNoMedical expenses for general dependents in KRW (7M cap)
personsNoBasic deduction persons including self (기본공제 인원, default 1)
seniorsNoDependents aged 70+ (경로우대 추가공제 인원)
taxYearNoTax year (귀속연도). Only 2026 is supported
donationNoDesignated (non-religious) donations in KRW
marriageNoMarriage registered 2024-2026 and the one-time marriage credit not yet used
withheldNoIncome tax withheld during the year (excluding local tax) in KRW; enables refund calculation
youthSmeNoEligible for the SME youth employment income tax reduction
educationNoEligible dependent education expenses after per-person caps in KRW
womanHeadNo부녀자 추가공제 (income 30M KRW or less)
birthOrderNoBirth/adoption this year: 1 for first child, 2 second, 3 third or later; 0 none
isaTransferNoMatured ISA amount moved to a pension account this year in KRW
otherIncomeNoOther comprehensive income amount (사업·연금·기타소득금액) in KRW; turns this into a May filing approximation
cardChildrenNoChildren counted for the raised card deduction limit
cultureSpendNoBooks, performances, museums, movies, sports facilities in KRW
rentEligibleNoUser confirmed the statutory rent credit requirements (homeless household head etc.)
singleParentNo한부모 추가공제
educationSelfNoOwn education expenses in KRW
creditChildrenNoChildren eligible for the child tax credit (자녀세액공제)
debitCardSpendNoDebit card and cash receipt spending in KRW
pensionSavingsNoPension savings account contributions (연금저축) in KRW
creditCardSpendNoCredit card spending in KRW
disabledPersonsNoDisabled dependents including self (장애인 추가공제 인원)
leaseLoanRepaidNoJeonse loan principal and interest repaid (주택임차차입금) in KRW
medicalSpecificNoMedical expenses for self, 65+, disabled, or children 6 or under in KRW (no cap)
nationalPensionNoNational pension contributions paid by the employee in KRW
healthEmploymentNoHealth, long-term care and employment insurance paid by the employee in KRW
hometownDonationNoHometown love donations (고향사랑기부금) in KRW
insurancePremiumNoProtection-type insurance premiums (보장성 보험료) in KRW
politicalDonationNoPolitical donations in KRW
religiousDonationNoReligious donations in KRW
publicTransitSpendNoPublic transit spending in KRW
traditionalMarketSpendNoTraditional market spending in KRW
housingSubscriptionPaidNoHousing subscription savings paid (주택청약종합저축) in KRW

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial behavior beyond them: it refuses unknown inputs and non-2026 years, chooses the lower of itemized credits vs the 130,000 KRW standard credit, computes refund only when withheld tax is supplied, and returns statute basis plus explicit non-coverage. It also discloses the estimation disclaimer and the reference implementation, which is exactly the kind of context an agent needs.

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?

Four sentences, front-loaded with the operation and scope before constraints and disclaimers; nearly every clause carries information. It is dense with Korean terminology and parenthetical glosses, but none of it is padding.

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 37-parameter tool with no output schema, the description does the right things: it explains what the result represents (refund or extra payment, chosen credit path), what is returned alongside it (statute basis, non-coverage), and its limits. The only shortfall is that return shape and units are described only in prose rather than precisely.

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% across all 37 parameters, so the schema already carries the per-parameter meaning; baseline is 3. The description contributes only high-level grouping (income deductions, card deduction, special credits) and the fact that supplying withheld tax enables refund calculation, without adding format or dependency detail beyond what the schema states.

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 specific verb and resource (2026 귀속 year-end tax settlement / 연말정산), narrows the population to a resident wage earner, and enumerates the computation domains covered (income deductions, card deduction, special deductions/credits, refund/extra payment). This is specific enough to separate it from siblings such as calculate_kr_freelancer_income_tax or calculate_kr_acquisition_tax without opening any schema.

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?

Scope constraints act as when/when-not guidance: only tax year 2026, only resident wage earners, refuses unknown inputs, and 'estimate, not tax advice' sets the expectation boundary. It does not explicitly name an alternative tool for freelancers or other years, so an agent must infer where to go instead, which keeps it below a 5.

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.