Skip to main content
Glama
MyLife Finance

MyLife Finance

by Zheny918

category_duplicates

Find duplicate categories by exact name, empty shell (no transactions or children), or same name under different parents, and return suggested categories to keep; optionally filter by income or expense.

Instructions

分类查重(只读):找出完全重名、空壳(0 交易 0 子级)、同名不同父级的分类,并给出建议保留项。type 可选(INCOME/EXPENSE)。

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": "category_duplicates"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNo
userIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose the read-only nature plus the concrete detection heuristics (0 transactions, 0 children, same name/different parent) and that it returns a suggested keep item. It stops short of describing the result structure, how conflicts are ranked when several candidates tie, or any permission/scope requirements for userId.

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 read-only qualifier and the detection list front-loaded, and no filler. It is densely packed but every clause carries information; the trailing 'type 可选' note is placed last where it belongs.

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?

For a read-only analysis tool with no annotations and no output schema, the description covers purpose, safety, and detection rules reasonably well, but leaves the return shape only half-described (a suggested keep item) and gives no meaning for userId. An agent could call it, but would not know how to interpret or scope the results fully.

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 0% for two parameters. The description only clarifies 'type' as INCOME/EXPENSE, which the enum already conveys, and leaves 'userId' completely unexplained (whether it defaults to the caller, whose categories are scanned, or whether it is required). Half the parameter surface is undocumented in both schema and description.

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 uses a specific verb and resource ('分类查重') and enumerates exactly what it detects: exact duplicate names, empty shells (0 transactions, 0 children), and same-name-different-parent categories. The '只读' + '给出建议保留项' wording implicitly separates it from the write-oriented sibling category_dedupe, though that sibling is never 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: read-only analysis that recommends which category to keep, which suggests it should be run before category_dedupe/category_merge, and the optional type filter hints at scoping to one category type. There is no explicit when-to-use, when-not-to-use, or named alternative, so the agent must infer the workflow position.

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