Skip to main content
Glama
MyLife Finance

MyLife Finance

by Zheny918

account_update

Edit an account's name, type, balance, currency, card number, notes, or archive status. Balance updates create an adjustment transaction by default, or modify opening balance with adjustBalance=false.

Instructions

修改账户(名称/类型/余额/币种/卡号/备注/归档)。传 balance 时默认生成一条「余额调整」流水(收入或支出),使账户余额等于目标值;adjustBalance=false 则直接改期初余额。同一用户下账户名不可重复。

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": {
      "id": "<id>"
    },
    "name": "account_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
iconNo
nameNo
noteNo
typeNo
colorNo
cardNoNo
userIdNo
balanceNo
archivedNo
currencyNo
adjustNoteNo
adjustBalanceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose a major hidden side effect: setting balance silently creates an income/expense 'balance adjustment' transaction, plus a uniqueness constraint on account names per user. However it does not state whether unlisted fields are preserved (patch vs overwrite), whether requires auth/ownership checks, or what errors/response look like.

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?

Three compact sentences, front-loaded with the verb and the field list, then the non-obvious balance semantics, then the uniqueness constraint. Every clause carries distinct information and nothing is repeated from structured fields verbatim.

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 13-parameter mutation with no annotations and no output schema, the description covers the riskiest behavior (implicit transaction creation, name uniqueness) but leaves partial-update semantics and five parameters unexplained. It is adequate but clearly incomplete for this level of complexity.

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 0% across 13 parameters, so the description must compensate; it explains the meaning of 7 fields (name/type/balance/currency/cardNo/note/archived) and the crucial balance-vs-adjustBalance interaction, which is real added value. But id, userId, icon, color and adjustNote remain completely undocumented, leaving a substantial gap for a 13-param tool.

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?

Names a specific verb (修改/modify) and resource (账户/account) and enumerates the mutable fields (name/type/balance/currency/cardNo/note/archived), which cleanly separates it from account_add and account_delete. It does not explicitly name or contrast a sibling, so it stops short of a 5.

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?

Gives explicit conditional behavior: passing balance defaults to creating an adjustment transaction, while adjustBalance=false instead edits the opening balance directly — this tells an agent which mode to pick and when. It lacks guidance on when to prefer this tool over siblings like account_add or tx_update, so it is not a full 5.

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