classify_transaction
Classify Japanese tax accounting transactions by matching keywords and falling back to AI analysis when needed, returning account title, tax classification, and confidence score.
Instructions
Two-stage classifier for Japanese tax accounting. Stage 1: keyword dictionary match (14 categories × ~50 keywords). Stage 2 (= deferred to Phase 1.B): Claude API fallback. Returns 勘定科目 + 税区分 + confidence.
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": {
"amount": "<amount>",
"memo": "<memo>",
"date": "<date>"
},
"name": "classify_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ISO 8601 date YYYY-MM-DD | |
| memo | Yes | 取引摘要 | |
| amount | Yes | Transaction amount (JPY) | |
| partner_name | No | 取引先名 (optional) |