Skip to main content
Glama
yzyx
by BerBai

yzyx_performance

Read per-account investment performance from the latest full backup—balance, net contributions, returns, XIRR, and time-weighted yield—for one or all accounts, with optional CSI 300 benchmark comparison.

Instructions

【只读】逐账户绩效(基于最近一份全量备份):余额、累计净投入、累计收益(快照调整单列)、XIRR 年化与时间加权收益率。account_id 空=全部账户;benchmark=true 时附沪深300同期涨幅。缴存类账户的快照调整多为未记录入账,XIRR 仅供参考。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "yzyx_performance"
  }
}

Input Schema

NameRequiredDescriptionDefault
benchmarkNo
account_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.8.3

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure. It does declare 【只读】(read-only) and the data source (the latest full backup, implying possibly stale data), and it warns that XIRR for contribution-type accounts is for reference only because snapshot adjustments are often unrecorded; these are genuinely valuable behavioral caveats. However, it says nothing about permissions, whether other data is mutated, or failure modes when no backup exists.

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 leads with the 【只读】 marker and the tool's purpose, then enumerates the returned metrics, then states parameter behavior, and finally adds the XIRR caveat. Every sentence adds information, and the metric list is dense but relevant. It is a single dense block rather than visibly structured lines, which mildly hurts scanability.

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?

An output schema exists, so the description need not explain the return format, and the key interpretive caveats (backup staleness, XIRR reliability) plus both parameters are covered. What remains unaddressed is edge behavior, such as what happens when no backup exists or an unknown account_id is passed. For a two-parameter read-only reporting tool this is close to complete.

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 0%, so the description must compensate, and it does so for both parameters: account_id empty means all accounts, and benchmark=true attaches the CSI 300 return over the same period. This adds real meaning beyond the bare titles and defaults in the schema. The semantics are only partially specified (for example, the format of account_id is unstated), which keeps it below a 5.

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 uses a clear, specific resource: it returns per-account performance figures (balance, cumulative net contributions, cumulative returns with snapshot adjustments broken out separately, XIRR and time-weighted return) based on the most recent full backup. This makes it distinguishable from reporting siblings such as yzyx_overview or yzyx_trend, but it does not explicitly name those alternatives. An agent can tell what the tool produces, though it is not told which sibling to use instead.

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?

It gives concrete guidance on how to scope the call: account_id empty means all accounts, and benchmark=true adds the CSI 300 return for the same period. It does not state when to prefer this tool over a performance-adjacent sibling such as yzyx_attribution or yzyx_overview, nor does it list exclusions. The context is clear but incomplete on routing.

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