Skip to main content
Glama
powercess

yimu-mcp

by powercess

save_account_book

save_account_book

Create or update an account book by submitting its ID, name, type, and shared users, with the ID triggering an update instead of a new entry.

Instructions

新增或更新账本(POST /accountBook/addOrUpdateAccountBook,upsert:带主键为更新)。entity 字段:accountBookId 主键;bookName 账本名;bookType 账本类型;shareUsers 共享用户;字段按服务端契约传递

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entityYes账本对象

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description bears the full burden of behavioral disclosure. It does reveal the mutating/upsert nature, but leaves key behaviors unclear: whether updates are partial or full replacement, what happens with missing fields, authorization needs, or irreversible side effects. The phrase '字段按服务端契约传递' is vague and does not clarify server-side expectations.

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?

The description is compact, front-loads the core action, and organizes the field list efficiently. It does not waste words, though the final clause '字段按服务端契约传递' adds little information and could be replaced with more concrete details.

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?

Given the tool has no annotations, no output schema, and a dynamic nested entity object, the description supplies the endpoint, upsert semantics, and field names, which is a reasonable foundation. However, it omits field types, required fields for create vs update, response expectations, and error conditions. For a mutation tool, this is a moderate gap that could leave an agent uncertain about constructing a valid entity.

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

Parameters4/5

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

The schema only documents 'entity' as an object with no nested properties, so the description adds real value by listing the meaningful fields: accountBookId, bookName, bookType, and shareUsers, along with semantic labels. It identifies accountBookId as the primary key, which is essential for the upsert behavior. It still lacks types and required status, but the field enumeration substantially improves schema interpretation.

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 clearly states the tool creates or updates an account book ('新增或更新账本'), identifies the endpoint, and explains the upsert behavior. It does not explicitly differentiate from sibling tools like save_bill or delete_account_book, but the resource type '账本' is distinct and 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?

The description provides an implicit usage condition: supply accountBookId to update, omit it to create. However, it does not state when to prefer this tool over alternatives (e.g., save_bill, save_asset) or mention any prerequisites like authentication or ownership. The upsert rule is useful but only covers one aspect of usage.

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