Skip to main content
Glama
MyLife Finance

MyLife Finance

by Zheny918

tx_add

Record an income, expense, or account transfer with account and amount; missing accounts, categories, members, merchants, or projects are created by name.

Instructions

记一笔收支或转账。account 必填;category/type/amount 按需。账户、分类、成员、商家、项目不存在时按名自动创建。userId 可选(默认 default)。

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": {
      "account": "<account>",
      "amount": "<amount>"
    },
    "name": "tx_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNo日期 YYYY-MM-DD,也可传 2026-11-16T14:32:05 带时分秒;默认当前时间
tagsNo
timeNo时分秒 HH:MM:SS,配合 date 使用
typeNoINCOME / EXPENSE / TRANSFER,默认 EXPENSE
amountYes金额(正数)
memberNo成员名
userIdNo用户隔离键,Octop 由登录用户注入,本地默认 default
accountYes账户名,如 "招商银行"
projectNo财务项目名
categoryNo分类名,如 "餐饮"
merchantNo商家名
toAccountNo转账目标账户(TRANSFER 时)
accountTypeNo账户类型 DEBIT_CARD/CREDIT_CARD/INVESTMENT/CASH/E_WALLET/OTHER
descriptionNo
toAccountTypeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full load, and it does disclose the most consequential side effect: accounts, categories, members, merchants, and projects are auto-created by name when absent. It also notes the userId default. It leaves gaps around transfer semantics (the toAccount/TRANSFER interaction) and around whether the auto-created entities require any confirmation.

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?

Four short clauses, front-loaded with the action and the required parameter. The telegraphic style is efficient, though it borders on an abbreviation that costs a little readability rather than wording that should be cut.

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

Completeness3/5

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

For a 15-parameter mutation with no annotations and no output schema, the description covers the key required fields and the auto-create behavior. However, it omits transfer mechanics (toAccount and TRANSFER), the type enumeration, and the return/ID behavior, which are exactly what an agent needs to invoke this correctly.

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 coverage is 80%, so the baseline is 3. The description reinforces the required account parameter and the optional category/type/amount fields and explains the userId default. However, for the 15-parameter set, it adds nothing about date/time format interplay, tags, accountType, or toAccount, which the schema handles unevenly.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: record an income/expense entry or a transfer. This is clearly distinguishable from the sibling tx_update, tx_delete, and tx_list, which all operate on existing transactions. It stops short of naming those siblings, so it does not reach the top of the scale.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description says which fields are required and which are optional (account required; category/type/amount as needed), and implies it is for creating entries rather than modifying them. It never states when to choose this tool over tx_update, or how to handle edits to existing transactions. Therefore, the guidance is only implied.

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