Skip to main content
Glama
MyLife Finance

MyLife Finance

by Zheny918

category_update

Update a finance category's name, type, icon, color, parent, or sort order to keep transaction classification accurate and organized.

Instructions

修改分类(名称/类型/图标/颜色/父级)。同用户下 名称+类型 不可重复。userId 可选。

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

Input Schema

NameRequiredDescriptionDefault
idYes
iconNo
nameNo
typeNo
colorNo
userIdNo
parentIdNo
sortOrderNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description bears the full disclosure burden. It adds one real behavioral fact (the per-user name+type uniqueness constraint) and notes userId is optional, but says nothing about what happens on a uniqueness conflict, whether omitted fields are left unchanged, whether moving a parent affects descendants, or what the call returns. For a mutation tool with zero annotation coverage, this is a significant gap.

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 clauses, front-loaded with the resource and the mutable fields, then the key constraint, then the userId note. Nothing is padded, though 'userId 可选' is terse to the point of being cryptic about why user scoping matters.

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?

With 8 parameters, no annotations, no output schema, and 0% schema coverage, the description carries a lot of weight and only partly delivers: field coverage is partial and error/partial-update semantics are absent. It is adequate to identify the tool but not complete enough to invoke it confidently across all parameter combinations.

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% across 8 parameters, and the description names only 5 of the fields (name, type, icon, color, parent) plus the optional userId. The required 'id' and the 'sortOrder' parameter get no explanation at all, and there is no format guidance for color/icon strings.

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 gives a specific verb and resource ('修改分类', update category) and enumerates the mutable fields (name/type/icon/color/parent), so an agent can immediately distinguish it from category_add or category_delete. It does not explicitly say how it differs from category_merge or category_dedupe, so it falls short of a 5.

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 only implied: '修改' plus a required id signals this is for editing an existing category. The uniqueness precondition (name+type must be unique per user) is genuinely useful context before invoking, but there is no explicit statement of when to prefer this over category_merge/category_dedupe or what to do when the uniqueness check fails.

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