Tool tree
icost.lmmmmmm.dev exposes WebMCP tools to AI agents.
Implementation
gradeNot graded
gradeNot graded
get_ledger_contextAnswer
读取当前页面的账本统计上下文、筛选、币种和汇率,不返回逐笔记录。先调用此工具取得 contextId;用户必须已在页面手动启用 Agent 分析。
View tool JSON
{
"name": "get_ledger_context",
"kind": "answer",
"impl": "imperative",
"description": "读取当前页面的账本统计上下文、筛选、币种和汇率,不返回逐笔记录。先调用此工具取得 contextId;用户必须已在页面手动启用 Agent 分析。",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {},
"additionalProperties": false
}
}summarize_ledgerAction
按页面当前筛选汇总支出、收入、净额及均值。先调用 get_ledger_context 并传入 expectedContextId。scope 默认 current_view;all_data 必须显式指定。where 是额外 AND 条件。缺汇率时人民币合计为部分合计。
View tool JSON
{
"name": "summarize_ledger",
"kind": "act",
"impl": "imperative",
"description": "按页面当前筛选汇总支出、收入、净额及均值。先调用 get_ledger_context 并传入 expectedContextId。scope 默认 current_view;all_data 必须显式指定。where 是额外 AND 条件。缺汇率时人民币合计为部分合计。",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"expectedContextId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"scope": {
"type": "string",
"enum": [
"current_view",
"all_data"
]
},
"where": {
"type": "object",
"properties": {
"from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"types": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"categories": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"currencies": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"accounts": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"books": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"tags": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"excludedTags": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"keyword": {
"type": "string",
"maxLength": 120
}
},
"additionalProperties": false
}
},
"required": [
"expectedContextId"
],
"additionalProperties": false
}
}group_ledgerAnswer
对当前页面账本按月份、分类、子分类、账户、账本、标签或币种分组,只返回汇总。标签可重叠,不能相加当总额。先获取 contextId;默认当前筛选,最多 50 组。
View tool JSON
{
"name": "group_ledger",
"kind": "answer",
"impl": "imperative",
"description": "对当前页面账本按月份、分类、子分类、账户、账本、标签或币种分组,只返回汇总。标签可重叠,不能相加当总额。先获取 contextId;默认当前筛选,最多 50 组。",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"expectedContextId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"scope": {
"type": "string",
"enum": [
"current_view",
"all_data"
]
},
"where": {
"type": "object",
"properties": {
"from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"types": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"categories": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"currencies": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"accounts": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"books": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"tags": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"excludedTags": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"keyword": {
"type": "string",
"maxLength": 120
}
},
"additionalProperties": false
},
"dimension": {
"type": "string",
"enum": [
"month",
"category",
"subcategory",
"account",
"book",
"tag",
"currency"
]
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50
}
},
"required": [
"expectedContextId",
"dimension"
],
"additionalProperties": false
}
}compare_periodsAction
比较两个明确的日期期间,返回支出、收入、净额和分类/标签变化。当前视图模式保留页面非日期筛选,但两个明确期间覆盖页面日期筛选。先获取 contextId;缺汇率结果标为部分合计。
View tool JSON
{
"name": "compare_periods",
"kind": "act",
"impl": "imperative",
"description": "比较两个明确的日期期间,返回支出、收入、净额和分类/标签变化。当前视图模式保留页面非日期筛选,但两个明确期间覆盖页面日期筛选。先获取 contextId;缺汇率结果标为部分合计。",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"expectedContextId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"scope": {
"type": "string",
"enum": [
"current_view",
"all_data"
]
},
"where": {
"type": "object",
"properties": {
"types": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"categories": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"currencies": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"accounts": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"books": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"tags": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"excludedTags": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"keyword": {
"type": "string",
"maxLength": 120
}
},
"additionalProperties": false
},
"currentPeriod": {
"type": "object",
"properties": {
"from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
}
},
"required": [
"from",
"to"
],
"additionalProperties": false
},
"previousPeriod": {
"type": "object",
"properties": {
"from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
}
},
"required": [
"from",
"to"
],
"additionalProperties": false
}
},
"required": [
"expectedContextId",
"currentPeriod",
"previousPeriod"
],
"additionalProperties": false
}
}