Skip to main content
Glama
qianji-mcp-server

qianji-mcp-server

qianji_search_categories

Read-only

Search expense or income categories by ledger, type, and name, then choose a path to get the categoryId for write tools.

Instructions

按账本、收支类型和名称搜索分类,选择具体路径后将 categoryId 传给写工具。

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_search_categories"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNo
queryNo
bookIdNo

Output Schema

NameRequiredDescriptionDefault
categoriesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so safety is covered. The description adds valuable workflow context that the output feeds write tools, but says nothing about result volume, empty results, or hierarchy beyond the passing phrase 具体路径.

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?

A single front-loaded sentence that names the search facets first and the downstream consumption second. No filler or redundant restatement of the name.

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?

Output schema exists, so return values needn't be explained, and annotations carry the safety profile. But the notion of selecting an exact 路径 (path) in a possibly hierarchical category tree is never clarified, nor is disambiguation when several categories match.

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 description coverage is 0%, so the description is the only source of parameter meaning, and it does map all three inputs (账本→bookId, 收支类型→type, 名称→query). However it never explains the special bookId value -1 allowed by the pattern, nor optionality or how the filters combine, leaving real gaps.

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 (搜索/search) and resource (分类/categories), plus the three search dimensions (账本/book, 收支类型/type, 名称/name). This distinguishes it from siblings like qianji_search_accounts by resource, though no sibling is named explicitly.

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 clear workflow context: use this to resolve a category, then pass the resulting categoryId to write tools. It doesn't state when NOT to use it (e.g. when the categoryId is already known) or how to pick among multiple matches, but the when-to-use is explicit.

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