Reorder pipeline steps
reorder_custom_pipeline_stepsReorder Steps
When to use: 사용자가 파이프라인 스텝의 실행 순서를 바꿔 달라고 명시적으로 요청할 때.
When NOT to use: 사용자가 명시적으로 만들기·수정·배포를 요청하지 않았으면 호출하지 않는다 — 분석 질문에 답하려고 에셋·파이프라인·소스·스텝을 만들거나 고치지 않는다. 스텝 하나의 설정을 고치려면 update_custom_pipeline_step 을 쓴다.
Limitations: step_ids 에 이 파이프라인의 모든 스텝 id 를 새 실행 순서대로 보낸다. 먼저 get_custom_pipeline 으로 읽고 그 draft_revision 을 expected_revision 으로 넘긴다. 409 면 그 사이 파이프라인 초안이 바뀐 것이다 — 409 응답의 current_revision 을 그대로 다시 보내 덮어쓰지 말고, 다시 읽어 바뀐 내용을 사용자에게 확인받은 뒤 다시 시도한다. 저장·배포 전에 preview_custom_pipeline(force_build=true)으로 결과를 확인하는 것을 검증 단계로 쓴다. 초안만 바뀐다 — 지금 실행 중인 배포 버전과 대시보드 수치는 그대로이고, publish_custom_asset 으로 배포해야 반영된다.
Examples:
Q: 수수료 룩업을 평균 구매금액 계산보다 먼저 하게 바꿔줘 params: {'path': {'pipeline_id': 34}, 'body': {'expected_revision': '…', 'step_ids': [41, 40, 42]}}
Output shape: list of steps in the new order
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pipeline_id": "<pipeline_id>",
"step_ids": "<step_ids>",
"expected_revision": "<expected_revision>"
},
"name": "reorder_custom_pipeline_steps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step_ids | Yes | ||
| project-id | No | ||
| pipeline_id | Yes | ||
| expected_revision | Yes | Concurrency token for operations that act on a whole draft — the `draft_revision` (or column-meta `revision`) this client last read. When the draft changed since, the request is rejected with 409 and the live token. Omit to keep the legacy last-write-wins behaviour. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||