budget_add
Add or update budgets by category, amount, and period; choose yearly or monthly, and let duplicate entries adjust existing budget amounts.
Instructions
新增预算。amount 必填;category 传一级分类(传二级会自动上卷到其一级);period=YEARLY(默认,按月预算则传 MONTHLY 并给 month)。同分类同期间重复新增会更新金额。userId 可选。
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>"
},
"name": "budget_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | ||
| month | No | 月预算的月份 1-12 或 YYYY-MM | |
| amount | Yes | ||
| period | No | ||
| userId | No | ||
| category | No |