Skip to main content
Glama
MyLife Finance

MyLife Finance

by Zheny918

tx_list

Filter and retrieve financial transactions by type, account, category, member, merchant, project, date range, or tag; returns paginated records plus total count and summary sums.

Instructions

查询账目,支持按 type/account/category/member/merchant/project/日期区间/tag 过滤,倒序返回。返回 total(命中总数)、pages、sum(跨页全部合计)与当前页 records。userId 可选。

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

Input Schema

NameRequiredDescriptionDefault
qNo说明关键词
toNo
tagNo
fromNo
pageNo第几页(从 1 开始),与 pageSize 配合
typeNo
yearNo按年查询(只给年份即可)
limitNo兼容旧参数;没给 page 时生效,默认 50
memberNo
offsetNo兼容旧参数;没给 page 时生效
userIdNo
accountNo
projectNo
categoryNo
merchantNo
pageSizeNo每页条数,默认 50,上限 5000
categoryIdNo按分类 id 过滤,含其全部子分类
includeArchivedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does add real behavior: descending sort order, pagination surface (total/pages/records), and that sum aggregates across all pages rather than the current page. It does not state permission/auth requirements, whether archived records are included by default (includeArchived exists but is unmentioned), or tie-breaking/sort-field rules.

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?

Three compact sentences: filters first, return shape second, parameter caveat last. No filler, and the most important information (what can be filtered, what comes back) is front-loaded.

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 an 18-parameter, zero-annotation tool with no output schema, describing the return envelope is valuable and partially fills the gap. It is still thin on defaults and interactions (year vs from/to, category vs categoryId, includeArchived, legacy limit/offset vs page), which an agent would need to call it correctly.

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 only 39% across 18 parameters, so the description must compensate; it covers the main filters (type/account/category/member/merchant/project/date range/tag) and notes userId is optional. Undocumented in both places are q, year, categoryId (and its difference from category), includeArchived, and the limit/offset legacy behavior, leaving several params ambiguous.

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?

States a specific verb+resource (查询账目) and enumerates the filterable dimensions plus the return shape, so an agent knows this is the transaction-listing tool. It does not explicitly distinguish itself from siblings like tx_add/tx_update, but the read-only listing purpose is 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: the filter list and '倒序返回' suggest a read-listing scenario, and 'userId 可选' hints at a personal vs global scope. There is no explicit when-to-use, no exclusions, and no pointer to sibling tools for mutation or aggregation.

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