Skip to main content
Glama
qianji-mcp-server

qianji-mcp-server

qianji_create_bill

Idempotent

Manually record a single income or expense in the account's original currency from explicit account and category IDs; use receipt entry for receipt-based records.

Instructions

手工记一笔收入或支出。按账户原币填金额,小票改用 qianji_record_receipt。

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": {
      "type": "<type>",
      "accountId": "<accountId>",
      "categoryId": "<categoryId>",
      "amount": "<amount>"
    },
    "name": "qianji_create_bill"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes
amountYes账户原币十进制字符串,如 816 或 39.12
bookIdNo
remarkNo
accountIdYes目录或查询结果给出的数字字符串 ID
requestIdNo本次操作的稳定键。宿主未提供时必填;重试或补结算时复用原键。
categoryIdYes
occurredAtNo票面日期和时分;可附 UTC 偏移,省略偏移时使用账务时区

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

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety and retry profile is covered structurally. The description adds only that amounts are entered in the account's original currency and that this is a manual (non-receipt) write; it says nothing extra about what a write side-effects, permission needs, or duplicate handling beyond the annotation.

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?

Two short sentences, front-loaded with the core action, then the amount convention, then the alternative tool. No filler and nothing buried.

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 return values need not be explained, and the annotations carry the mutation/idempotency profile. What remains thin is prerequisite context (where account and category IDs come from, and the host-supplied requestId obligation), which is only implied by the schema rather than the description.

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?

With 8 parameters at 50% schema coverage, the schema already documents amount (original-currency decimal string), accountId, requestId and occurredAt, and the description's currency remark largely restates the amount field's own schema description. It adds no meaning for bookId, remark, categoryId, or type beyond what the schema/enum shows — adequate but not compensating for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (manually record) and resource (an income or expense bill), and explicitly routes receipt-style entries away to qianji_record_receipt. An agent can tell this apart from the closest sibling without opening either schema.

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 an explicit when-not condition plus the named alternative (use qianji_record_receipt for receipts), which is the most likely confusion point. It stops short of stating that accountId/categoryId must be obtained from qianji_search_accounts / qianji_search_categories first, so some usage context is left to inference.

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