Skip to main content
Glama
MyLife Finance

MyLife Finance

by Zheny918

merchant_delete

Deletes a merchant record only when no transactions reference it, preventing broken financial links.

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

Input Schema

NameRequiredDescriptionDefault
idYes
userIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, and it discloses only the referential-integrity guard. It says nothing about irreversibility, required permissions, whether the supplied transaction check is enforced server-side, or what error is returned when the precondition fails — all material for a destructive operation.

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 operation front-loaded and the constraint attached inline; nothing is wasted. The terseness is close to under-specification, but structurally it is clean and easy to scan.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, single-purpose mutation with no annotations, no output schema, and zero schema description coverage, the definition should explain the 'userId' parameter, the failure mode when transactions exist, and the effect of deletion. Only the precondition is covered, leaving an agent unable to call it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the description mentions no parameters at all. Two parameters are required to be understood — 'id' (presumably the merchant identifier) and 'userId' (purpose entirely unexplained, possibly an owner/authorization scope) — and neither is clarified beyond the bare property names.

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 ('删除商家' / delete merchant) plus an inline precondition, so the operation is immediately identifiable and distinguishable from merchant_add, merchant_list, and merchant_update. It stops short of 5 only because it does not contrast itself explicitly against a sibling tool.

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?

The parenthetical '仅当无交易引用时' functions as an explicit when-not condition: do not call this while transactions reference the merchant. It does not say what to do instead when the condition fails (e.g., reassign or delete the transactions first), which is the one gap.

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