Skip to main content
Glama
MyLife Finance

MyLife Finance

by Zheny918

merchant_update

Edit an existing merchant's name, category, icon, or color while enforcing unique names per user.

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

Input Schema

NameRequiredDescriptionDefault
idYes
iconNo
nameNo
colorNo
userIdNo
categoryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It usefully discloses a real constraint (name must be unique within the same user) and that userId is optional, which hints at scope/ownership. It does not say whether this is a partial update (unmentioned fields preserved) or a full replacement, what happens when userId changes the owner, or what errors/return values look like.

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?

Three short sentences, purpose first, then the constraint, then the optional-parameter note, with no filler. Every sentence adds information an agent would otherwise have to guess.

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 6-parameter mutation tool with no annotations and no output schema, the description covers purpose, one validation rule, and one optional parameter, but leaves partial-vs-full update semantics, ownership effects of userId, and expected input formats unstated. Adequate but with clear gaps.

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 6 parameters, so the description should compensate. It does name four of the mutable fields and notes that userId is optional, plus attaches the uniqueness rule to 'name' — genuine meaning beyond the bare schema. However 'id', the implications of changing userId, and any expected format for color/icon remain 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 states a specific verb and resource (修改商家) and enumerates the mutable fields (名称/分类/图标/颜色), which clearly separates it from merchant_add, merchant_delete and merchant_list. It does not explicitly name those siblings, but the 'update' framing plus field list makes the operation 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?

Usage is only implied: requiring 'id' and saying '修改商家' signals this is for editing an existing merchant, and the uniqueness rule hints at a validation failure mode. There is no explicit when-to-use vs. when-to-use-alternatives guidance, e.g. nothing telling the agent to use merchant_add for new merchants or which field set belongs to category_update instead.

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