Skip to main content
Glama
qianji-mcp-server

qianji-mcp-server

qianji_get_stats

Read-only

Calculate income and expense totals by currency and group them by category, day, month, asset, or type, with optional base-currency estimates for account or receipt-based bills.

Instructions

账户收支用 account;旅行消费原币用 receipt(仅本地有票面且已入账的账单)。按币种分别合计,可另取参考估值。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "qianji_get_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo
fromNo
basisNoaccount
monthNo
bookIdNo
currencyNo
dimensionNocategory
includeBaseEstimateNo以查询时可用汇率估值,返回报价日期及未折算笔数

Output Schema

NameRequiredDescriptionDefault
basisYes
countYes
rangeYes
bucketsYes
timeZoneYes
dimensionYes
baseEstimateNo
excludedCountYes
totalsByCurrencyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3/5.0
Behavior3/5

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

Read-only safety is already declared by annotations, so the description's added value is scoping: receipt basis only covers recorded bills with a local receipt face, and results are totaled separately per currency. It does not mention how date ranges and month interact, whether the query is expensive, or any limits on the aggregation.

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?

It's terse with no filler, but the structure is not front-loaded: there's no opening sentence establishing what the tool returns, and the first clause dives straight into parameter routing, making it read like a fragment.

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 8 parameters at 13% coverage and no output explanation required (an output schema exists), the definition still leaves too much unspecified. An agent cannot tell how to combine month with from/to, what each dimension value produces, or which parameters apply to which basis mode.

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 only 13%, so the description has to carry the meaning, yet it only explains basis and hints at includeBaseEstimate (reference valuation at query-time rates). The dimension enum (category/day/month/asset/type), the from/to and month patterns, and especially whether month is mutually exclusive with the date range are left undocumented in both schema and description.

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

Purpose3/5

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

The description never states a verb+resource plainly; it leads with the two basis modes rather than saying it returns aggregated statistics over a period. From "按币种分别合计" an agent can infer it produces per-currency totals, but the aggregation/grouping purpose is implied rather than declared.

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?

It gives explicit conditional routing for the basis parameter: use account for account income/expenses, receipt for travel spending in original currency, and it constrains receipt to bills that have a local ticket face and are already recorded. There is no guidance on when to use this tool instead of qianji_list_bills or wb searching per-moment data.

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