Skip to main content
Glama
supra126

taiwan-payroll

月中到職/離職破月計算

calculate_prorated

Calculate prorated labor and health insurance premiums for mid-month hires or resignations, using daily rates for labor insurance/pension and month-end attribution for health insurance per Taiwan regulations.

Instructions

計算月中到職或離職當月的破月保費。勞保/職保/勞退按日(30 日基準);健保採官方「月底歸屬」——到職當月計整月、離職當月不計。結果僅供參考,以勞保局、健保署核發之繳款單為準,不構成法律或會計建議。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearNo年度(西元,如 2026)。省略則使用最新可用年度;可先用 list_years 查可用年度。
monthlySalaryYes月薪資總額(經常性薪資),新臺幣元/月。
identityNo身份別(預設 category1):category1=本國勞工或外籍配偶;migrantGeneral=一般移工(勞保僅普通事故 11.5%、無就保/勞退);migrantDomestic=家事移工(僅健保+職災,職災費率請以 occupationalRate 傳 0.0018)。不適用的險種回傳 0。
dependentsNo健保眷屬人數(計費上限 3 口),預設 0。
employmentInsuranceNo是否參加就業保險(勞保費率 12.5% 或 11.5%),預設 true。一般移工/家事移工一律視為不參加。
pensionSelfContributionNo勞工自願提繳率,小數(0~0.06,如 0.06 表 6%),預設 0。
occupationalRateNo職災行業別費率,小數比例(如 0.0021 表 0.21%;家事移工 0.0018),範圍 [0, 0.02)。省略則用該年度平均費率。
partTimeNo是否為部分工時:true 時未達基本工資者勞保/健保對到官方低級距(職保仍歸第 1 級)。預設 false。
roundingNo進位策略:round=四捨五入(預設)、ceil=無條件進位、aggregate-then-round=合計後分配(政府方吸收進位差)。
startDateNo到職日(YYYY-MM-DD)。startDate 與 endDate 至少擇一,且兩者須為同一月份。
endDateNo離職日(YYYY-MM-DD)。
Behavior4/5

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

Discloses calculation rules (30-day basis, end-of-month attribution) and states results are for reference only, not legal/accounting advice. With no annotations, this provides good behavioral context beyond basic calculate action.

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?

Very concise: two sentences followed by disclaimer, all essential information included with no filler. Front-loaded with purpose.

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?

Given complexity (11 parameters, multiple insurance types) and no output schema, description covers key rules and limitations. Slightly lacking in specifying exact return structure, but adequate for a calculator tool.

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 covers all 11 parameters with descriptions, so baseline is 3. Description adds overall context but does not elaborate on individual parameter details beyond what schema already provides.

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?

Description clearly states it calculates prorated insurance premiums for mid-month onboarding or resignation, with specific verb and resource. Distinguishes from sibling tools (e.g., calculate_payroll, calculate_income_tax_withholding) by focusing on prorated scenarios.

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?

Implies usage for mid-month entries via the description, and sibling names show different purposes, but no explicit when-not or alternatives are provided. Still clear enough for an agent.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/supra126/taiwan-payroll'

If you have feedback or need assistance with the MCP directory API, please join our Discord server