get_pipeline_detail
所属分类:数据资产感知 · Tool 名称:
get_pipeline_detail
功能说明
获取指定数据管道的详细配置信息,包括 Reader(源端)/ Writer(目标端)的插件类型、插件实现类,以及管道同步的表名列表。适用于在写代码或排查问题时,快速确认「这个管道同步了哪些表、两端分别是什么类型的存储」。
输入参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
pipeline | string | 是 | 管道名称(可通过 list_pipeline 获取) |
输出结果
业务 JSON 直返(非信封结构),字段说明如下:
| 字段 | 类型 | 说明 |
|---|---|---|
name | string | 管道名称 |
readerType | string | Reader(源端)插件类型 |
readerImpl | string | Reader 端插件实现类的全限定类名 |
writerType | string | Writer(目标端)插件类型 |
writerImpl | string | Writer 端插件实现类的全限定类名 |
tables | string[] | 管道同步的表名列表 |
返回示例
{
"name": "mysql2doris_orders",
"readerType": "MySQL",
"readerImpl": "com.qlangtech.tis.plugin.ds.mysql.MySQLDataSourceFactory",
"writerType": "Doris",
"writerImpl": "com.qlangtech.tis.plugin.doris.DorisWriterFactory",
"tables": ["orders", "order_items"]
}
错误返回
| 情况 | 表现 |
|---|---|
pipeline 为空 | MCP 层 isError: true,内容为参数错误描述文本 |
| 服务端内部异常 | MCP 层 isError: true,内容为通用错误提示文本 |
注意点
- 可能返回部分字段:当 Reader 或 Writer 插件加载失败时(如插件未安装、配置损坏),对应一侧的字段(
readerType/readerImpl或writerType/writerImpl,以及tables)会缺失,但 Tool 仍返回成功。使用结果前请先检查目标字段是否存在。 tables取自 Reader 端配置的选定表(SelectedTab)列表,反映的是配置层面的同步范围。- 管道不存在时不会显式报错,表现为各字段缺失(仅有
name)。建议先用list_pipeline确认管道名称。
典型用法
在 Hermes 中的提问示例:
mysql2doris_orders 这个管道同步了哪些表?
使用 get_pipeline_detail 工具:看看 mysql2doris_orders 管道的源端和目标端分别是什么