Skip to main content
Glama
MyLife Finance

MyLife Finance

by Zheny918

category_delete

Deletes a user's category only when no transactions reference it, preventing removal of categories still in use.

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": {
      "id": "<id>"
    },
    "name": "category_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
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 supplied, the description carries the full behavioral burden. It usefully discloses the referential-integrity guard that blocks deletion, but says nothing about irreversibility, cascade behaviour toward subcategories, or the error surfaced when the guard trips.

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 short sentence with the action front-loaded and the constraint in a parenthetical. Nothing is wasted, though the extreme brevity leaves the parenthetical doing more work than it can carry.

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 two-parameter destructive tool with no annotations and no output schema, the definition covers the critical safety precondition but omits parameter meaning and failure behaviour. Enough to attempt a call, not enough to handle its consequences.

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 phrase '该用户下' hints that userId scopes the reference check, and the action implies the id is the category identifier, but format, defaults, and the meaning of an omitted userId are left entirely unexplained.

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 ('删除分类' / delete category), which separates it from siblings like category_merge, category_dedupe, and category_update. It does not explicitly name an alternative, but the action is unambiguous.

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 states a clear precondition: deletion is only permitted when no transactions under that user reference the category. However, it gives no guidance on what to do when the precondition fails (e.g. removing references first, or using category_merge), leaving the agent without a fallback path.

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