Data Processing
使用多种连接方式合并和连接多个表格(内连接、左连接、右连接、全连接)
用三种语言从你的代码中调用此工具。
curl -X POST 'https://api.elysiatools.com/zh/api/tools/multi-table-joiner' \
-H 'Content-Type: application/json' \
-d '{"inputData":"输入两个表格,用空行分隔。每个表应具有一致的列结构。","delimiter":"comma","hasHeaders":true,"joinType":"inner","leftTableKey":"输入左表的列名","rightTableKey":"输入右表的列名","customJoinCondition":"例如:table1.price > table2.min_price","separator":"comma","includeHeaders":true,"preserveSourceInfo":false}'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST https://api.elysiatools.com/zh/api/tools/multi-table-joiner| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| inputData | textarea | 是 | — |
| delimiter | select | 否 | — |
| hasHeaders | checkbox | 否 | — |
| joinType | select | 否 | — |
| leftTableKey | text | 是 | — |
| rightTableKey | text |
将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-multi-table-joiner": {
"name": "multi-table-joiner",
"description": "使用多种连接方式合并和连接多个表格(内连接、左连接、右连接、全连接)",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=multi-table-joiner",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}连接到 SSE 端点后,列出已开放的工具:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}通过工具 id 调用,参数由其参数表构建:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "multi-table-joiner",
"arguments": {
"inputData": "输入两个表格,用空行分隔。每个表应具有一致的列结构。",
"delimiter": "comma",
"hasHeaders": true,
"joinType": "inner",
"leftTableKey": "输入左表的列名",
"rightTableKey": "输入右表的列名",
"customJoinCondition": "例如:table1.price > table2.min_price",
"separator": "comma",
"includeHeaders": true,
"preserveSourceInfo": false
}
}
}有问题或反馈?请联系 [email protected]
| 是 |
| — |
| customJoinCondition | text | 否 | 用于过滤连接记录的附加条件(高级用户使用) |
| separator | select | 否 | — |
| includeHeaders | checkbox | 否 | — |
| preserveSourceInfo | checkbox | 否 | — |
文本结果
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}