Skip to main content
Glama
MyLife Finance

MyLife Finance

by Zheny918

report_by_category

Summarize transaction amounts and counts by category, optionally filtered by expense or income type, date range, or user, to support spending analysis and reporting.

Instructions

按分类汇总金额与笔数。type 默认 EXPENSE,可加 from/to 日期区间。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": "report_by_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo
fromNo
typeNo
userIdNo

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?

With no annotations, the description carries the full burden; it does disclose the useful default (type=EXPENSE) and that filtering is optional. It says nothing about read-only safety, whether userId defaults to the caller, how dates are interpreted, or how results are grouped or paginated.

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?

Three compact clauses, front-loading the purpose before the parameter notes, with zero filler. It reads efficiently and every clause earns its place.

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?

For a four-parameter read-only aggregation with no output schema, the description covers the metric shape (amounts and counts by category), the default type, and all filter parameters. Minor gaps remain around date format and userId defaulting, but the essentials are present.

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 coverage is 0%, so the description must compensate, and it does address all four parameters: type with its default, from/to as a date interval, and userId as optional. It lacks format details (date string format, semantics of userId relative to the caller), which keeps it below 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 has a concrete verb+resource: it aggregates (汇总) amounts and counts by category, which tells the agent exactly what the tool produces. It doesn't name or differentiate itself from siblings like report_monthly or report_overview, so an agent must infer that this is the per-category breakdown.

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?

It implies usage through 'by category' and the default type EXPENSE, and says from/to can be added and userId is optional, which hints at when to add filters. However, there is no explicit when-to-use-vs-alternatives guidance against the several other report_* siblings.

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