Skip to main content
Glama
MyLife Finance

MyLife Finance

by Zheny918

dashboard_build

Generate a self-contained HTML finance dashboard with inline data and Chart.js, returning a file path and /dashboard.html URL for filtering, chart switching, and optional user-specific snapshots.

Instructions

生成自包含 HTML 财务看板(内联数据 + Chart.js),返回文件路径与可访问 URL(/dashboard.html)。纯前端筛选/切换图表。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": "dashboard_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
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 must carry the behavior burden. It does disclose useful traits: the output is self-contained HTML with inlined data, rendered with Chart.js, and returns both a file path and a URL (/dashboard.html). It omits what is arguably most important for a fixed-path artifact — whether a prior dashboard is overwritten, whether read/write permissions are required, and which data scope (accounts, date range) is snapshot into the dashboard.

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?

One sentence with parenthetical asides, front-loading the artifact and its rendering approach before the return values and the optional parameter. Compact and mostly front-loaded, though the parenthetical style packs three separate facts into dense clauses that could be split for faster scanning.

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?

No output schema exists, and the description compensates by naming the return values (file path and accessible URL). No annotations means permission/overwrite behavior is unstated, and the data scope of the dashboard is left undefined, but for a one-parameter generator the core agent-facing facts are present.

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 coverage is 0% for the single optional userId, so the description is the only source of meaning. It states userId is optional and governs "快照归属" (whose snapshot the file belongs to), which is genuinely beyond the schema, but "snapshot ownership" remains vague and does not explain the default when omitted or the effect on the rendered URL.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

A specific verb+resource pair ("生成自包含 HTML 财务看板") plus implementation details (inline data + Chart.js) and the concrete output artifact. The build/render action is unmistakably distinct from the CRUD siblings (account_add, budget_list, etc.), so an agent can identify it without opening the schema.

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 parenthetical "纯前端筛选/切换图表" hints that filtering and chart switching happen client-side after generation, which helps an agent decide not to re-invoke for filters. However, there is no explicit when-to-use, when-not-to-use, or alternative (e.g. against a list tool) guidance.

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