mcp-server-yayi-clinic
v1.0.0牙医管家(yayi360)口腔诊所管理后台 MCP 连接器:营收日报月报、预约时段、患者来源画像。Yayi360 dental clinic MCP connector…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
yayi_login
登录牙医管家后台。通常在调用其他工具时会自动登录,仅在需要显式验证登录状态时使用。
| Parameter | Type | Description |
|---|---|---|
clinicPw | string | 密码(不传则使用环境变量 YAYI_CLINIC_PW) |
houseId | string | 诊所管家号(纯数字) |
staffId | string | 员工姓名,需与系统内登记一致 |
yayi_daily_revenue
抓取牙医管家「财务 → 每日收入明细」,返回每日应收/实收、初诊/复诊人数。默认返回汇总统计 + 最近 10 天明细;需要全部原始行时把 includeRaw 设为 true。
| Parameter | Type | Description |
|---|---|---|
endDate | string | 结束日期 YYYY-MM-DD,默认今天 |
includeRaw | boolean | 是否返回全部原始行(数据量大,慎用) |
limit | number | includeRaw 为真时限制返回行数 |
maxPages | number | 最多翻页数,默认 8 |
startDate | string | 起始日期 YYYY-MM-DD,默认本年 1 月 1 日 |
tailDays | number | 返回最近 N 天明细,默认 10 |
yayi_monthly_summary
抓取全年每日收入并按月聚合,输出月报:每月天数、初复诊人次、应收/实收金额、日均实收、客单价,以及环比(momActual / momVisits)。当月数据未满会标记 partial=true。
| Parameter | Type | Description |
|---|---|---|
endDate | string | 结束日期,默认今天 |
maxPages | number | 最多翻页数,默认 8 |
year | number | 年份,默认今年 |
yayi_appointments
抓取预约列表(列表视图),返回预约记录样本、按小时的时段分布(hourDistribution)、预约状态分布(含「已过期」流失数)。
| Parameter | Type | Description |
|---|---|---|
limit | number | 返回预约样本条数,默认 30 |
yayi_patients
抓取患者列表并统计客户来源分布、年龄段分布、治疗标签 Top 25,同时给出来源字段填写率。来源填写率低说明渠道归因不可靠。
| Parameter | Type | Description |
|---|---|---|
includeSamples | boolean | 是否返回患者原始行 |
limit | number | 样本条数,默认 20 |
pages | number | 翻页数量,每页约 100 条,默认 5 |
yayi_fetch_page
通用兜底工具:打开牙医管家任意站内页面(或完整 URL),可选点击菜单文字、设置日期范围并查询,然后抓取页面上最大的表格。用于访问本工具未封装的报表(如诊疗实收统计、现金流量表、库房等)。
| Parameter | Type | Description |
|---|---|---|
url * | string | 站内路径(如 /station/finance)或完整 URL |
clickText | string | 打开后要点击的菜单文字(正则),如「诊疗实收」 |
endDate | string | 结束日期 |
limit | number | 返回行数,默认 50 |
screenshot | boolean | 是否保存页面截图 |
startDate | string | 起始日期,配合 endDate 使用 |