一个基于 FastMCP 2.0 框架构建的模型上下文协议(MCP)服务,专为 iCost iOS 记账应用提供智能记账功能集成。
Single tool with a substantial schema, but significant gaps in naming clarity, parameter descriptions, and error handling. The tool name 'icost_add_record' uses a verb but is not maximally clear about the specific action. While the input schema is comprehensive and well-structured with type definitions, many parameters lack descriptions or have vague ones. Output schema is not documented. No error handling guidance for LLMs. The server uses STDIO transport, which is a hard constraint limiting overall quality assessment.
统一的记账工具 - 支持添加支出、收入和转账记录
Tool name lacks clarity on context: 'icost_add_record' does not immediately distinguish between expense, income, and transfer creation. Consider renaming to 'icost_create_record' or splitting into 'icost_add_expense', 'icost_add_income', 'icost_add_transfer' to align with LLM intent inference.
Tool description (Chinese, roughly 'A unified accounting tool supporting expense, income, and transfer records') is generic and does not explain WHEN to use this tool or what it returns. No mention of prerequisites (e.g., required account setup) or dependencies on other tools like 'icost_categories()'.
Many parameters lack descriptions or have insufficient ones: 'account', 'book', 'no_budget', 'no_count', 'location', 'tag', 'claim', 'discount', 'from_account', 'to_account', 'fee' have descriptions, but they are minimal or assume domain knowledge. 'location' format (位置#longitude#latitude) is documented in description but should be in schema format. 'tag' format (标签1#标签2) is also descriptive but not formal.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 50 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 19 | - | v1 |
Parameter relationships are underdocumented. The schema hints that some parameters apply only to certain record_types (e.g., 'from_account' and 'to_account' only for 'transfer'), but LLM readability relies on the description text, not schema hints. Each parameter description should explicitly state when it applies.
Output schema is not documented in source code. No evidence of what fields the tool returns (success/failure indicator, record ID, confirmation details, etc.). This forces the LLM to guess what data is available for downstream operations.
No error handling guidance. The tool calls macOS 'open' command and returns success/failure, but responses lack actionable recovery hints (e.g., 'If account not found, call icost_categories() first'). LLM cannot self-correct from errors.
Parameter 'record_type' is an enum (good), but parameter descriptions do not clearly state that 'category' is required for expense and income but optional for transfer. Conditional requirements are implicit and risk misuse.
Free-form string parameters like 'category', 'account', 'book' should reference how the LLM can discover valid values. The description mentions 'icost_categories()' for category, but no retrieval mechanism is documented for accounts or books.