Skip to main content
Glama
qianji-mcp-server

qianji-mcp-server

qianji_update_bill

DestructiveIdempotent

Edits a single income or expense bill by applying only the changed fields; when moving it to an account in another currency, include the actual amount.

Instructions

修改一笔收支账单,changes 只填要修改的字段。换到不同币种的账户须同时提供实际金额。

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": {
      "billId": "<billId>",
      "changes": "<changes>"
    },
    "name": "qianji_update_bill"
  }
}

Input Schema

NameRequiredDescriptionDefault
billIdYes目录或查询结果给出的数字字符串 ID
changesYes
requestIdNo本次操作的稳定键。宿主未提供时必填;重试或补结算时复用原键。

Output Schema

NameRequiredDescriptionDefault
billNo
billIdNo目录或查询结果给出的数字字符串 ID
statusYes
messageNo
summaryYes
nextCallNo
replayedYes
createdAtYes
requestIdYes
verificationNo
changedFieldsNo
accountCurrencyNo
originalReceiptNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and idempotentHint=true, so the safety profile is known. The description adds genuinely non-obvious behavior beyond that: only the fields supplied in `changes` are modified, and a cross-currency account move forces the actual amount to be supplied. It still says nothing about what is overwritten, whether edits are reversible, or which bills are editable.

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?

Two short sentences, front-loaded with the action and followed by the two operative rules; nothing is wasted. It is terse to the point that some guidance is simply absent, but no sentence is redundant.

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?

An output schema and full annotations reduce the disclosure burden, and the description covers the main gotchas of a partial-update tool. For a destructive nested-object mutation it still leaves gaps: no mention of editability constraints (e.g. already-settled bills), error/conflict behavior, or the role of requestId on retries.

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?

With schema coverage at 67% and a nested `changes` object, the description earns credit for explaining the semantics of that object ('only fill in the fields to be modified') rather than restating field names. It also links two parameters together – changing accountId across currencies requires amount – a relationship the schema cannot express.

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 ('修改一笔收支账单' – modify a single income/expense bill), which is clearly distinguishable from create/delete siblings by the verb alone. It stops short of naming or contrasting any sibling explicitly, so it lands just below the top mark.

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 one concrete conditional rule (switching to an account in a different currency requires supplying the actual amount) and clarifies partial-update intent. However, it never says when to prefer this over qianji_create_bill or qianji_delete_bill, nor any when-not conditions or prerequisites.

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