Skip to main content
Glama

tax_us.state_tax

Read-onlyIdempotent

Calculates US state income tax for CA, NY, and TX by filing status, progressive brackets, and standard deductions; handles NY recapture and CA surtax, with Texas returning zero.

Instructions

미국 주 소득세를 계산한다(CA, NY, TX). 신고 유형별 누진 구간과 주별 표준공제를 반영하고 TX 는 소득세가 없어 0이다. NY 는 조정총소득(state_agi)이 107,650 을 넘으면 세액 환수(recapture) 워크시트를, CA 는 과세표준 1,000,000 초과분에 1% 가산세를 적용한다. 금액은 USD Decimal 문자열이고 기본은 소수 둘째 자리 HALF_UP이다. 연도별 지원 범위가 다르고(CA 2025), 지방세나 FICA 는 포함하지 않는다.

Input Schema

NameRequiredDescriptionDefault
yearYes
as_ofNo
stateYes
decimalsNo
roundingNoHALF_UP
state_agiNo
filing_statusYes
taxable_incomeYes
include_proposedNo
apply_standard_deductionNo

Output Schema

NameRequiredDescriptionDefault
taxYes
_metaNo서버가 붙이는 영수증(integrity), 엔진, 힌트
stateYes
traceYes계산 근거(tool, formula, inputs, steps, output)
breakdownYes
recaptureNo
surchargeNo
filing_statusYes
marginal_rateYes
policy_sha256Yes
policy_sourceYes
policy_statusYes
effective_rateYes
has_income_taxYes
policy_versionYes적용된 정책 문서의 식별 정보
policy_audit_idYes
policy_citationsYes정책의 근거 조문
standard_deductionYes
policy_effective_toYes
policy_effective_dateYes
taxable_income_after_deductionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the read-only and idempotent annotations, the description discloses meaningful behavior: TX returns 0, NY uses a recapture worksheet above a state_agi threshold, CA applies an extra 1% above 1,000,000, and rounding defaults to HALF_UP. These details materially affect how an agent should interpret and trust the result.

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?

The description is compact and front-loaded: it starts with the core calculation, then adds state-specific rules, formatting, and exclusions. Every sentence carries useful domain information.

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 the output schema and read-only annotations, the description covers the main calculation rules, supported states, formatting, and exclusions. It is not fully complete because year support ranges are only partially specified and some optional parameters remain ambiguous.

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 0% across 10 parameters, and the description compensates for only some of them: state, year, filing status, state_agi, taxable income, decimals, and rounding are at least implied. It leaves optional parameters such as as_of, include_proposed, and the exact role of apply_standard_deduction unexplained, so clear gaps remain.

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 states a specific verb and resource: calculates US state income tax for CA, NY, and TX. It also distinguishes the scope from neighboring tax tools by saying local taxes and FICA are not included.

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 clearly establishes when the tool applies: state income tax for CA, NY, or TX, with special notes for TX zero tax, NY recapture, and CA additional tax. It does not explicitly name sibling alternatives such as tax_us.federal_income or tax_us.fica, but the exclusion of FICA and local taxes gives useful routing context.

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