{"schema":"tassi.public-preview-agent-capabilities.v1","endpoint":"/mcp","tools":[{"name":"list_tax_references","title":"Find official country tax guides","description":"List country tax guides, topics and reference periods. Estimate coverage is separate. Free and requires no personal data.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"schema":{"const":"tassi.tax-reference-catalog.v1"},"revision":{"type":"string"},"countries":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","pattern":"^[A-Z]{2}$"},"name":{"type":"string"},"recommendedPeriod":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"label":{"type":"string"},"guidePath":{"type":"string"},"incomeWindow":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"startsOn":{"type":"string","format":"date"},"endsOn":{"type":"string","format":"date"}},"required":["startsOn","endsOn"]},{"type":"null"}]}},"required":["id","label","guidePath","incomeWindow"]},"availablePeriods":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"label":{"type":"string"},"guidePath":{"type":"string"},"incomeWindow":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"startsOn":{"type":"string","format":"date"},"endsOn":{"type":"string","format":"date"}},"required":["startsOn","endsOn"]},{"type":"null"}]}},"required":["id","label","guidePath","incomeWindow"]}},"guidePath":{"type":"string"},"estimateGuide":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverage":{"enum":["estimate_available","guide_available"]},"topics":{"type":"array","items":{"enum":["residency","salary","filing","deductions","relief"]}}},"required":["code","name","recommendedPeriod","availablePeriods","guidePath","estimateGuide","coverage","topics"]}}},"required":["schema","revision","countries"]}},{"name":"get_tax_reference","title":"Read a cited country tax guide","description":"Read general residency, salary and filing references for a specific jurisdiction and period. Cite each official source and preserve source-check status. Use list_tax_references for available guides. If the requested period is unavailable, explain the gap and use availablePeriods to offer other guides with their dates. This tool does not calculate a tax bill.","inputSchema":{"type":"object","additionalProperties":false,"required":["code","periodId"],"properties":{"code":{"type":"string","pattern":"^[A-Z]{2}$","description":"Uppercase two-letter country code from the guide catalog, such as TW."},"periodId":{"type":"string","pattern":"^\\d{4}(?:-\\d{2})?$","description":"Copy availablePeriods[].id from the catalog as a string, such as 2026 or 2026-27."}}},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"schema":{"const":"tassi.tax-reference-guide.v1"},"revision":{"type":"string"},"code":{"type":"string","pattern":"^[A-Z]{2}$"},"name":{"type":"string"},"recommendedPeriod":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"label":{"type":"string"},"guidePath":{"type":"string"},"incomeWindow":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"startsOn":{"type":"string","format":"date"},"endsOn":{"type":"string","format":"date"}},"required":["startsOn","endsOn"]},{"type":"null"}]}},"required":["id","label","guidePath","incomeWindow"]},"availablePeriods":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"label":{"type":"string"},"guidePath":{"type":"string"},"incomeWindow":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"startsOn":{"type":"string","format":"date"},"endsOn":{"type":"string","format":"date"}},"required":["startsOn","endsOn"]},{"type":"null"}]}},"required":["id","label","guidePath","incomeWindow"]}},"guidePath":{"type":"string"},"estimateGuide":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverage":{"enum":["estimate_available","guide_available"]},"topics":{"type":"array","items":{"enum":["residency","salary","filing","deductions","relief"]}},"period":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"label":{"type":"string"},"guidePath":{"type":"string"},"incomeWindow":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"startsOn":{"type":"string","format":"date"},"endsOn":{"type":"string","format":"date"}},"required":["startsOn","endsOn"]},{"type":"null"}]}},"required":["id","label","guidePath","incomeWindow"]},"language":{"const":"en"},"authority":{"type":"string"},"treatyScope":{"const":"jurisdiction_guidance_only"},"sections":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"topic":{"enum":["residency","salary","filing","deductions","relief"]},"summary":{"type":"string"},"citation":{"type":"object","additionalProperties":false,"properties":{"href":{"type":"string","format":"uri"},"authority":{"type":"string"}},"required":["href","authority"]},"supportingSources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"href":{"type":"string","format":"uri"},"authority":{"type":"string"},"label":{"type":"string"}},"required":["href","authority","label"]},"minItems":1},"sourceStatus":{"enum":["unchanged","not_verified","review_required"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"incompleteSourceChecks":{"const":true,"description":"At least one source needs review and another source check is unverified."},"filing":{"type":"object","additionalProperties":false,"properties":{"form":{"type":"string"},"appliesTo":{"type":"string"},"portal":{"type":"object","additionalProperties":false,"properties":{"label":{"type":"string"},"href":{"type":"string","format":"uri"}},"required":["label","href"]},"dates":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"kind":{"enum":["opens","deadline","paper_deadline","online_deadline","advisor_deadline","payment_deadline","overseas_extension_deadline","foreign_tax_extension_deadline","e_filing_grace_through","penalty_waiver_through","direct_debit_deadline","supporting_documents_due_before"]},"on":{"type":"string","format":"date"},"appliesTo":{"type":"string"}},"required":["kind","on"]}},"deadlineWindows":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"kind":{"enum":["ordinary","emergency_extension"]},"startsOn":{"type":"string","format":"date"},"endsOn":{"type":"string","format":"date"},"appliesTo":{"type":"string"}},"required":["kind","startsOn","endsOn","appliesTo"]},"minItems":1},"paymentTiming":{"type":"object","additionalProperties":false,"properties":{"kind":{"enum":["after_assessment","before_filing"]},"guidance":{"type":"string"}},"required":["kind","guidance"]},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"href":{"type":"string","format":"uri"},"authority":{"type":"string"},"label":{"type":"string"}},"required":["href","authority","label"]}}},"required":["form","appliesTo","portal","dates"]},"treaty":{"type":"object","additionalProperties":false,"properties":{"jurisdictions":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},"guidePath":{"type":"string"},"scope":{"const":"annual_employment_income"},"caseReviewed":{"const":false},"agreement":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"label":{"type":"string"},"signedOn":{"type":"string","format":"date"},"incomeFrom":{"type":"string","format":"date"},"incomeThrough":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"articles":{"type":"object","additionalProperties":false,"properties":{"residence":{"type":"integer","minimum":0},"employment":{"type":"integer","minimum":0},"relief":{"type":"integer","minimum":0}},"required":["residence","employment","relief"]},"shortStay":{"type":"string"},"citation":{"type":"object","additionalProperties":false,"properties":{"authority":{"type":"string"},"href":{"type":"string","format":"uri"}},"required":["authority","href"]}},"required":["id","label","signedOn","incomeFrom","incomeThrough","articles","shortStay","citation"]},"renewal":{"type":"object","additionalProperties":false,"properties":{"enteredIntoForceOn":{"type":"string","format":"date"},"singaporeAssessmentFrom":{"type":"string","format":"date"},"taiwanTaxPeriodsFrom":{"type":"string","format":"date"},"withholdingFrom":{"type":"string","format":"date"},"citation":{"type":"object","additionalProperties":false,"properties":{"authority":{"type":"string"},"href":{"type":"string","format":"uri"}},"required":["authority","href"]}},"required":["enteredIntoForceOn","singaporeAssessmentFrom","taiwanTaxPeriodsFrom","withholdingFrom","citation"]}},"required":["jurisdictions","guidePath","scope","caseReviewed","agreement","renewal"]},"arrangement":{"type":"object","additionalProperties":false,"properties":{"jurisdictions":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"},"minItems":2,"maxItems":2,"uniqueItems":true},"title":{"type":"string"},"guidePath":{"type":"string"},"scope":{"const":"annual_employment_income"},"caseReviewed":{"const":false},"enteredIntoForceOn":{"type":"string","format":"date"},"incomeFrom":{"type":"string","format":"date"},"articles":{"type":"object","additionalProperties":false,"properties":{"residence":{"type":"integer","minimum":0},"employment":{"type":"integer","minimum":0},"relief":{"type":"integer","minimum":0},"effectiveDates":{"type":"integer","minimum":0}},"required":["residence","employment","relief","effectiveDates"]},"shortStay":{"type":"string"},"citation":{"type":"object","additionalProperties":false,"properties":{"authority":{"type":"string"},"href":{"type":"string","format":"uri"}},"required":["authority","href"]},"effectiveDateCitation":{"type":"object","additionalProperties":false,"properties":{"authority":{"type":"string"},"href":{"type":"string","format":"uri"}},"required":["authority","href"]}},"required":["jurisdictions","title","guidePath","scope","caseReviewed","enteredIntoForceOn","incomeFrom","articles","shortStay","citation","effectiveDateCitation"]},"dayTests":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"days":{"type":"integer","minimum":0},"comparison":{"enum":["at_least","more_than","fewer_than"]},"window":{"enum":["calendar_year","continuous_across_two_years","rolling_12_months","twelve_months_from_entry","rolling_365_days","uk_tax_year","australian_income_year","weighted_three_calendar_years","twelve_months_from_first_presence","twelve_months_overlapping_tax_year"]},"appliesTo":{"type":"string"}},"required":["days","comparison","window","appliesTo"]}},"additionalArrangements":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"jurisdictions":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"},"minItems":2,"maxItems":2,"uniqueItems":true},"title":{"type":"string"},"guidePath":{"type":"string"},"scope":{"const":"annual_employment_income"},"caseReviewed":{"const":false},"enteredIntoForceOn":{"type":"string","format":"date"},"incomeFrom":{"type":"string","format":"date"},"articles":{"type":"object","additionalProperties":false,"properties":{"residence":{"type":"integer","minimum":0},"employment":{"type":"integer","minimum":0},"relief":{"type":"integer","minimum":0},"effectiveDates":{"type":"integer","minimum":0}},"required":["residence","employment","relief","effectiveDates"]},"shortStay":{"type":"string"},"citation":{"type":"object","additionalProperties":false,"properties":{"authority":{"type":"string"},"href":{"type":"string","format":"uri"}},"required":["authority","href"]},"effectiveDateCitation":{"type":"object","additionalProperties":false,"properties":{"authority":{"type":"string"},"href":{"type":"string","format":"uri"}},"required":["authority","href"]}},"required":["jurisdictions","title","guidePath","scope","caseReviewed","enteredIntoForceOn","incomeFrom","articles","shortStay","citation","effectiveDateCitation"]},"minItems":1},"deductionAmounts":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"label":{"type":"string"},"amount":{"type":"number","exclusiveMinimum":0},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"kind":{"enum":["standard","maximum","schedule_minimum"]},"period":{"enum":["annual","monthly"]},"appliesTo":{"type":"string"},"ratePercent":{"type":"number","exclusiveMinimum":0,"maximum":100}},"required":["label","amount","currency","kind","period","appliesTo"]}}},"required":["topic","summary","citation","sourceStatus","checkedAt"]}}},"required":["schema","revision","code","name","recommendedPeriod","availablePeriods","guidePath","estimateGuide","coverage","topics","period","language","authority","treatyScope","sections"]}},{"name":"estimate_tax_free","title":"Estimate salary tax in local currency","description":"Advanced free employment estimate for income already assigned to each country in its local currency. Prefer estimate_source_income for original pay and automatic reference FX; never duplicate pay or invent country allocations for this tool. No storage, identifiers, files, payment, treaty credit or direct filing.","inputSchema":{"type":"object","additionalProperties":false,"required":["taxYear","countries","facts","income"],"properties":{"taxYear":{"type":"integer","minimum":2000,"maximum":2100,"description":"Income year, not Singapore assessment year. Only 2025 and 2026 have checked estimate parameters; unreviewed years return no estimate."},"countries":{"type":"array","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","maxLength":48},"description":"Singapore and Taiwan currently supported; other countries return needs_review with no amount."},"facts":{"type":"object","additionalProperties":false,"properties":{"singaporeResidency":{"enum":["resident","non_resident","unknown",null],"default":"unknown","description":"Omit or use null when Singapore residency is unknown."},"taiwanDays":{"type":"integer","minimum":0,"maximum":366},"taiwanAlien":{"type":"boolean"},"taiwanSingleUnder70":{"type":"boolean"},"taiwanEarlyDeparture":{"type":"boolean"},"ordinaryEmploymentOnly":{"type":"boolean","description":"True for confirmed regular employment. Ask the treaty residence questions only after true. False means this pay needs a separate double-tax review. Omit if unknown. The answer does not establish treaty eligibility or professional approval."},"treatyPermanentHome":{"enum":["unknown","Singapore","Taiwan","both","neither"],"description":"Article 4 permanent-home fact for a dual domestic resident. Do not infer from citizenship or days. Unknown for changing or unclear arrangements."},"treatyCloserRelations":{"enum":["unknown","Singapore","Taiwan","undetermined"],"description":"Relevant only when permanent homes are available in both territories. Unknown is not the same as cannot be determined."},"treatyHabitualAbode":{"enum":["unknown","Singapore","Taiwan","both","neither"],"description":"Relevant only with no permanent home, or homes in both and undetermined closer relations. Never simply choose the larger day count; both/neither requires authority resolution."}}},"income":{"type":"array","maxItems":64,"items":{"type":"object","additionalProperties":false,"required":["jurisdiction","category","currency","gross"],"properties":{"jurisdiction":{"enum":["Singapore","Taiwan"]},"category":{"enum":["employment","interest","dividend","other_investment"]},"currency":{"enum":["SGD","TWD"],"description":"Must match the jurisdiction. No implicit FX conversion."},"gross":{"type":"number","minimum":0,"maximum":1000000000},"withheld":{"type":["number","null"],"minimum":0,"maximum":1000000000,"description":"Omit or use null when no withholding amount was supplied."},"foreignEmployer":{"type":"boolean","description":"For each positive Taiwan employment amount when the stay is under 183 days, set true for an employer outside Taiwan or false for a Taiwan employer. If unknown, omit the field; the result flags employer_location_unconfirmed and leaves the Taiwan amount unset. Never infer this from payment currency."},"singaporeEmploymentScope":{"const":"wholly_overseas_non_government","description":"Singapore employment only: caller-confirmed overseas-based contract, all services wholly outside Singapore, not government employment. Excludes this row from Singapore salary tax, not other obligations. Prefer source-estimates for actual work and contract validation. Never infer this from employer, currency or presence."}}}}}},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"schema":{"const":"tax-assistant.estimate.v1"},"taxYear":{"type":"integer","minimum":2000,"maximum":2101},"ruleVersion":{"type":"string"},"ruleReviewStatus":{"type":"string"},"productionApproved":{"const":false},"directFiling":{"const":false},"resultScope":{"const":"employment_only_not_total_tax_liability"},"totalPayable":{"type":"object","additionalProperties":false,"properties":{"status":{"const":"not_determined"},"amount":{"type":"null"},"currency":{"type":"null"},"reason":{"const":"employment_only_relief_not_assessed"}},"required":["status","amount","currency","reason"],"description":"Final combined tax bill. The amount stays null because this service estimates employment tax only. A separate employment-tax projection may be available."},"doubleTaxRelief":{"type":"object","additionalProperties":false,"properties":{"status":{"const":"not_assessed"},"creditAmount":{"type":"null"},"automaticCreditApplied":{"const":false}},"required":["status","creditAmount","automaticCreditApplied"],"description":"Confirmed credit applied to the country amounts. Eligibility has not been assessed and the credit amount stays null. For a supported scenario, see reliefProjection for an illustration."},"results":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"country":{"type":"string"},"currency":{"anyOf":[{"enum":["SGD","TWD","USD","CAD"]},{"type":"null"}]},"incomeYear":{"type":"integer","minimum":2000,"maximum":2101},"assessmentYear":{"type":"integer","minimum":2000,"maximum":2101},"status":{"enum":["needs_review","preliminary_estimate"]},"confidence":{"const":"preliminary"},"filingObligation":{"const":"not_determined"},"zeroEstimateReason":{"anyOf":[{"enum":["singapore_wholly_overseas_salary_excluded","foreign_employer_salary_excluded","employment_below_taxable_threshold"]},{"type":"null"}]},"estimatedTax":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"lower":{"type":"number","minimum":0},"upper":{"type":"number","minimum":0}},"required":["lower","upper"]},{"type":"null"}]},"estimatedBalance":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"lower":{"type":"number"},"upper":{"type":"number"}},"required":["lower","upper"]},{"type":"null"}]},"calculation":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"employmentGross":{"type":"number","minimum":0},"deductions":{"type":"number","minimum":0},"taxableEmployment":{"type":"number","minimum":0},"withholdingApplied":{"type":"number","minimum":0},"excludedInvestmentGross":{"type":"number","minimum":0},"excludedEmploymentGross":{"type":"number","minimum":0}},"required":["employmentGross","deductions","taxableEmployment","withholdingApplied","excludedInvestmentGross"]},{"type":"null"}]},"filing":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"incomeYear":{"type":"integer","minimum":2000,"maximum":2101},"filingYear":{"type":"integer","minimum":2000,"maximum":2101},"deadline":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"supportingDocumentsDueBefore":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"deadlineStatus":{"enum":["departure_or_withholding_review","official_window_checked","not_yet_confirmed"]},"usualFilingMonth":{"anyOf":[{"const":"May"},{"type":"null"}]},"portalUrl":{"type":"string","format":"uri"},"portalName":{"type":"string"},"submission":{"const":"user_submits_no_direct_filing"},"citation":{"type":"string","format":"uri"},"sourceCheck":{"type":"object","additionalProperties":false,"properties":{"state":{"enum":["unchanged","review_required","not_verified","not_applicable"]},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","format":"uri"},"state":{"enum":["unchanged","review_required","not_verified"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["url","state","checkedAt"]}},"professionalApproval":{"const":false}},"required":["state","sources","professionalApproval"]}},"required":["incomeYear","filingYear","deadline","supportingDocumentsDueBefore","deadlineStatus","usualFilingMonth","portalUrl","portalName","submission","citation","sourceCheck"],"description":"A filing estimate does not establish a return obligation. departure_or_withholding_review leaves the Taiwan annual date unset. Confirm the route, timing and withholding with the tax office before giving submission steps."},{"type":"null"}]},"issues":{"type":"array","items":{"type":"string"}},"citations":{"type":"array","items":{"type":"string","format":"uri"}},"residency":{"enum":["resident","non_resident","unknown"]},"incomeBasis":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"country":{"type":"string"},"originalCurrency":{"enum":["SGD","TWD","USD","CAD"]},"originalGross":{"type":"number","minimum":0},"allocatedOriginalGross":{"type":"number","minimum":0},"localGross":{"type":"number","minimum":0},"rate":{"type":"number","exclusiveMinimum":0},"rateDate":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"ratePolicy":{"type":"string"},"sourceIndex":{"type":"integer","minimum":0},"allocationBasis":{"enum":["one_work_country","confirmed_work_days","travel_day_projection","investment_source","singapore_incidental_duties","singapore_wholly_overseas"]},"incomeCategory":{"enum":["interest","dividend","other_investment"]},"sourceRelation":{"enum":["domestic","foreign"]}},"required":["country","originalCurrency","originalGross","allocatedOriginalGross","localGross","rate","rateDate","sourceIndex","allocationBasis"]}},"sourceChecks":{"type":"object","additionalProperties":false,"properties":{"calculation":{"type":"object","additionalProperties":false,"properties":{"state":{"enum":["unchanged","review_required","not_verified","not_applicable"]},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","format":"uri"},"state":{"enum":["unchanged","review_required","not_verified"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["url","state","checkedAt"]}},"professionalApproval":{"const":false}},"required":["state","sources","professionalApproval"]},"filing":{"type":"object","additionalProperties":false,"properties":{"state":{"enum":["unchanged","review_required","not_verified","not_applicable"]},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","format":"uri"},"state":{"enum":["unchanged","review_required","not_verified"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["url","state","checkedAt"]}},"professionalApproval":{"const":false}},"required":["state","sources","professionalApproval"]}},"required":["calculation","filing"]}},"required":["country","currency","incomeYear","assessmentYear","status","confidence","filingObligation","zeroEstimateReason","estimatedTax","estimatedBalance","calculation","filing","issues","citations","sourceChecks"],"allOf":[{"if":{"properties":{"status":{"const":"needs_review"}}},"then":{"properties":{"estimatedTax":{"type":"null"},"estimatedBalance":{"type":"null"},"calculation":{"type":"null"}}},"else":{"properties":{"estimatedTax":{"type":"object","additionalProperties":false,"properties":{"lower":{"type":"number","minimum":0},"upper":{"type":"number","minimum":0}},"required":["lower","upper"]},"estimatedBalance":{"type":"object","additionalProperties":false,"properties":{"lower":{"type":"number"},"upper":{"type":"number"}},"required":["lower","upper"]},"calculation":{"type":"object"},"currency":{"enum":["SGD","TWD","USD","CAD"]}}}}]},"minItems":1,"maxItems":8},"treaty":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"version":{"enum":["new_agreement","earlier_agreement"]},"automaticCreditApplied":{"const":false},"paymentOrder":{"const":"no_automatic_country_first_rule"},"citation":{"type":"string","format":"uri"},"sourceCheck":{"type":"object","additionalProperties":false,"properties":{"state":{"enum":["unchanged","review_required","not_verified","not_applicable"]},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","format":"uri"},"state":{"enum":["unchanged","review_required","not_verified"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["url","state","checkedAt"]}},"professionalApproval":{"const":false}},"required":["state","sources","professionalApproval"]}},"required":["version","automaticCreditApplied","paymentOrder","citation","sourceCheck"]},{"type":"null"}]},"privacy":{"type":"object","additionalProperties":false,"properties":{"persisted":{"const":false},"rawDocumentsAccepted":{"const":false},"identifiersAccepted":{"const":false}},"required":["persisted","rawDocumentsAccepted","identifiersAccepted"]}},"required":["schema","taxYear","ruleVersion","ruleReviewStatus","productionApproved","directFiling","resultScope","totalPayable","doubleTaxRelief","results","treaty","privacy"]}},{"name":"estimate_source_income","title":"Estimate salary tax from original pay","description":"Default free salary estimate with filing timing and official steps for supported cases. Enter each income once in its original currency; automatic reference FX. Actual work and singaporeEmploymentArrangement determine overlapping country tax views. Optional reliefProjection is illustrative, not verified eligibility, payment evidence or a final bill. Investments are review-only, excluded from salary tax. No income sent to rate providers, filing-approved rates, automatic credit claim, payer names, identifiers or documents.","inputSchema":{"type":"object","additionalProperties":false,"required":["taxYear","countries","facts","income"],"properties":{"taxYear":{"type":"integer","minimum":2000,"maximum":2100,"description":"Income year, not Singapore assessment year. Only 2025 and 2026 have checked estimate parameters; unreviewed years return no estimate."},"countries":{"type":"array","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","maxLength":48},"description":"Singapore and Taiwan currently supported; other countries return needs_review with no amount."},"facts":{"type":"object","additionalProperties":false,"properties":{"singaporeResidency":{"enum":["resident","non_resident","unknown",null],"default":"unknown","description":"Omit or use null when Singapore residency is unknown."},"taiwanDays":{"type":"integer","minimum":0,"maximum":366},"taiwanAlien":{"type":"boolean"},"taiwanSingleUnder70":{"type":"boolean"},"taiwanEarlyDeparture":{"type":"boolean"},"ordinaryEmploymentOnly":{"type":"boolean","description":"True for confirmed regular employment. Ask the treaty residence questions only after true. False means this pay needs a separate double-tax review. Omit if unknown. The answer does not establish treaty eligibility or professional approval."},"treatyPermanentHome":{"enum":["unknown","Singapore","Taiwan","both","neither"],"description":"Article 4 permanent-home fact for a dual domestic resident. Do not infer from citizenship or days. Unknown for changing or unclear arrangements."},"treatyCloserRelations":{"enum":["unknown","Singapore","Taiwan","undetermined"],"description":"Relevant only when permanent homes are available in both territories. Unknown is not the same as cannot be determined."},"treatyHabitualAbode":{"enum":["unknown","Singapore","Taiwan","both","neither"],"description":"Relevant only with no permanent home, or homes in both and undetermined closer relations. Never simply choose the larger day count; both/neither requires authority resolution."}}},"income":{"type":"array","maxItems":64,"items":{"type":"object","additionalProperties":false,"required":["category","currency","gross"],"properties":{"category":{"enum":["Salary","Bonus","Dividend","Interest","Other investment"]},"currency":{"enum":["SGD","TWD","USD","CAD"]},"gross":{"type":"number","minimum":0,"maximum":1000000000,"description":"Original annual amount. Never duplicate this across country tax buckets."},"singaporeEmploymentArrangement":{"enum":["unknown","incidental","wholly_overseas","part_year_overseas","government"],"description":"Salary/Bonus only. Ask per income when work includes time outside Singapore and Singapore is selected or the employer is Singapore-based. incidental means overseas duties part of a Singapore-based job: full pay enters the Singapore pre-credit estimate, possibly overlapping another country. wholly_overseas confirms a contract based wholly outside Singapore, no Singapore services and no government work. Conflicting Singapore work or travel-only projections block that exclusion. part_year_overseas identifies income spanning a change between Singapore-based and overseas-based employment: posting dates, contract changes and pay by period need review; no Singapore total or combined relief is calculated. Supported Taiwan work-pay estimates remain available. Do not relabel to bypass review. Unknown blocks the affected Singapore estimate, not Taiwan; government cases block selected country estimates for review. Never infer from currency, citizenship or days alone."},"workCountry":{"type":"string","maxLength":48,"description":"Employment: Singapore, Taiwan or a selected actual work country, multiple with workDays, travel for an unverified full-year calendar projection, or empty. Work location is separate from filing scope; it never adds an unselected country estimate. Legacy investments may use this as source country; explicit sourceCountry takes precedence."},"sourceCountry":{"type":"string","maxLength":48,"description":"Investments only: source country independently of filing countries, English letters/spaces or empty for follow-up. Another source country does not add a filing jurisdiction. Other means a source outside the focus countries. Amount is shown for review in each selected supported country, never allocated by travel or included in employment tax. No automatic exemption, basic-tax calculation or foreign credit."},"employerCountry":{"enum":["Singapore","Taiwan","Other",""]},"workDays":{"type":"object","maxProperties":8,"additionalProperties":{"type":"integer","minimum":0,"maximum":366},"description":"Employment only. Singapore, Taiwan or selected countries; total actual work days must fit the income year. A day split does not establish the Singapore employment arrangement."},"withheld":{"type":"number","minimum":0,"maximum":1000000000},"withholdingCountry":{"type":"string","maxLength":48,"description":"Country that received withholding, independently of filing countries. Required for positive withheld amounts. English letters/spaces or Other. Not automatically credited elsewhere or deducted from employment tax for investments."},"withholdingCurrency":{"enum":["SGD","TWD","USD","CAD"]}}}},"travel":{"type":"array","maxItems":128,"items":{"type":"object","additionalProperties":false,"required":["country","arrivalDate","departureDate"],"properties":{"country":{"type":"string","maxLength":48},"arrivalDate":{"type":"string","format":"date"},"departureDate":{"type":"string","format":"date"}}},"description":"Caller-confirmed presence periods. Taiwan arrival excluded for residency. If supplied, Taiwan count must agree with facts. Travel projection uses separately disclosed inclusive calendar days and needs review."}}},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"schema":{"const":"tax-assistant.source-estimate.v1"},"taxYear":{"type":"integer","minimum":2000,"maximum":2101},"ruleVersion":{"type":"string"},"ruleReviewStatus":{"type":"string"},"productionApproved":{"const":false},"directFiling":{"const":false},"resultScope":{"const":"employment_only_not_total_tax_liability"},"totalPayable":{"type":"object","additionalProperties":false,"properties":{"status":{"const":"not_determined"},"amount":{"type":"null"},"currency":{"type":"null"},"reason":{"const":"employment_only_relief_not_assessed"}},"required":["status","amount","currency","reason"],"description":"Final combined tax bill. The amount stays null because this service estimates employment tax only. A separate employment-tax projection may be available."},"doubleTaxRelief":{"type":"object","additionalProperties":false,"properties":{"status":{"const":"not_assessed"},"creditAmount":{"type":"null"},"automaticCreditApplied":{"const":false}},"required":["status","creditAmount","automaticCreditApplied"],"description":"Confirmed credit applied to the country amounts. Eligibility has not been assessed and the credit amount stays null. For a supported scenario, see reliefProjection for an illustration."},"results":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"country":{"type":"string"},"currency":{"anyOf":[{"enum":["SGD","TWD","USD","CAD"]},{"type":"null"}]},"incomeYear":{"type":"integer","minimum":2000,"maximum":2101},"assessmentYear":{"type":"integer","minimum":2000,"maximum":2101},"status":{"enum":["needs_review","preliminary_estimate"]},"confidence":{"const":"preliminary"},"filingObligation":{"const":"not_determined"},"zeroEstimateReason":{"anyOf":[{"enum":["singapore_wholly_overseas_salary_excluded","foreign_employer_salary_excluded","employment_below_taxable_threshold"]},{"type":"null"}]},"estimatedTax":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"lower":{"type":"number","minimum":0},"upper":{"type":"number","minimum":0}},"required":["lower","upper"]},{"type":"null"}]},"estimatedBalance":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"lower":{"type":"number"},"upper":{"type":"number"}},"required":["lower","upper"]},{"type":"null"}]},"calculation":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"employmentGross":{"type":"number","minimum":0},"deductions":{"type":"number","minimum":0},"taxableEmployment":{"type":"number","minimum":0},"withholdingApplied":{"type":"number","minimum":0},"excludedInvestmentGross":{"type":"number","minimum":0},"excludedEmploymentGross":{"type":"number","minimum":0}},"required":["employmentGross","deductions","taxableEmployment","withholdingApplied","excludedInvestmentGross"]},{"type":"null"}]},"filing":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"incomeYear":{"type":"integer","minimum":2000,"maximum":2101},"filingYear":{"type":"integer","minimum":2000,"maximum":2101},"deadline":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"supportingDocumentsDueBefore":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"deadlineStatus":{"enum":["departure_or_withholding_review","official_window_checked","not_yet_confirmed"]},"usualFilingMonth":{"anyOf":[{"const":"May"},{"type":"null"}]},"portalUrl":{"type":"string","format":"uri"},"portalName":{"type":"string"},"submission":{"const":"user_submits_no_direct_filing"},"citation":{"type":"string","format":"uri"},"sourceCheck":{"type":"object","additionalProperties":false,"properties":{"state":{"enum":["unchanged","review_required","not_verified","not_applicable"]},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","format":"uri"},"state":{"enum":["unchanged","review_required","not_verified"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["url","state","checkedAt"]}},"professionalApproval":{"const":false}},"required":["state","sources","professionalApproval"]}},"required":["incomeYear","filingYear","deadline","supportingDocumentsDueBefore","deadlineStatus","usualFilingMonth","portalUrl","portalName","submission","citation","sourceCheck"],"description":"A filing estimate does not establish a return obligation. departure_or_withholding_review leaves the Taiwan annual date unset. Confirm the route, timing and withholding with the tax office before giving submission steps."},{"type":"null"}]},"issues":{"type":"array","items":{"type":"string"}},"citations":{"type":"array","items":{"type":"string","format":"uri"}},"residency":{"enum":["resident","non_resident","unknown"]},"incomeBasis":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"country":{"type":"string"},"originalCurrency":{"enum":["SGD","TWD","USD","CAD"]},"originalGross":{"type":"number","minimum":0},"allocatedOriginalGross":{"type":"number","minimum":0},"localGross":{"type":"number","minimum":0},"rate":{"type":"number","exclusiveMinimum":0},"rateDate":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"ratePolicy":{"type":"string"},"sourceIndex":{"type":"integer","minimum":0},"allocationBasis":{"enum":["one_work_country","confirmed_work_days","travel_day_projection","investment_source","singapore_incidental_duties","singapore_wholly_overseas"]},"incomeCategory":{"enum":["interest","dividend","other_investment"]},"sourceRelation":{"enum":["domestic","foreign"]}},"required":["country","originalCurrency","originalGross","allocatedOriginalGross","localGross","rate","rateDate","sourceIndex","allocationBasis"]}},"sourceChecks":{"type":"object","additionalProperties":false,"properties":{"calculation":{"type":"object","additionalProperties":false,"properties":{"state":{"enum":["unchanged","review_required","not_verified","not_applicable"]},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","format":"uri"},"state":{"enum":["unchanged","review_required","not_verified"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["url","state","checkedAt"]}},"professionalApproval":{"const":false}},"required":["state","sources","professionalApproval"]},"filing":{"type":"object","additionalProperties":false,"properties":{"state":{"enum":["unchanged","review_required","not_verified","not_applicable"]},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","format":"uri"},"state":{"enum":["unchanged","review_required","not_verified"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["url","state","checkedAt"]}},"professionalApproval":{"const":false}},"required":["state","sources","professionalApproval"]}},"required":["calculation","filing"]}},"required":["country","currency","incomeYear","assessmentYear","status","confidence","filingObligation","zeroEstimateReason","estimatedTax","estimatedBalance","calculation","filing","issues","citations","sourceChecks"],"allOf":[{"if":{"properties":{"status":{"const":"needs_review"}}},"then":{"properties":{"estimatedTax":{"type":"null"},"estimatedBalance":{"type":"null"},"calculation":{"type":"null"}}},"else":{"properties":{"estimatedTax":{"type":"object","additionalProperties":false,"properties":{"lower":{"type":"number","minimum":0},"upper":{"type":"number","minimum":0}},"required":["lower","upper"]},"estimatedBalance":{"type":"object","additionalProperties":false,"properties":{"lower":{"type":"number"},"upper":{"type":"number"}},"required":["lower","upper"]},"calculation":{"type":"object"},"currency":{"enum":["SGD","TWD","USD","CAD"]}}}}]},"minItems":1,"maxItems":8},"treaty":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"version":{"enum":["new_agreement","earlier_agreement"]},"automaticCreditApplied":{"const":false},"paymentOrder":{"const":"no_automatic_country_first_rule"},"citation":{"type":"string","format":"uri"},"sourceCheck":{"type":"object","additionalProperties":false,"properties":{"state":{"enum":["unchanged","review_required","not_verified","not_applicable"]},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","format":"uri"},"state":{"enum":["unchanged","review_required","not_verified"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["url","state","checkedAt"]}},"professionalApproval":{"const":false}},"required":["state","sources","professionalApproval"]}},"required":["version","automaticCreditApplied","paymentOrder","citation","sourceCheck"]},{"type":"null"}]},"privacy":{"type":"object","additionalProperties":false,"properties":{"persisted":{"const":false},"originalAmountsSentToRateProvider":{"const":false},"rawDocumentsAccepted":{"const":false},"identifiersAccepted":{"const":false}},"required":["persisted","originalAmountsSentToRateProvider","rawDocumentsAccepted","identifiersAccepted"]},"presence":{"type":"object","additionalProperties":false,"properties":{"schema":{"const":"tax-assistant.residency-days.v1"},"taxYear":{"type":"integer","minimum":2000,"maximum":2101},"days":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":366}},"basis":{"type":"object","additionalProperties":false,"properties":{"Taiwan":{"const":"arrival_excluded_departure_included"},"Singapore":{"const":"inclusive_physical_presence_not_a_complete_residency_test"},"duplicates":{"const":"counted_once_per_country"}},"required":["Taiwan","Singapore","duplicates"]},"ruleVersion":{"type":"string"},"citations":{"type":"array","items":{"type":"string","format":"uri"}},"confidence":{"const":"user_dates_require_confirmation"}},"required":["schema","taxYear","days","basis","ruleVersion","citations","confidence"]},"questions":{"type":"array","items":{"type":"string"}},"reliefProjection":{"type":"object","additionalProperties":false,"properties":{"schema":{"const":"tassi.relief-projection.v1"},"status":{"enum":["not_available","projected"]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"anyOf":[{"enum":["no_overlapping_employment_tax","taiwan_resident_employment_exemption","singapore_foreign_tax_credit_projection"]},{"type":"null"}]},"countryAmounts":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"country":{"enum":["Singapore","Taiwan"]},"currency":{"enum":["SGD","TWD"]},"beforeRelief":{"type":"number","minimum":0},"projectedRelief":{"type":"number","minimum":0,"description":"Illustrative employment-tax relief based on the supplied facts. Eligibility and any tax paid still need confirmation."},"afterRelief":{"type":"number","minimum":0,"description":"Projected employment tax after potential relief, before local withholding."},"remainingToPay":{"type":"number","minimum":0,"description":"Illustrative employment-tax balance after potential relief and local withholding. Show it as a planning estimate. Final tax due is undetermined."},"possibleOverpayment":{"type":"number","minimum":0,"description":"Possible overpayment from local withholding. Show this separately from the remaining balance in the other jurisdiction. Confirm any refund with the tax authority."},"localWithholding":{"type":"number","minimum":0}},"required":["country","currency","beforeRelief","projectedRelief","afterRelief","remainingToPay","possibleOverpayment","localWithholding"]}},"combined":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"currency":{"const":"TWD"},"beforeRelief":{"type":"number","minimum":0},"projectedRelief":{"type":"number","minimum":0,"description":"Illustrative employment-tax relief based on the supplied facts. Eligibility and any tax paid still need confirmation."},"afterRelief":{"type":"number","minimum":0,"description":"Projected employment tax after potential relief, before local withholding."},"remainingToPay":{"type":"number","minimum":0,"description":"Illustrative employment-tax balance after potential relief and local withholding. Show it as a planning estimate. Final tax due is undetermined."},"possibleOverpayment":{"type":"number","minimum":0,"description":"Possible overpayment from local withholding. Show this separately from the remaining balance in the other jurisdiction. Confirm any refund with the tax authority."}},"required":["currency","beforeRelief","projectedRelief","afterRelief","remainingToPay","possibleOverpayment"]},{"type":"null"}]},"fx":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"twdPerSgd":{"type":"number","exclusiveMinimum":0},"rateDate":{"type":"string","format":"date"},"policy":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"filingReady":{"const":false}},"required":["twdPerSgd","rateDate","policy","expiresAt","filingReady"]},{"type":"null"}]},"beforeReliefEstimate":{"type":"object","additionalProperties":false,"properties":{"currency":{"const":"TWD"},"estimatedTax":{"type":"object","additionalProperties":false,"properties":{"lower":{"type":"number","minimum":0},"upper":{"type":"number","minimum":0}},"required":["lower","upper"]},"fx":{"type":"object","additionalProperties":false,"properties":{"twdPerSgd":{"type":"number","exclusiveMinimum":0},"rateDate":{"type":"string","format":"date"},"policy":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"filingReady":{"const":false}},"required":["twdPerSgd","rateDate","policy","expiresAt","filingReady"]}},"required":["currency","estimatedTax","fx"],"description":"Employment tax subtotal before treaty relief and withholding, using the dated reference exchange rate. Available when both supported country estimates and current FX are present. The subtotal and any overlapping tax are illustrative."},"residence":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"status":{"enum":["preliminary","needs_facts","authority_review"]},"country":{"anyOf":[{"enum":["Singapore","Taiwan"]},{"type":"null"}]},"basis":{"anyOf":[{"type":"string"},{"type":"null"}]},"question":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","country","basis","question"]},{"type":"null"}]},"filingReady":{"const":false},"eligibility":{"const":"user_facts_not_independently_verified"},"taxPaymentEvidence":{"enum":["not_assessed","projected_foreign_tax_not_payment_evidence"]},"citations":{"type":"array","items":{"type":"string","format":"uri"}},"treatyVersion":{"enum":["new_agreement","earlier_agreement"]},"sourceCheck":{"type":"object","additionalProperties":false,"properties":{"state":{"enum":["unchanged","review_required","not_verified","not_applicable"]},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","format":"uri"},"state":{"enum":["unchanged","review_required","not_verified"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["url","state","checkedAt"]}},"professionalApproval":{"const":false}},"required":["state","sources","professionalApproval"]}},"required":["schema","status","reason","method","countryAmounts","combined","fx","residence","filingReady","eligibility","taxPaymentEvidence","citations","treatyVersion","sourceCheck"],"allOf":[{"if":{"properties":{"status":{"const":"not_available"}}},"then":{"properties":{"combined":{"type":"null"},"countryAmounts":{"maxItems":0},"method":{"type":"null"},"fx":{"type":"null"},"reason":{"type":"string"}}},"else":{"properties":{"combined":{"type":"object"},"countryAmounts":{"minItems":2,"maxItems":2},"method":{"type":"string"},"fx":{"type":"object"},"reason":{"type":"null"}}}}],"description":"Employment-tax projection using supplied facts and dated reference FX. If status is projected, show the illustrative balance and the source check. If not available, show the reason and beforeReliefEstimate when present."},"exchangeRateStatus":{"enum":["not_needed","unavailable","reference_only"]},"exchangeRateFailure":{"type":"object","additionalProperties":false,"properties":{"reason":{"enum":["unavailable","upstream_http","unexpected_format","unexpected_content_type","rate_date_links_invalid","currency_rows_invalid","spot_buying_cells_invalid","invalid_rates","invalid_rate_date","stale_rate_date","future_rate_date","body_too_large","timeout","network_failure"]},"upstreamStatus":{"type":"integer","minimum":100,"maximum":599},"pageShape":{"type":"object","additionalProperties":false,"properties":{"anchorCount":{"type":"integer","minimum":0,"maximum":1000},"tableCount":{"type":"integer","minimum":0,"maximum":1000},"currencyLabelCount":{"type":"integer","minimum":0,"maximum":1000},"csvLinkCount":{"type":"integer","minimum":0,"maximum":1000},"datedCsvLinkCount":{"type":"integer","minimum":0,"maximum":1000}},"required":["anchorCount","tableCount","currencyLabelCount","csvLinkCount","datedCsvLinkCount"]}},"required":["reason"]}},"required":["schema","taxYear","ruleVersion","ruleReviewStatus","productionApproved","directFiling","resultScope","totalPayable","doubleTaxRelief","results","treaty","privacy","presence","questions","reliefProjection","exchangeRateStatus"]}},{"name":"count_days_free","title":"Count days in Singapore or Taiwan","description":"Free stateless day count from dates supplied for this call. Does not determine tax residency. Dates are not stored.","inputSchema":{"type":"object","additionalProperties":false,"required":["taxYear","segments"],"properties":{"taxYear":{"type":"integer","minimum":2000,"maximum":2100},"segments":{"type":"array","maxItems":128,"items":{"type":"object","additionalProperties":false,"required":["country","arrivalDate","departureDate"],"properties":{"country":{"type":"string","maxLength":48},"arrivalDate":{"type":"string","format":"date"},"departureDate":{"type":"string","format":"date"}}}}}},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"schema":{"const":"tax-assistant.residency-days.v1"},"taxYear":{"type":"integer","minimum":2000,"maximum":2101},"days":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":366}},"basis":{"type":"object","additionalProperties":false,"properties":{"Taiwan":{"const":"arrival_excluded_departure_included"},"Singapore":{"const":"inclusive_physical_presence_not_a_complete_residency_test"},"duplicates":{"const":"counted_once_per_country"}},"required":["Taiwan","Singapore","duplicates"]},"ruleVersion":{"type":"string"},"citations":{"type":"array","items":{"type":"string","format":"uri"}},"confidence":{"const":"user_dates_require_confirmation"}},"required":["schema","taxYear","days","basis","ruleVersion","citations","confidence"]}},{"name":"get_rule_status","title":"Read tax rules and sources","description":"Public calculation parameters, supported income years, source links and reviewer status. Never claim these are professionally approved.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"schema":{"const":"tax-assistant.estimate-rules.v1"},"version":{"type":"string"},"verifiedAt":{"type":"string","format":"date"},"reviewStatus":{"type":"string"},"productionApproved":{"const":false},"incomeYears":{"type":"array","items":{"type":"integer","minimum":2000,"maximum":2101}},"sources":{"type":"object","additionalProperties":{"type":"string","format":"uri"}},"Singapore":{"type":"object","additionalProperties":false,"properties":{"currency":{"const":"SGD"},"assessmentYearOffset":{"type":"integer","minimum":0},"residentBands":{"type":"array","items":{"type":"array","minItems":2,"maxItems":2,"items":[{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},{"type":"number","minimum":0,"maximum":1}],"additionalItems":false}},"nonresidentEmploymentRate":{"type":"number","minimum":0,"maximum":1},"shortTermEmploymentDays":{"type":"integer","minimum":0}},"required":["currency","assessmentYearOffset","residentBands","nonresidentEmploymentRate","shortTermEmploymentDays"]},"Taiwan":{"type":"object","additionalProperties":false,"properties":{"currency":{"const":"TWD"},"alienResidentDays":{"type":"integer","minimum":0},"foreignEmployerDays":{"type":"integer","minimum":0},"excludeArrivalDay":{"type":"boolean"},"nonresidentEmploymentRate":{"type":"number","minimum":0,"maximum":1},"lowMonthlySalaryRate":{"type":"number","minimum":0,"maximum":1},"years":{"type":"object","additionalProperties":{"type":"object","additionalProperties":false,"properties":{"residentBands":{"type":"array","items":{"type":"array","minItems":2,"maxItems":2,"items":[{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},{"type":"number","minimum":0,"maximum":1}],"additionalItems":false}},"personalExemption":{"type":"number","minimum":0},"singleStandardDeduction":{"type":"number","minimum":0},"salaryDeduction":{"type":"number","minimum":0}},"required":["residentBands","personalExemption","singleStandardDeduction","salaryDeduction"]}}},"required":["currency","alienResidentDays","foreignEmployerDays","excludeArrivalDay","nonresidentEmploymentRate","lowMonthlySalaryRate","years"]},"filingWindows":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"object","additionalProperties":false,"properties":{"opensOn":{"type":"string","format":"date"},"deadline":{"type":"string","format":"date"},"supportingDocumentsDueBefore":{"type":"string","format":"date"},"source":{"type":"string"}},"required":["opensOn","deadline","source"]}}},"filingGuidanceSources":{"type":"object","additionalProperties":{"type":"string","format":"uri"}},"treaty":{"type":"object","additionalProperties":false,"properties":{"enteredIntoForce":{"type":"string","format":"date"},"newAgreementEffectiveFrom":{"type":"string","format":"date"},"ordinaryEmploymentShortStayDays":{"type":"integer","minimum":0},"automaticCreditsEnabled":{"const":false}},"required":["enteredIntoForce","newAgreementEffectiveFrom","ordinaryEmploymentShortStayDays","automaticCreditsEnabled"]}},"required":["schema","version","verifiedAt","reviewStatus","productionApproved","incomeYears","sources","Singapore","Taiwan","filingWindows","treaty"]}},{"name":"get_exchange_rates","title":"Read reference exchange rates","description":"Public SGD, TWD, USD and CAD reference quotes when available: Bank of Taiwan spot-buying, with a separately labelled RBA daily cross-rate backup via Frankfurter. Check returned policy, source and date. No user inputs, amounts, files or private storage. Rough estimates only, never filing rates or treaty credits.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"schema":{"const":"tax-assistant.exchange-rates.v1"},"policy":{"type":"string"},"source":{"type":"string","format":"uri"},"rateDate":{"type":"string","format":"date"},"fetchedAt":{"type":"string","format":"date-time"},"twdPerUnit":{"type":"object","additionalProperties":false,"properties":{"TWD":{"const":1},"SGD":{"type":"number","exclusiveMinimum":0},"USD":{"type":"number","exclusiveMinimum":0},"CAD":{"type":"number","exclusiveMinimum":0}},"required":["TWD","SGD","USD"]},"filingReady":{"const":false},"basis":{"enum":["latest_completed_business_day_reference_not_receipt_date_tax_rate","daily_reference_cross_rate_not_receipt_date_tax_rate"]}},"required":["schema","policy","source","rateDate","fetchedAt","twdPerUnit","filingReady","basis"]}},{"name":"get_capabilities","title":"See what Tassi covers","description":"Check current country/year coverage, languages and unavailable services before collecting tax facts. Does not record interest, grant access or enable payment.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"schema":{"const":"tassi.capabilities.v1"},"status":{"enum":["public_pilot","private_pilot"]},"productionApproved":{"const":false},"languages":{"type":"object","additionalProperties":false,"properties":{"ui":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string"},"nativeName":{"type":"string"},"pages":{"type":"array","items":{"type":"string"}},"fallback":{"type":"string"}},"required":["code","nativeName","pages","fallback"]}},"reports":{"type":"array","items":{"type":"string"}},"independentOfTaxCoverage":{"const":true},"professionalTranslationReview":{"type":"string"}},"required":["ui","reports","independentOfTaxCoverage","professionalTranslationReview"]},"countries":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","pattern":"^[A-Z]{2}$"},"name":{"type":"string"},"incomeYears":{"type":"array","items":{"type":"integer","minimum":2000,"maximum":2101}}},"required":["code","name","incomeYears"]}},"capabilities":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"id":{"enum":["estimate_tax_position","prepare_tax_packet","direct_filing"]},"status":{"enum":["free_pilot","paid_agent","unavailable"]}},"required":["id","status"]}},"ruleVersion":{"type":"string"},"reviewStatus":{"type":"string"},"rulesPath":{"const":"/api/v1/estimate-rules"},"coverageCheck":{"const":"/api/v1/coverage/check"},"interest":{"type":"object","additionalProperties":false,"properties":{"available":{"type":"boolean"},"path":{"const":"/api/v1/coverage/interest"},"consentVersion":{"type":"string"}},"required":["available","path","consentVersion"]},"taxReference":{"type":"object","additionalProperties":false,"properties":{"catalog":{"type":"string"},"guide":{"type":"string"},"directory":{"type":"string"},"free":{"const":true},"revision":{"type":"string"},"paidLookup":{"type":"object","additionalProperties":false,"properties":{"path":{"const":"/api/v1/tax-reference/lookup"},"method":{"const":"POST"},"paymentProtocol":{"const":"x402_v2"},"amount":{"const":"0.001"},"asset":{"const":"USDC"},"network":{"enum":["eip155:5042","eip155:5042002"]},"funding":{"const":"circle_gateway"},"wallet":{"const":"externally_owned_account"}},"required":["path","method","paymentProtocol","amount","asset","network","funding","wallet"]}},"required":["catalog","guide","directory","free","revision"]},"taxDetailsRequired":{"const":false},"directFiling":{"const":false},"payments":{"type":"boolean"},"servicePricing":{"type":"object","additionalProperties":false,"properties":{"schema":{"const":"tassi.service-pricing.v4"},"quoteCurrency":{"const":"USD"},"estimateAmountMinor":{"const":0},"preparationPlans":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"id":{"const":"generate_report"},"service":{"const":"prepare_tax_packet"},"amountMinor":{"type":"integer","minimum":1,"maximum":1000000},"currency":{"const":"USD"},"settlement":{"type":"object","additionalProperties":false,"properties":{"asset":{"const":"USDC"},"units":{"type":"string","pattern":"^[0-9]+$"},"decimals":{"const":6},"network":{"type":"string"},"feesUnits":{"type":"string","pattern":"^[0-9]+$"}},"required":["asset","units","decimals","network","feesUnits"]},"termsVersion":{"type":"string"},"refundPolicyVersion":{"type":"string"},"status":{"enum":["contract_ready","disabled_until_authorized","available"]},"pricingStatus":{"const":"operator_defined_before_marketplace_listing"},"position":{"type":"string"},"refundPolicy":{"type":"string"}},"required":["id","service","amountMinor","currency","settlement","termsVersion","refundPolicyVersion","status","pricingStatus","position","refundPolicy"]}},"customInquiry":{"type":"object","additionalProperties":false,"properties":{"status":{"const":"enquiry_only"},"contactEmail":{"const":"hello@tassi.ai"},"price":{"type":"null"},"availability":{"const":"subject_to_confirmation"},"sensitiveDataAccepted":{"const":false}},"required":["status","contactEmail","price","availability","sensitiveDataAccepted"]},"billingUnit":{"const":"report"},"automaticRenewal":{"const":false},"professionalReviewIncluded":{"const":false},"directFilingIncluded":{"const":false},"taxTreatment":{"const":"confirmed_before_checkout"},"paidPricingStatus":{"enum":["human_free_x402_planned","human_free_x402_live"]},"paymentsEnabled":{"type":"boolean"},"plannedSettlementAssets":{"type":"array","items":{"const":"USDC"}},"settlementQuoteRequired":{"const":true},"usdUsdcParityGuaranteed":{"const":false},"governmentTaxCurrency":{"const":"jurisdiction_local_currency"}},"required":["schema","quoteCurrency","estimateAmountMinor","preparationPlans","customInquiry","billingUnit","automaticRenewal","professionalReviewIncluded","directFilingIncluded","taxTreatment","paidPricingStatus","paymentsEnabled","plannedSettlementAssets","settlementQuoteRequired","usdUsdcParityGuaranteed","governmentTaxCurrency"]},"freeTesting":{"type":"object","additionalProperties":false,"properties":{"examplesPath":{"const":"/agent-examples.json"},"syntheticDataOnly":{"type":"boolean"},"accountRequired":{"const":false},"paymentRequired":{"const":false},"deploymentProtectionMayApply":{"type":"boolean"}},"required":["examplesPath","syntheticDataOnly","accountRequired","paymentRequired","deploymentProtectionMayApply"]},"publicAccess":{"type":"object","additionalProperties":false,"properties":{"mode":{"const":"calculation_facts_only"},"accountRequired":{"const":false},"invitationRequired":{"const":false},"apiKeyRequired":{"const":false},"walletRequired":{"const":false},"paymentRequired":{"const":false},"applicationPersistsInputs":{"const":false},"identifiersAccepted":{"const":false},"documentsAccepted":{"const":false},"hostingMetadataProcessedSeparately":{"const":true},"privacyPath":{"const":"/privacy/"}},"required":["mode","accountRequired","invitationRequired","apiKeyRequired","walletRequired","paymentRequired","applicationPersistsInputs","identifiersAccepted","documentsAccepted","hostingMetadataProcessedSeparately","privacyPath"]},"demand":{"type":"object","additionalProperties":false,"properties":{"available":{"type":"boolean"},"path":{"const":"/api/v1/demand/interest"},"consentVersion":{"type":"string"},"needs":{"type":"array","items":{"type":"string"}},"sources":{"type":"array","items":{"type":"string"}},"entrypoints":{"type":"array","items":{"type":"string"}},"maxCountries":{"type":"integer","minimum":0},"maxNeeds":{"type":"integer","minimum":0},"receiptHours":{"type":"integer","minimum":0},"aggregateMonths":{"type":"integer","minimum":0},"purpose":{"const":"product_prioritisation"},"humanPermissionRequired":{"const":true},"contactCollected":{"const":false},"countsAre":{"const":"opted_in_requests_not_unique_people"},"offersService":{"const":false}},"required":["available","path","consentVersion","needs","sources","entrypoints","maxCountries","maxNeeds","receiptHours","aggregateMonths","purpose","humanPermissionRequired","contactCollected","countsAre","offersService"]}},"required":["schema","status","productionApproved","languages","countries","capabilities","ruleVersion","reviewStatus","rulesPath","coverageCheck","interest","taxDetailsRequired","directFiling","payments","servicePricing","freeTesting","demand"]}},{"name":"check_coverage","title":"Check country and year coverage","description":"Check all requested ISO alpha-2 country codes, income year and capability. Unsupported coverage keeps the original selection and estimatedTax null, never zero tax. Before offering a limitedAlternative for salary, confirm it covers where the person did the work. Explain exclusions, ask the human before narrowing scope, and retain exclusions in every result. Never claim a complete cross-border assessment. No personal facts, storage, demand recording or service booking.","inputSchema":{"type":"object","additionalProperties":false,"required":["countryCodes","taxYear","capability"],"properties":{"countryCodes":{"type":"array","minItems":1,"maxItems":4,"uniqueItems":true,"items":{"type":"string","pattern":"^[A-Z]{2}$","description":"Assigned ISO 3166-1 alpha-2 code. Reserved or unknown codes are rejected."}},"taxYear":{"type":"integer","minimum":2000,"maximum":2100},"capability":{"type":"string","enum":["estimate_tax_position","prepare_tax_packet","direct_filing"]}}},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"schema":{"const":"tassi.coverage.v1"},"countryCodes":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},"taxYear":{"type":"integer","minimum":2000,"maximum":2101},"capability":{"enum":["estimate_tax_position","prepare_tax_packet","direct_filing"]},"status":{"enum":["supported_for_pilot","unsupported_jurisdiction","unsupported_tax_year","capability_unavailable"]},"retryable":{"const":false},"estimatedTax":{"type":"null"},"supportedForPilot":{"type":"boolean"},"productionApproved":{"const":false},"jurisdictions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","pattern":"^[A-Z]{2}$"},"status":{"enum":["unsupported_jurisdiction","unsupported_tax_year","pilot_rule_pack"]}},"required":["code","status"]}},"limitedAlternative":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"countryCodes":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},"excludedCountryCodes":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},"taxYear":{"type":"integer","minimum":2000,"maximum":2101},"capability":{"const":"estimate_tax_position"},"requiresExplicitConfirmation":{"const":true},"completeAssessment":{"const":false},"limitations":{"type":"array","items":{"type":"string"}}},"required":["countryCodes","excludedCountryCodes","taxYear","capability","requiresExplicitConfirmation","completeAssessment","limitations"]},{"type":"null"}],"description":"For salary, confirm this scope covers where the person did the work before offering a narrower estimate."},"ruleVersion":{"type":"string"},"reviewStatus":{"type":"string"},"nextAction":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"code":{"const":"provide_employment_facts"},"href":{"const":"/#travelPrompt"}},"required":["code","href"]},{"type":"object","additionalProperties":false,"properties":{"code":{"const":"authorize_agent_report"},"href":{"const":"/account/"}},"required":["code","href"]},{"type":"object","additionalProperties":false,"properties":{"code":{"const":"submit_report_details"},"href":{"const":"/api/v1/reports"}},"required":["code","href"]},{"type":"object","additionalProperties":false,"properties":{"code":{"const":"use_official_guidance"},"interestPath":{"const":"/api/v1/coverage/interest"}},"required":["code","interestPath"]}]},"limitations":{"type":"array","items":{"type":"string"}}},"required":["schema","countryCodes","taxYear","capability","status","retryable","estimatedTax","supportedForPilot","productionApproved","jurisdictions","limitedAlternative","ruleVersion","reviewStatus","nextAction","limitations"]}}],"privateAccess":false,"syntheticDataOnly":false,"deploymentProtectionRequired":false,"chatFilingConnector":{"endpoint":"/mcp/filing","transport":"stateless_streamable_http","authentication":"none","readOnly":true,"setup":"/guides/countries/#use-tassi"},"publicAccess":{"mode":"calculation_facts_only","accountRequired":false,"invitationRequired":false,"apiKeyRequired":false,"walletRequired":false,"paymentRequired":false,"applicationPersistsInputs":false,"identifiersAccepted":false,"documentsAccepted":false,"hostingMetadataProcessedSeparately":true,"privacyPath":"/privacy/"},"savedWorkspaceAccess":{"endpoint":"/mcp/private","resourceMetadata":"/.well-known/oauth-protected-resource/mcp/private","setupGuide":"/developers/guide/#saved-workspace-agents","accountAdmission":"approved_accounts_only","clientRegistration":"pre_registered_only","ownerApprovalRequired":true,"taskPermissionRequired":true}}