Skip to main content
Glama
qianji-mcp-server

qianji-mcp-server

qianji_delete_bill

DestructiveIdempotent

Delete a confirmed bill by its numeric ID and return a summary of the bill before deletion for verification.

Instructions

根据确认过的账单 ID 删除账单,返回删除前的摘要。

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>"
    },
    "name": "qianji_delete_bill"
  }
}

Input Schema

NameRequiredDescriptionDefault
billIdYes目录或查询结果给出的数字字符串 ID
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 destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the risk profile is supplied structurally. The description adds that the pre-deletion summary is returned and hints at a confirmation prerequisite, but says nothing about permissions, irreversibility, or side effects on linked records.

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?

A single compact sentence with the action and the return value front-loaded and no filler. Slightly terse given the destructive nature of the operation, but nothing is wasted.

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?

An output schema exists, so the return value needn't be detailed, and annotations carry the destructive/idempotent profile. What remains thin is guidance on the confirmation precondition and on consequences of deletion for a mutation tool.

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 100% and both parameters (billId, requestId) are documented in the schema, so baseline is 3. The description contributes only the extra constraint that the bill must be '确认过' (confirmed), which is a modest addition beyond the schema text.

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 ('删除账单' – delete a bill) plus the return value ('返回删除前的摘要'), so an agent can distinguish it from create/update siblings. It does not explicitly name those siblings, but the delete verb is unambiguous.

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 phrase '根据确认过的账单 ID' implies a precondition (the bill must already be confirmed) but never states when to choose this over qianji_update_bill or when deletion is inappropriate. Usage is implied rather than spelled out.

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