Skip to main content
Glama

calculate jp depreciation

calculate_jp_depreciation
Read-onlyIdempotent

Japanese depreciation for sole proprietors: under 100,000 JPY expensed, under 200,000 lump-sum 3 years, SME blue filers under 400,000 (acquired from 2026-04-01; 300,000 before) expensed up to 3M a year until 2029-03-31 (措法 第28条の2, NTA No.2100), else straight-line with the 別表第八 rate (ceil(1/life, 3 decimals)), first year by months used, down to 1 JPY. Japan, as of 2026-11-21 (e-Gov current law and NTA Tax Answer). General information and estimates only; individual tax advice and return preparation are reserved to 税理士 (税理士法 第52条).

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": {
      "cost": "<cost>",
      "life": "<life>",
      "acquired": "<acquired>"
    },
    "name": "calculate_jp_depreciation"
  }
}

Input Schema

NameRequiredDescriptionDefault
smeNoSmall business (blue filer with up to 500 employees)
blueNoBlue return filer
costYesAcquisition cost (JPY)
lifeYesStatutory useful life in years (PC 4, car 6, kei car 4, wooden building 22)
yearsNoMax schedule years
acquiredYesDate first used in the business

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare a safe, idempotent, closed-world read, and the description adds substantial behavior beyond them: the legal basis (措法 第28条の2, NTA No.2100), the as-of date of 2026-11-21, the rounding rule ceil(1/life, 3 decimals), first-year proration by months used, a 1 JPY floor, and the sunset date 2029-03-31. It also discloses the scope limit (general information only; return preparation reserved to 税理士), which is exactly the kind of constraint an agent needs.

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?

It is a single dense paragraph with no filler sentences, and the operative thresholds are front-loaded. The trade-off is that the rule chain is packed into one run-on block, making it harder to scan than a short bulleted structure would be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-parameter, no-output-schema calculator, the description covers the computation rules, effective dates, rounding, and legal caveats thoroughly. The only omission is the shape of the returned schedule, which is a minor gap given the 'years' parameter implies a multi-year schedule.

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 the baseline is 3, but the description adds real meaning: it ties 'cost' to the expensing thresholds, 'acquired' to the 2026-04-01 regime switch, and 'life' to the 別表第八 rate table. The 'sme'/'blue'/'years' parameters are only lightly touched, so it is above baseline but not fully explanatory.

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 ('Japanese depreciation for sole proprietors') and immediately enumerates the regimes it computes (expensing thresholds, lump-sum, SME blue-filer special, straight-line with 別表第八 rate). The jurisdiction and taxpayer scope distinguish it from the fr/us depreciation siblings without needing to name them.

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 supplies the decision logic that selects each calculation branch (cost under 100,000 / 200,000 / 400,000, acquisition date before or after 2026-04-01, blue-filer status), which is effectively when-to-use guidance for the tool's modes. It stops short of stating prerequisites (e.g. that the caller must already know statutory life and blue-filer status) or explicitly excluding corporate/other-jurisdiction cases.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.