Skip to main content
Glama
MyLife Finance

MyLife Finance

by Zheny918

category_merge

Merge source categories into a target category by migrating their transactions, subcategories, and budgets, then deleting the sources; preview with dry-run first.

Instructions

合并分类:把若干来源分类的交易/子级/预算迁移到目标分类并删除来源。类型必须一致,且目标不能位于来源子树内。dryRun=true 只预览。

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

Input Schema

NameRequiredDescriptionDefault
typeNo
dryRunNo
userIdNo
targetIdNo
sourceIdsNo
targetNameNo
sourceNamesNo
deleteSourceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does reasonably well: it discloses that the operation is destructive (sources are deleted), what is migrated (transactions, children, budgets), and that a dry-run preview exists. Gaps remain around permissions/ownership and irreversibility, and the blanket '删除来源' sits awkwardly next to the deleteSource boolean parameter without explaining the relationship.

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?

Three compact sentences, front-loaded with the operation and its effect, then constraints, then the preview mode. No filler, though the leading '合并分类:' label partially restates the tool name rather than adding new information.

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 destructive bulk mutation with no annotations, no output schema and eight undocumented parameters, the description covers the core mechanics but leaves the ID-vs-name parameter relationship and the deleteSource toggle unexplained. It is enough to know what the tool does, not quite enough to call it confidently with the right combination of fields.

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?

Eight parameters with 0% schema description coverage, yet the description only clarifies dryRun and the type-consistency rule. It says nothing about userId, targetId vs targetName, sourceIds vs sourceNames (whether names are an alternative to IDs), or what deleteSource=false would do — all of which the schema leaves completely bare.

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 specific verb and resource ('合并分类') and spells out the actual effect: moving transactions, children and budgets from several source categories into a target and deleting the sources. That is far more informative than the bare name, though it never explicitly distinguishes itself from the sibling category_dedupe, which an agent could plausibly confuse with a merge.

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 concrete invocation context: types must match, the target may not lie inside a source subtree, and dryRun=true produces a preview only. What is missing is any positive routing advice (e.g. when to prefer merge over dedupe, or when to skip merging entirely), so the agent still has to infer the alternative.

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