Skip to main content
Glama

tax.kr_comprehensive_income_tax

Read-onlyIdempotent

Computes Korean comprehensive income tax from salary, business, interest, dividend, pension, and other income by applying deductions and credits to determine final tax plus 10% local income tax.

Instructions

종합소득세 신고 흐름(소득금액 합산, 종합소득공제, 과세표준, 산출세액, 세액공제, 결정세액, 지방소득세 10%)을 계산한다. 금액은 원 단위 Decimal 문자열, year 필수, 원 미만 버림. 근로(총급여), 사업, 이자·배당(2천만원 초과 시 배당가산 10%, 제62조 비교과세, 배당세액공제), 연금(총연금액), 기타소득(60% 의제경비, 300만원 이하 분리과세)을 받는다. 결손금 통산, 중간예납·기납부세액, 외국납부세액공제는 계산하지 않고 특별공제는 합계로 넣는다. 근로소득만 있는 연말정산에는 payroll.kr_year_end_tax_settlement 를 쓴다.

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": {
      "year": "<year>"
    },
    "name": "tax.kr_comprehensive_income_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYes
as_ofNo
dependentsNo
total_salaryNo0
elderly_countNo
pension_grossNo0
single_parentNo
children_countNo
disabled_countNo
dividend_otherNo0
business_incomeNo
interest_incomeNo0
woman_deductionNo
business_revenueNo0
include_proposedNo
business_expensesNo0
other_tax_creditsNo0
other_income_amountNo0
newborn_birth_ordersNo
other_income_aggregateNo
other_income_deductionsNo0
apply_standard_tax_creditNo
diligent_business_operatorNo
dividend_gross_up_eligibleNo0
other_income_deemed_revenueNo0
other_income_actual_expensesNo0

Output Schema

NameRequiredDescriptionDefault
_metaNo서버가 붙이는 영수증(integrity), 엔진, 힌트
notesYes
traceYes계산 근거(tool, formula, inputs, steps, output)
total_taxYes
decided_taxYes
computed_taxYes
policy_sha256Yes
policy_sourceYes
policy_statusYes
policy_versionYes적용된 정책 문서의 식별 정보
taxable_incomeYes
basic_deductionYes
policy_audit_idYes
child_tax_creditYes
local_income_taxYes
policy_citationsYes정책의 근거 조문
dividend_gross_upYes
other_tax_creditsYes
total_tax_creditsYes
other_income_totalYes
personal_deductionYes
dividend_tax_creditYes
labor_income_amountYes
policy_effective_toYes
referenced_policiesYes
standard_tax_creditYes
additional_deductionYes
comprehensive_incomeYes
financial_comparisonNo
pension_income_amountYes
policy_effective_dateYes
business_income_amountYes
financial_income_totalYes
labor_income_deductionYes
financial_income_amountYes
labor_income_tax_creditYes
other_income_aggregatedYes
other_income_deductionsYes
pension_income_deductionYes
other_income_separate_taxYes
financial_income_aggregatedYes
financial_income_separate_taxYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, the description discloses real behavioral constraints: amounts must be Decimal strings in won, sub-won truncation, year is mandatory, and — critically — that loss carryover, interim/withheld taxes, and foreign tax credits are NOT computed while special deductions must be passed as totals. A minor tension exists between 'special deductions as totals' and the presence of granular params like dependents/children_count, but this is scope nuance rather than a contradiction.

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?

Front-loaded with the verb and the calculation scope, then packed with high-density constraints in a single paragraph; nearly every clause adds actionable information (format, required param, exclusions, sibling routing). It is dense rather than padded, though the income-type enumeration is compressed to the point of being hard to parse.

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?

An output schema exists, so return values need no explanation, and annotations cover the safety profile. However, for a 26-parameter statutory tax computation, several parameters and the interaction between aggregate special-deduction input and the granular dependent/child/elderly parameters remain unresolved, leaving the agent unable to populate the full input confidently.

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?

With 26 parameters at 0% schema description coverage, the description carries the whole burden and only partly does so: it maps total_salary, business_income, interest/dividend, pension_gross, and other-income fields to their tax treatment, and specifies the Decimal-string/won format. Opaque parameters such as as_of, include_proposed, other_tax_credits, apply_standard_tax_credit, and diligent_business_operator receive no explanation at all, so an agent must guess their meaning.

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 and resource (calculating the Korean comprehensive income tax filing flow) and enumerates the full pipeline: income aggregation, deductions, tax base, computed tax, tax credits, determined tax, and the 10% local income tax. It is immediately distinguishable from the named sibling payroll.kr_year_end_tax_settlement, which is explicitly routed elsewhere.

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?

It explicitly states the alternative for the employment-only year-end case (payroll.kr_year_end_tax_settlement) and lists scope exclusions (loss carryover, interim prepayment, foreign tax credit), which tells the agent when this tool is the wrong choice. It does not, however, position itself against other closely related siblings such as tax.kr_income or tax.kr_pension_income, leaving some selection ambiguity.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools