Skip to main content
Glama

Reorder pipeline steps

reorder_custom_pipeline_steps
Destructive

Reorder 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

NameRequiredDescriptionDefault
step_idsYes
project-idNo
pipeline_idYes
expected_revisionYesConcurrency 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

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag destructiveHint=true and readOnly=false, but the description adds genuinely valuable context: only the draft changes, the live published version and dashboard numbers are untouched, and publish_custom_asset is required to apply changes. It also explains 409 handling and warns against blindly resending current_revision, plus recommends preview_custom_pipeline(force_build=true) as verification. Strong beyond-annotation disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Headers (When to use / When NOT to use / Limitations / Examples) front-load the decision-relevant content, and the worked example is compact and directly usable. The trailing 'Output shape' line is mild redundancy since an output schema exists.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive draft-mutating tool with an output schema, the description covers prerequisites, concurrency conflicts, side effects, and verification steps. The only meaningful omission is the undocumented project-id parameter and any note on whether an empty/partial step_ids list is rejected.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With only 25% schema coverage, the description compensates well: step_ids must contain every step id in this pipeline in the new execution order (a full-replacement semantic the schema does not state), and expected_revision should come from a prior get_custom_pipeline draft_revision. The project-id parameter is never mentioned, leaving one gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb+resource (reordering pipeline steps) and explicitly distinguishes it from update_custom_pipeline_step for single-step configuration changes. The tautological 'Reorder Steps' header adds nothing, and the mixed Korean/English phrasing slightly slows parsing, but the actual operation is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit 'When to use' condition (user explicitly asks to change step execution order) and a 'When NOT to use' rule that forbids creating/editing/deploying to answer analytical questions. It also names the alternative tool for a different need (update_custom_pipeline_step) and prescribes the read-then-write workflow.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources