Skip to main content
Glama
yzyx
by BerBai

yzyx_update_assets

Updates investment account asset total snapshots by account ID or name, supporting single totals or complete channel breakdowns, with optional date, pre-write mapping check, and post-write read-back.

Instructions

【写操作】更新投资记账账户的资产总额快照(经 abook_update_assets.py 子进程)。account=账户 id 或 name=账户名/渠道别名(二选一); total=总额(单金额账户用);channels=多渠道账户用,格式为 「渠道名=金额」逗号分隔(如 "示例渠道甲=10000.00,示例渠道乙=20000.00"), 必须给全该账户所有渠道;date=YYYY-MM-DD,空=今天。 写前有映射指纹核对,写后读回当日记录行返回。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "yzyx_update_assets"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNo
nameNo
totalNo
accountNo
channelsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.8.3

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it declares the write nature, discloses the subprocess implementation, states that a mapping-fingerprint check runs before writing, and that the day's record row is read back after writing. It stops short of saying what happens on a fingerprint mismatch (abort? error?) or whether an existing snapshot is overwritten.

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?

The 【写操作】 tag front-loads the most decision-relevant fact, then parameters are enumerated in a compact, scannable order with a concrete example for the tricky channels format. It is dense but nearly every clause carries operational information; the trailing sentence on fingerprint check/readback could be slightly tighter.

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

Completeness4/5

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

For a five-parameter mutation tool with zero annotation coverage, the definition covers the write path, parameter routing, format syntax, and post-write verification; the existence of an output schema means return values need not be spelled out. Gaps are minor: failure behavior on fingerprint mismatch and the overwrite semantics for an existing same-day snapshot.

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 0% and all five parameters are undocumented in the schema, so the description must compensate — and it does, defining account, name, total, channels (with a literal format example) and date (YYYY-MM-DD, empty = today). The mutual-exclusivity and 'all channels required' constraints add meaning the schema cannot express; only the fact that no parameter is required goes unstated.

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?

The description opens with 【写操作】 and names a specific verb+resource: updating the asset-total snapshot of an investment bookkeeping account, implemented via the abook_update_assets.py subprocess. It is unmistakably a mutation of account-level asset totals, though it never names a sibling (e.g. yzyx_add_record or yzyx_update_cell) to delineate itself.

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?

It gives strong intra-parameter routing (account vs name are mutually exclusive; total for single-amount accounts, channels for multi-channel ones) and warns that all channels must be supplied. What is missing is tool-level routing: there is no statement of when to call this versus the other write tools in the family, or what preconditions (account must already exist) apply.

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