云灵汐ERP蒸馏 → MCP工具映射表
V1.2 · 8域20工具57动作 · 10项修复全部通过(7项不完整/警告+3项设计缺陷) · 审查通过
V1.2在V1.1基础上修复3项设计缺陷:审批action从4处收敛到sop.sop唯一入口,删除4个重叠审批action(61→57)。
order.pay/fin.payment按C端/B端拆分:order.pay=微信/支付宝/云闪付(游客支付),fin.payment=现金/银行转账(内部财务)。
erp.departure.confirm/ec.product.audit/ec.distributor.audit保留(业务操作非流程审批,已加备注区分)。
3类工具来源:存量蒸馏(erp/order/fin) · 新设计(ec/user/sop/collab) · 外部只读(ext)。
🔴 OVERLAP-01/02/03: 审批action散落4处 → 统一sop.sop入口
原则: 审批统一走sop.sop一个入口,业务工具只管创建和查询
支付拆分: order.pay=C端支付(微信/支付宝/云闪付) | fin.payment=B端内部收付款(现金/银行转账)
SOP流程: Gateway写操作→查元数据(需SOP?)→sop.sop.trigger→挂起→通知审批人→sop.sop.approve/reject→放行或回退
删除的action: order.pay.confirm_payment | fin.settlement.audit | fin.payment.audit | fin.payment.confirm
保留的业务操作(非审批): erp.departure.confirm(确认出团) | ec.product.audit(商品合规审核) | ec.distributor.audit(商户入驻审核)
| 修复项 | 修复前 | 修复后 |
|---|---|---|
| OVERLAP-01 | order.pay和fin.payment参数重叠 | order.pay=C端(微信/支付宝/云闪付), fin.payment=B端(现金/银行转账) |
| OVERLAP-02 | fin.settlement.audit自己做审批 | 删除, 审批走sop.sop.approve/reject |
| OVERLAP-03 | 3处审批入口(fin.payment.audit/confirm + order.pay.confirm_payment) | 删除4个, 审批唯一入口=sop.sop.approve/reject |
| ERP模块 | 不映射原因 |
|---|---|
| M1 首页汇总 | Dashboard是数据聚合视图不是操作页面。Agent通过多次调用query action(如order.query+fin.settlement.query)自行聚合KPI数据,不需要独立工具。 |
| M10 知识中心 | 知识库管理/机器人管理/Agent广场属于Agent平台配置层,不是MCP业务工具。知识库上传→Agent平台管理界面;RAG检索→Agent运行时直接调DashScope,不经MCP Gateway。 |
| M12 用户权限 | RBAC权限配置(新增角色/分配权限/8种授权对象)是Gateway的配置层管理操作,不是业务工具。Gateway启动时加载权限规则到内存,权限变更通过管理界面操作不经过MCP工具调用。 |
| M13 系统管理 | 系统配置(密码策略/日志开关/水印)和企业信息管理属于系统运维,不是业务工具。AK&SK管理已映射到ext.regulatory工具的参数。字典管理(208条)是Gateway的工具元数据来源,不由MCP工具操作。 |
| 原工具 | 收敛为 | 理由 |
|---|---|---|
| erp.route-search + erp.route-create | erp.route | 同表ta_travel, search是read action, create是write action, 合并为一个工具多action |
| erp.resource-query + erp.supplier-query + erp.resource-lock | erp.resource | V6实测: 16类档案全是s_department一表+IndustryCatetory判别; 供应商也是s_department; 无库存→锁定变冲突检查 |
| erp.dispatch-create + erp.dispatch-query | erp.dispatch | 同属计调预定, 13子表用resource_type参数区分; 地接外交=resource_type=diplomatic |
| order.create + order.query + order.cancel | order.order | 同属订单生命周期, 合并CRUD |
| fin.settlement-query + fin.settlement-create | fin.settlement | V6实测: 11模块统一交互(选供应商→填金额→保存), 用type参数区分; 合并M6三级审核(audit action)和归档(archive action) |
| fin.supplier-settle + fin.invoice-issue | fin.payment | 同属财务收付款, 双审批=audit+confirm两action; 导游报账+发票合并 |
| ec.product-search + ec.product-create | ec.product | 同属商品管理, 合并CRUD |
| ec.distributor-query + ec.merchant-audit | ec.distributor | 同属分销商管理, query+audit两action |
| user.memory + user.preference | user.profile | 同属用户画像, 合并为profile的4个action |
| ext.scenic-query(监管上传部分) | ext.regulatory | 监管平台上传是写操作, 与景区查询(只读)性质不同, 拆分 |
| ext.aigc-image-gen + ext.aigc-video-gen | ext.aigc | 同属AI生成, 合并+新增文案生成和游客画像分析 |
| sop.create + sop.trigger + sop.query | sop.sop | 同属SOP生命周期, 合并 |
| collab.task-create + collab.task-query | collab.task | 同属任务管理, 合并 |
旅行社ERP核心业务: 线路/资源/计调/出团/合同
erp.route
5个动作ta_travel + ta_travel_user + ta_travel_project_list + ta_teamfee + ta_delivery + ta_refund| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
group_type | int | - | 1=组团,2=散客 | 团队类型筛选 |
code | string | - | - | 团队编号(TA/SK前缀) |
name | string | - | - | 团队名称 |
status | int | - | 1=待出团,2=已出团 | 团队状态 |
client_id | int | - | - | 客户单位FK→s_department.ID |
operator | int | - | - | 计调FK→s_user.ID |
date_range | object | - | - | {start,end}出团日期范围 |
page | int | - | 1 | - |
ta_travel行数组(含JOIN计算字段14个)| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
group_type | int | ✅ | 1=组团,2=散客 | 1=团队录单,2=散客计划 |
name | string | ✅ | - | 团队/计划名称 |
client_id | int | ✅ | - | 客户单位 |
departure_date | datetime | ✅ | - | 出团日期 |
end_data | datetime | ✅ | - | 散团日期(DB字段名end_data) |
adult_count | int | - | 0 | - |
child_count | int | - | 0 | - |
old_count | int | - | 0 | - |
infant_count | int | - | 0 | - |
escort_count | int | - | 0 | - |
region_type | int | - | 1=省内,2=省外,3=境外 | - |
use_car_type | int | - | 1=旅游用车,2=小车小团 | - |
travel_product_id | int | - | - | 旅游产品模板FK |
sales | int | - | - | 销售FK→s_user.ID |
operator | int | - | - | 计调FK→s_user.ID |
guide_id | int | - | - | 导游/司机FK |
guests | array | - | - | 客人名单[{name,id_type,id_no,phone}] |
itinerary | array | - | - | 行程安排[{date,vehicle,description,meals,hotel}] |
teamfee | array | - | - | 团费明细[{item_type,item_name,price,count,unit}] |
delivery | array | - | - | 代收款[{item_name,method,unit,amount}] |
traffic | array | - | - | 大交通[{ticket_company,type,date,from,to,train_no,price,count}] |
refund | array | - | - | 客户返款[{item,price,count}] |
{code:'TA/SK+...', ordercode:'GP+...'}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
code | string | ✅ | - | 团队编号 |
fields | object | ✅ | - | 要修改的字段(同create参数子集) |
{status:0}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
source_code | string | ✅ | - | 源团队编号 |
new_name | string | ✅ | - | - |
{code:'新TA编号'}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
plan_codes | array | ✅ | - | 散客计划编号数组[SK1,SK2,...] |
target_line_id | int | ✅ | - | 目标线路(getData/2462) |
{code:'新TA团队编号'}erp.resource
2个动作s_department (统一表, IndustryCatetory区分类型)| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
category | int | ✅ | client=1427(客户档案) | ground_agency=1583(地接社档案) | hotel=1447(酒店档案) | scenic=1444(景区景点) | restaurant=1443(餐厅档案) | car_company=1610(车辆公司) | shopping=14... | 16类档案→category值(用M7路由pageId映射,V6实测s_department统一表+IndustryCatetory判别) |
keyword | string | - | - | 企业名称/简称/法人/电话/信用代码 |
region | string | - | - | 行政区划码(省市区三级) |
level | string | - | - | 景区级别(1A-5A)/酒店星级等 |
is_active | bool | - | True | - |
page | int | - | 1 | - |
s_department行数组(ID,Name,ShortName,Property,LegalPerson,LPPhone,Level,Area,Address,CreditCode,Bank,BankNumber,AccountNO,Longitude,Latitude)| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
resource_id | int | ✅ | - | 资源ID(s_department.ID) |
resource_type | string | ✅ | scenic,hotel,restaurant,car,guide | 资源类型 |
start_date | date | ✅ | - | - |
end_date | date | ✅ | - | - |
exclude_team_code | string | - | - | 排除当前团队(编辑时用) |
{conflicts:[{team_code,team_name,resource_type,date,operator_name}]}erp.dispatch
4个动作ta_travel_scenicspot_plan / ta_travel_hotel_plan / ta_travel_restaurant_plan / ta_travel_car_plan / ta_travel_traffic_plan / ta_travel_insure_plan / ta_travel_visa_plan / ta_travel_guide_plan / ta_travel_selffee_plan / ta_travel_income_plan / ta_travel_expenses_plan / ta_travel_teamfee_delivery / ta_travel_project_list_sub| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
team_code | string | ✅ | - | 团队编号 |
resource_type | string | ✅ | scenic,hotel,restaurant,car,traffic,insurance,visa,guide,selffee,income,expenses,delivery,itinerary,diplomatic | 13类资源+地接外交 |
items | array | ✅ | - | 预定明细行(各type字段不同,见schema附录) |
{created: N, ids: []}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
team_code | string | ✅ | - | - |
resource_type | string | ✅ | - | - |
item_id | int | ✅ | - | - |
fields | object | ✅ | - | - |
{status:0}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
team_code | string | ✅ | - | - |
resource_type | string | ✅ | - | - |
item_id | int | ✅ | - | - |
{status:0}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
team_code | string | ✅ | - | - |
resource_type | string | - | - | 不传=全部13类 |
各plan表行数组(按resource_type分组返回)erp.departure
2个动作ta_travel.status| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
team_code | string | ✅ | - | - |
{status:0, ta_travel.status: 1→2}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
team_code | string | ✅ | - | - |
reason | string | - | - | - |
{status:0, ta_travel.status: 2→1 或 IsDel=1}erp.contract
3个动作s_department(档案关联) + OSS(文件存储)| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
archive_id | int | ✅ | - | 档案ID(s_department.ID) |
contract_file | file | ✅ | - | 合同文件(上传到OSS) |
{file_url, contract_id}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
contract_id | int | ✅ | - | - |
seal_id | int | ✅ | - | 电子印章ID(M13生成) |
{signed_url}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
archive_id | int | - | - | - |
contract_id | int | - | - | - |
{contracts: [{id, archive_id, file_url, sign_status, sign_date}]}订单全生命周期: 创建/查询/变更/取消/支付
order.order
4个动作ta_travel + ta_travel_user| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
team_code | string | ✅ | - | 关联团队编号 |
client_id | int | ✅ | - | - |
order_type | string | ✅ | team_order,scatter_order | 团队报名/FIT散客 |
{ordercode:'GP+...'}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
team_code | string | - | - | - |
status | int | - | - | - |
client_id | int | - | - | - |
date_range | object | - | - | - |
订单详情(含receivable/received/agentCollection/refundAmount/owing_received1/Profit11计算字段)| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
team_code | string | ✅ | - | - |
modify_type | string | ✅ | people,itinerary | 人数变更/行程变更 |
changes | object | ✅ | - | 变更内容 |
{status:0}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
team_code | string | ✅ | - | - |
reason | string | ✅ | - | - |
refund_amount | number | - | - | - |
{status:0}order.pay
1个动作M8收付款表(推断: ta_payment等)| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
team_code | string | - | - | 单团付款时传 |
pay_type | string | ✅ | receive,pay | 收款/付款 |
pay_method | int | ✅ | 3=微信,4=支付宝,5=云闪付(C端支付方式,B端走fin.payment) | C端支付方式(微信/支付宝/云闪付) |
amount | number | ✅ | - | - |
voucher_no | string | - | - | 凭证号 |
voucher_amount | number | - | - | - |
transfer_fee | number | - | - | 转账手续费 |
account_name | string | - | - | 账户名称 |
batch | bool | - | False | true=批量收/付款 |
client_id | int | - | - | 挂账公司 |
{payment_id, audit_status:'未审核'}对账/审核/归档/收付款/导游报账/发票
fin.settlement
3个动作M5各对账表 + M6归档表(archive_number)| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
type | string | ✅ | team_fee(团款),ground_agency(地接),ticket(票务),insurance(保险),meal(餐费),room(房费),scenic(门票),car(车费),visa(签证),other_expense(其他支出),other_income(其他收入) | M5往来对账11模块直接对应(去掉commission,M5无此模块) |
supplier_id | int | - | - | 供应商/客户ID |
team_code | string | - | - | - |
reconciliation_status | string | - | 未对账,已对账 | - |
对账行数组(应收/应付·对账金额·差额·已收/已付·导游现付·公司欠付)| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
type | string | ✅ | team_fee(团款),ground_agency(地接),ticket(票务),insurance(保险),meal(餐费),room(房费),scenic(门票),car(车费),visa(签证),other_expense(其他支出),other_income(其他收入) | M5往来对账11模块直接对应(去掉commission,M5无此模块) |
records | array | ✅ | - | [{id, reconciliation_amount}] |
{status:0, 差额=应收/应付-对账金额(自动)}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
team_code | string | ✅ | - | - |
archive_number | string | - | - | 归档号(格式DOC-{团号}), 不传则系统生成 |
{status:0, archive_number:'DOC-...'}fin.payment
3个动作M8各收付款表 + 导游报账表| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
pay_type | string | ✅ | receive,pay | 收款/付款 |
team_code | string | - | - | - |
amount | number | ✅ | - | - |
pay_method | int | ✅ | 1=现金,2=银行转账,3=微信,4=支付宝(B端内部收付款方式) | B端收付款方式 |
item_category | string | - | 团款,其他收入费用,其他支出,地接,餐费,房费,门票费,保险费,签证费,导服费,大交通费用,车费 | 项目类别(M9枚举) |
{payment_id, 请款审批:'未审核', 出纳确认:'未审核'}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
team_code | string | ✅ | - | - |
{16项费用汇总: 门票,房票,餐费,车费,大交通,保险,签证,导服费,其他支出,地接代付,代收,导游借款,其他收入,应报,已报,未报}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
team_code | string | ✅ | - | - |
invoice_type | string | ✅ | - | - |
amount | number | ✅ | - | - |
buyer_info | object | ✅ | - | {name,tax_no,address,phone,bank,account} |
{invoice_id, invoice_url}商品管理+分销商管理(ERP无, 新设计)
ec.product
4个动作新建(ERP无电商模块)| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
keyword | string | - | - | - |
category | string | - | - | - |
price_range | object | - | - | - |
page | int | - | - | - |
商品列表| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
poi_data | object | - | - | POI信息 |
spu_data | object | - | - | SPU信息 |
sku_data | array | - | - | SKU数组 |
package_data | object | - | - | 套餐信息 |
media | array | - | - | 素材文件 |
{product_id}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
product_id | int | ✅ | - | - |
action | string | ✅ | approve,reject | - |
remark | string | - | - | - |
{status:0}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
product_id | int | ✅ | - | - |
action | string | ✅ | publish,unpublish | - |
{status:0}ec.distributor
2个动作新建(ERP无电商模块)| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
distributor_id | int | - | - | - |
level | string | - | - | 分销商等级 |
agreement_status | string | - | - | - |
分销商列表| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
merchant_id | int | ✅ | - | - |
action | string | ✅ | submit,approve,reject | - |
remark | string | - | - | - |
{status:0}Agent原生用户记忆+偏好(ERP无会员体系)
user.profile
4个动作新建(Agent原生, Mem0+pgvector)| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
user_id | string | ✅ | - | - |
{memories: [{type, content, timestamp}]}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
user_id | string | ✅ | - | - |
memory_type | string | ✅ | - | preference/history/relationship |
content | string | ✅ | - | - |
{memory_id}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
user_id | string | ✅ | - | - |
pref_key | string | - | - | 口味/住宿/交通偏好等 |
{preferences: {key: value}}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
user_id | string | ✅ | - | - |
pref_key | string | ✅ | - | - |
pref_value | string | ✅ | - | - |
{status:0}第三方只读API + 监管上传 + AIGC
ext.scenic
1个动作| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
scenic_id | int | - | - | - |
date | date | - | - | - |
ticket_type | string | - | AttractionTickets: 大门票=1,全票=2,免票=3,导游票=4,老年票=5,半票=6,优惠票=7 | - |
{ticket_info, price, availability}ext.distributor
1个动作| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
distributor_id | int | - | - | - |
product_id | int | - | - | - |
{distributor_info, product_listing}ext.gate
2个动作| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
ticket_id | string | ✅ | - | - |
gate_id | int | - | - | - |
{verified: bool, gate_info}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
team_code | string | - | - | - |
date | date | - | - | - |
{gate_records: []}ext.regulatory
2个动作| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
team_code | string | ✅ | - | - |
ak | string | ✅ | - | 文旅AK(M13-5配置) |
sk | string | ✅ | - | 文旅SK |
{enterprise_id, enterprise_status: 0→1}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
team_code | string | ✅ | - | - |
{enterprise_status: 0=未上传,1=已上传}ext.aigc
4个动作| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
prompt | string | ✅ | - | - |
style | string | - | - | - |
{image_url}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
prompt | string | ✅ | - | - |
duration | int | - | - | - |
{video_url}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
line_id | int | ✅ | - | 线路产品ID |
channels | array | - | ["朋友圈","小红书","抖音","官网","海报"] | 5渠道文案 |
{copies: {channel: content}}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
consultation_group | string | ✅ | - | 线路咨询群 |
date | date | - | - | - |
{6维分析, 群体分布, 话题共现图谱, FAQ}工作流编排+审批+查询
sop.sop
5个动作| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
workflow_name | string | ✅ | - | - |
steps | array | ✅ | - | [{step_name, approver_role, timeout_hours}] |
trigger_condition | object | ✅ | - | {tool_name, action, condition} |
{sop_id}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
sop_id | int | ✅ | - | - |
context | object | ✅ | - | 触发上下文{team_code, tool_name, action, args} |
{sop_instance_id, current_step}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
sop_instance_id | int | ✅ | - | - |
user_id | int | ✅ | - | - |
remark | string | - | - | - |
{status:0, next_step}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
sop_instance_id | int | ✅ | - | - |
user_id | int | ✅ | - | - |
reason | string | ✅ | - | - |
{status:0, 回退到上一步}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
sop_instance_id | int | - | - | - |
team_code | string | - | - | - |
status | string | - | pending,approved,rejected,archived | - |
{sop_instances: [{id, status, current_step, history}]}任务管理+通知
collab.task
3个动作| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
task_type | int | ✅ | 1=收款,2=价格调整通知,3=往来账单处理,4=供应商合同,5=日常工作 | TaskType字典 |
title | string | ✅ | - | - |
assignee | int | ✅ | - | 分配给FK→s_user.ID |
due_date | date | - | - | - |
related_team_code | string | - | - | - |
{task_id}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
task_id | int | ✅ | - | - |
assignee | int | ✅ | - | - |
{status:0}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
assignee | int | - | - | - |
status | string | - | pending,in_progress,done | - |
date_range | object | - | - | - |
{tasks: []}collab.notify
2个动作| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
notify_type | int | ✅ | MessageType字典4类: 1=价格通知,2=行业文件,3=公司文件,4=合同协议 | 审批通知扩展类型: audit_result(审批结果), cashier_confirm(出纳确认), audit_reject(审核驳回), team_status(团队状态变更) | 系统消息用MessageType字典4类;审批通知用扩展类型(非字典,MCP新增) |
target_users | array | ✅ | - | 目标用户ID数组 |
content | string | ✅ | - | - |
{notify_id}| 参数 | 类型 | 必填 | 枚举/默认 | 说明 |
|---|---|---|---|---|
notify_type | int | ✅ | 同send的notify_type枚举 | - |
target_role | string | ✅ | - | 角色名(全员/财务/计调等) |
content | string | ✅ | - | - |
{notify_id, recipients: N}| ERP模块 | MCP工具 | MCP动作 | 类型 | SOP | 地接社 |
|---|---|---|---|---|---|
| M2列表搜索 | erp.route | search | read | ✅ | |
| M2团队录单7Tab | erp.route | create | write | 🔴 | ✅ |
| M2编辑 | erp.route | edit | write | 🔴 | ✅ |
| M2复制行操作 | erp.route | copy | write | ❌ | |
| M2-3散客并团 | erp.route | scatter_merge | write | 🔴 | ❌ |
| M7资源中心16类档案 | erp.resource | query | read | ✅ | |
| M4计调冲突检查 | erp.resource | check_conflict | read | ✅ | |
| M4计调预定13子Tab | erp.dispatch | create | write | 🔴 | ✅ |
| M4编辑预定行 | erp.dispatch | update | write | 🔴 | ✅ |
| M4删除预定行 | erp.dispatch | delete | write | ❌ | |
| M4计调查询 | erp.dispatch | query | read | ✅ | |
| M2确认出团行操作 | erp.departure | confirm | write | 🔴 | ✅ |
| M2取消出团行操作 | erp.departure | cancel | write | 🔴 | ✅ |
| M7各档案行操作'上传合同' | erp.contract | upload | write | ✅ | |
| M13电子印章+合同签署 | erp.contract | sign | write | 🔴 | ✅ |
| M7合同查询 | erp.contract | query | read | ✅ | |
| M2录单时自动生成ordercode | order.order | create | write | 🔴 | ✅ |
| M2列表查询 | order.order | query | read | ✅ | |
| M2编辑 | order.order | modify | write | 🔴 | ✅ |
| M2取消出团+退款 | order.order | cancel | write | 🔴 | ✅ |
| M8批量收款/付款新增 + 单团收付款 | order.pay | init_payment | write | 🔴 | ✅ |
| M5往来对账11模块 | fin.settlement | query | read | ✅ | |
| M5对账保存 | fin.settlement | reconcile | write | ✅ | |
| M6单团归档 | fin.settlement | archive | write | 🔴 | ✅ |
| M8单团/批量收付款新增 | fin.payment | create | write | 🔴 | ✅ |
| M8导游单团报账 | fin.payment | guide_report | read | ✅ | |
| M8发票开具 | fin.payment | invoice | write | 🔴 | ✅ |
| M2上传监管平台 + M13 AK/SK | ext.regulatory | upload | write | 🔴 | ✅ |
| M2 enterprise_status字段 | ext.regulatory | query_status | read | ✅ | |
| M11-3线路分析 | ext.aigc | copywriting | read | ✅ | |
| M11-2游客画像 | ext.aigc | portrait_analysis | read | ✅ | |
| M6三级审核 | sop.sop | approve | write | ✅ | |
| M6审核驳回 | sop.sop | reject | write | ✅ | |
| M6审核查询 + M8审批查询 | sop.sop | query | read | ✅ | |
| M8审批通知 + M6审核通知 | collab.notify | send | write | ✅ |
Gateway对每个工具调用做: 身份验证→权限校验→SOP触发判断→工具路由→AuditLog。写操作默认触发SOP→sop.sop.trigger→审批人approve/reject。地接社列=action是否对地接社可用。
| 工具.动作 | 读/写 | SOP | 权限 | 地接社 |
|---|---|---|---|---|
erp.route.search | 读 | 否 | all | ✅ |
erp.route.create | 写 | 🔴是 | full | ✅ |
erp.route.edit | 写 | 🔴是 | full | ✅ |
erp.route.copy | 写 | 否 | full | ❌ |
erp.route.scatter_merge | 写 | 🔴是 | full | ❌ |
erp.resource.query | 读 | 否 | all | ✅ |
erp.resource.check_conflict | 读 | 否 | all | ✅ |
erp.dispatch.create | 写 | 🔴是 | full(reduced:地接社仅diplomatic) | ✅ |
erp.dispatch.update | 写 | 🔴是 | full | ✅ |
erp.dispatch.delete | 写 | 否 | full | ❌ |
erp.dispatch.query | 读 | 否 | all | ✅ |
erp.departure.confirm | 写 | 🔴是 | full | ✅ |
erp.departure.cancel | 写 | 🔴是 | full | ✅ |
erp.contract.upload | 写 | 否 | full | ✅ |
erp.contract.sign | 写 | 🔴是 | full | ✅ |
erp.contract.query | 读 | 否 | all | ✅ |
order.order.create | 写 | 🔴是 | all | ✅ |
order.order.query | 读 | 否 | all | ✅ |
order.order.modify | 写 | 🔴是 | full | ✅ |
order.order.cancel | 写 | 🔴是 | full | ✅ |
order.pay.init_payment | 写 | 🔴是 | all | ✅ |
fin.settlement.query | 读 | 否 | all | ✅ |
fin.settlement.reconcile | 写 | 否 | full(财务角色) | ✅ |
fin.settlement.archive | 写 | 🔴是 | full(财务角色) | ✅ |
fin.payment.create | 写 | 🔴是 | all | ✅ |
fin.payment.guide_report | 读 | 否 | all | ✅ |
fin.payment.invoice | 写 | 🔴是 | full(财务) | ✅ |
ec.product.search | 读 | 否 | all | ✅ |
ec.product.create | 写 | 🔴是 | full | ✅ |
ec.product.audit | 写 | 🔴是 | full(审核员) | ✅ |
ec.product.publish | 写 | 否 | full | ✅ |
ec.distributor.query | 读 | 否 | all | ✅ |
ec.distributor.audit | 写 | 🔴是 | full | ✅ |
user.profile.get_memory | 读 | 否 | all | ✅ |
user.profile.set_memory | 写 | 否 | all | ✅ |
user.profile.get_preference | 读 | 否 | all | ✅ |
user.profile.set_preference | 写 | 否 | all | ✅ |
ext.scenic.query | 读 | 否 | all | ✅ |
ext.distributor.query | 读 | 否 | all | ✅ |
ext.gate.verify | 读 | 否 | all | ✅ |
ext.gate.query | 读 | 否 | all | ✅ |
ext.regulatory.upload | 写 | 🔴是 | full | ✅ |
ext.regulatory.query_status | 读 | 否 | all | ✅ |
ext.aigc.image | 写 | 否 | all | ✅ |
ext.aigc.video | 写 | 否 | all | ✅ |
ext.aigc.copywriting | 读 | 否 | all | ✅ |
ext.aigc.portrait_analysis | 读 | 否 | all | ✅ |
sop.sop.create | 写 | 否 | full | ✅ |
sop.sop.trigger | 写 | 否 | all | ✅ |
sop.sop.approve | 写 | 否 | full(审批人) | ✅ |
sop.sop.reject | 写 | 否 | full(审批人) | ✅ |
sop.sop.query | 读 | 否 | all | ✅ |
collab.task.create | 写 | 否 | all | ✅ |
collab.task.assign | 写 | 否 | full | ✅ |
collab.task.query | 读 | 否 | all | ✅ |
collab.notify.send | 写 | 否 | all | ✅ |
collab.notify.broadcast | 写 | 否 | full | ✅ |