Skip to main content
Glama
qianji-mcp-server

qianji-mcp-server

qianji_record_receipt

Idempotent

Record an expense from a receipt by copying merchant, receipt date/time, total, and line items; when a cross-currency charged amount is unknown, save it as a pending-settlement receipt.

Instructions

从一张消费小票记一笔支出,照抄商户、票面时间和总额。跨币种实扣未知时只保存待结算小票。

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": {
      "accountId": "<accountId>",
      "categoryId": "<categoryId>",
      "receiptCurrency": "<receiptCurrency>",
      "totalText": "<totalText>",
      "occurredAt": "<occurredAt>",
      "merchant": "<merchant>",
      "items": "<items>"
    },
    "name": "qianji_record_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
bookIdNo
merchantYes
accountIdYes目录或查询结果给出的数字字符串 ID
requestIdNo本次操作的稳定键。宿主未提供时必填;重试或补结算时复用原键。
totalTextYes票面合计原文,如 ¥816。仅填一次。
categoryIdYes
occurredAtYes票面日期和时分;可附 UTC 偏移,省略偏移时使用账务时区
itemizationNo明细不全或未列全税费时选 partial;完整行金额会核对合计
chargedAmountNo仅跨币种时填写银行卡实际扣款;未知时省略
receiptCurrencyYes票面币种。¥ 可表示 JPY 或 CNY,按票面和消费地点确定。

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.7/5.0
Behavior4/5

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

The annotations already declare a write operation that is idempotent and not destructive, so the description does not need to restate that. What it adds is substantive: values are transcribed verbatim rather than parsed or normalized, and an unknown cross-currency charge degrades into a pending-settlement record. That write-then-settle behavior is not inferable from the schema alone.

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?

The description consists of two dense sentences, with the core action stated first and the edge-case rule second. There is no filler, no restatement of the title, and no redundant explanation of what the structured fields already say.

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?

The description is complete for the happy path and for the notable cross-currency branch, and it does not need to cover return values because an output schema exists. Still, for an 11-parameter tool with 7 required fields, it leaves out how to source accountId and categoryId and offers nothing about the required items array, which is the most error-prone part of the call.

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?

The description explains the intent behind three fields (商户, 票面时间, 总额) and the semantics of the cross-currency chargedAmount case, but with 11 parameters at 64% description coverage, it says nothing about items, itemization, categoryId, accountId, bookId, or requestId reuse. The schema already documents several of these, so the description adds only modest value over it.

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 names a concrete verb and resource in one clause: record an expense from a purchase receipt, with scope set to receipt-sourced expenses (merchant, receipt time, and total copied verbatim). This distinguishes it from the sibling write tool qianji_create_bill at the level of source material, although it never names the alternative explicitly.

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 real conditional rule: when a cross-currency actual charge is unknown, save only a pending-settlement receipt. However, it never states when to use this rather than qianji_create_bill or qianji_create_transfer, and it does not mention prerequisites such as having resolved accountId and categoryId first.

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