Skip to main content
Glama
MyLife Finance

MyLife Finance

by Zheny918

budget_add

Add or update budgets by category, amount, and period; choose yearly or monthly, and let duplicate entries adjust existing budget amounts.

Instructions

新增预算。amount 必填;category 传一级分类(传二级会自动上卷到其一级);period=YEARLY(默认,按月预算则传 MONTHLY 并给 month)。同分类同期间重复新增会更新金额。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": {
      "amount": "<amount>"
    },
    "name": "budget_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNo
monthNo月预算的月份 1-12 或 YYYY-MM
amountYes
periodNo
userIdNo
categoryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so this description carries the full burden of behavioral disclosure. It helpfully discloses two behaviors beyond the schema: passing a sub-category automatically rolls up to its top-level parent, and adding a duplicate for the same category and period silently updates the amount instead of creating a new record. It omits permission requirements, what happens to other fields on an existing budget that gets overwritten, and any error conditions, so it is substantive but still incomplete on a silent-overwrite mutation tool.

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?

The description is one dense, front-loaded paragraph in which the required field, the category rule, and the period default each come first in priority order. Every clause carries information, such as the roll-up rule and the upsert behavior, and there is no filler.

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

Completeness4/5

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

With 6 parameters, no annotations, and no output schema, the tool definition needs to supply most of the guidance itself, and it does so for nearly every parameter and for the surprising upsert and roll-up behaviors. Two gaps remain: the `year` parameter is not explained, and since there is no output schema, the description does not state what is returned after an insert or upsert.

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?

Schema description coverage is only 17%, so the description must help explain the parameters. It explains `amount` (required), `category` (pass a top-level category; a sub-category rolls up), `period` (enum with its default and the MONTHLY case), `month` (needed when period is MONTHLY), and `userId` (optional). The `year` parameter is never mentioned, which is the main remaining gap.

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?

It states a specific verb and resource (新增预算, add a budget) and immediately follows with the key rules for amount, category, and period. It never names the sibling budget_update, even though its own "duplicate add updates the amount" rule overlaps with that tool; therefore, differentiation from siblings is only implied, not stated.

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 gives usable conditional guidance for choosing period: it defaults to YEARLY, while for a monthly budget you pass MONTHLY and also give month. It does not say when to use this tool instead of budget_update or budget_list, which matters because the upsert-on-duplicate rule makes the boundary with budget_update unclear.

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