Skip to main content
Glama
MyLife Finance

MyLife Finance

by Zheny918

import_from_mylife

Imports historical financial data read-only from a MyLifeOS SQLite database into an independent MyLife Finance database, preventing reverse writes that could disrupt synchronization.

Instructions

从 MyLifeOS 数据库只读导入历史数据到独立库(不反向写回,避免破坏同步)。dbPath 可选。userId 决定归属用户。scope: all=全量;categories=仅导入账户(期初账户)+分类(期初分类),用于空库初始化。

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

Input Schema

NameRequiredDescriptionDefault
scopeNoall(默认,全量)或 categories(仅期初账户+分类)
dbPathNoMyLifeOS 的 SQLite 路径
userIdNo导入归属用户,默认 default

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses read-only behavior, that nothing is written back to MyLifeOS to avoid breaking sync, and that userId determines ownership. It omits conflict behavior — whether importing into a non-empty target merges, overwrites, or errors — which is the main remaining risk for an import tool.

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?

A single compact paragraph with the safety constraint (no write-back) front-loaded, then parameter notes and scope semantics. A few clauses duplicate the schema's own descriptions of dbPath and userId, which is minor waste but not harmful.

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 three-parameter import with no annotations and no output schema, the description covers direction, safety, defaults, and mode semantics adequately. The gaps — return value expectations and behavior against a populated target — are real but secondary for a straightforward import.

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 100%, so all three parameters are already documented in the schema. The description restates dbPath as optional and userId as ownership, and adds the useful rationale that categories mode is for empty-database initialization, but adds little syntax or format detail beyond the schema.

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?

The description names a specific verb and direction: read-only import from the MyLifeOS database into an independent database, with an explicit non-write-back constraint. The source and destination are both stated, so the agent can distinguish this from the CRUD siblings (account_add, category_add, etc.) 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear condition for the non-default mode: scope=categories imports only opening accounts and categories, and is intended for initializing an empty database, while all is the full import. It does not state when this tool should be avoided (for example, if the target already has data), so it stops short of full when/when-not guidance.

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