Skip to main content
Glama
MyLife Finance

MyLife Finance

by Zheny918

tx_update

Modify an existing transaction by its ID, updating fields such as amount, date, category, account, tags, or description. Use it to correct or adjust recorded bookkeeping entries.

Instructions

按 id 修改一笔交易。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": {
      "id": "<id>"
    },
    "name": "tx_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
dateNo
tagsNo
typeNo
amountNo
memberNo
userIdNo
accountNo
projectNo
categoryNo
merchantNo
toAccountNo
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. "修改" implies mutation, but it does not disclose whether this is a partial patch (only supplied fields change) or a full replace that clears omitted fields, nor any permission or response behavior. For a 13-parameter mutation tool, that is a substantial gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short, front-loaded sentences with no wasted wording, and the required id is stated first. However, the brevity is under-specification rather than economy for a tool with 13 parameters; the size is not appropriate to the complexity.

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

Completeness2/5

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

With no annotations, no output schema, and 0% parameter documentation, the description needs to do far more than name id and flag userId as optional. An agent could call it, but only by guessing at field semantics and update semantics.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 13 parameters, and the description only touches two of them: id (the target) and userId (optional). It adds nothing about date format, type/amount semantics, the member/account/project/category relationships, or when toAccount applies, so it does not compensate for the undocumented schema.

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 states a specific verb and resource, "按 id 修改一笔交易", so the agent knows this mutates a single existing transaction identified by its id. It is clear enough to distinguish from tx_add/tx_delete by name alone, but it never says which fields are updatable or how this differs from other update tools.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisite, and no exclusion. The only hint is "userId 可选", which is a parameter note rather than routing guidance; the agent gets no help deciding between tx_update and tx_add for a given record.

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