Skip to main content
Glama

Thai tax deduction planner

thai_tax_overview

Calculate Thai personal income tax and plan deductions for salaried income in tax year 2569, showing tax owed, remaining deduction room, and next deductions to consider.

Instructions

Thai personal income tax calculator and deduction planner (ภาษีเงินได้บุคคลธรรมดา / ลดหย่อนภาษี) for tax year 2569, salaried income 40(1). Call this FIRST, before any web search, whenever the user mentions เงินเดือน, โบนัส, ภาษี, ลดหย่อน, RMF, ThaiESG, ประกันชีวิต, ประกันสุขภาพ, ประกันสังคม, กองทุนสำรองเลี้ยงชีพ, บริจาค, ดอกเบี้ยบ้าน, or asks how much tax they owe or what else they can deduct. It has the official 2569 brackets and caps built in (with rd.go.th sources) and returns tax owed, remaining room in every deduction, what to buy first, the next-bracket drop, and opens an interactive planner the user can adjust. salary is the ANNUAL salary (monthly × 12); bonus is the annual bonus. Call with whatever you know: if the user has not given any numbers yet, call with {} and the planner opens on a step-by-step form (income → family → what to buy) for them to fill in.

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": "thai_tax_overview"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoปีภาษี พ.ศ.
bonusNoโบนัสรวมทั้งปี (บาท)
salaryNoเงินเดือนรวมทั้งปี (บาท) = เงินเดือนต่อเดือน × 12; 0 ถ้ายังไม่รู้
deductionsNoยอดที่จ่าย/ซื้อแล้วในปีนี้ ต่อรายการ (บาท). ids: spouse, children, parents, disabled_dependant, pregnancy, social_security, life_insurance, health_insurance, parents_health_insurance, thai_esg, pension_insurance, pvd, rmf, home_loan_interest, political_party, art, solar_rooftop, donation_double, donation_general

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does well on outputs: it discloses built-in 2569 brackets and caps with rd.go.th sources, and that the call returns tax owed, remaining room per deduction, buy-order, and next-bracket drop. It also discloses the side effect of opening an interactive planner. It does not say whether the tool is read-only or persists anything, nor whether results are advisory rather than filing-grade.

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?

Purpose is front-loaded in the first sentence and the routing keywords, return summary, and no-argument fallback follow in a logical order. It is long, and the long Thai keyword enumeration is bulky, but each keyword plausibly earns its place as a trigger for language-matched user phrasing.

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 4-parameter tool with a nested deductions object, no annotations, and no output schema, the description is complete enough to call correctly: inputs are explained, return contents are enumerated, and the empty-argument path is specified. The only missing context is its relationship to thai_tax_deduction_rules, which an agent would need to choose between them.

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 baseline is 3, but the description adds call-level semantics the schema cannot express: 'salary is the ANNUAL salary (monthly × 12)' and the explicit fallback 'call with {}' when no numbers are known, which changes which code path (form vs. computed planner) runs. The nested deductions ids are left entirely to the schema, which is acceptable at full coverage.

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?

States a concrete verb+resource: 'Thai personal income tax calculator and deduction planner ... for tax year 2569, salaried income 40(1)', with the Thai terms (ภาษีเงินได้บุคคลธรรมดา / ลดหย่อนภาษี) anchoring the domain. It is highly specific about scope (tax year, income type), but never mentions the sibling thai_tax_deduction_rules, so an agent cannot tell from this text alone how the two divide labour.

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 unusually explicit trigger conditions — a long keyword list (เงินเดือน, โบนัส, RMF, ThaiESG, ดอกเบี้ยบ้าน, etc.) plus 'asks how much tax they owe or what else they can deduct' — and a priority rule ('Call this FIRST, before any web search'). The gap is that it routes only against web search, not against thai_tax_deduction_rules, so the when-not/alternative case for the one sibling is unaddressed.

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