Skip to main content
Glama

Reorder pipeline sources

reorder_custom_pipeline_sources
Destructive

Update Source Priorities

When to use: 사용자가 파이프라인 소스의 결합 순서를 바꿔 달라고 명시적으로 요청할 때.

When NOT to use: 사용자가 명시적으로 만들기·수정·배포를 요청하지 않았으면 호출하지 않는다 — 분석 질문에 답하려고 에셋·파이프라인·소스·스텝을 만들거나 고치지 않는다. 소스 하나의 설정을 고치려면 update_custom_pipeline_source 를 쓴다.

Limitations: items 에 소스 id 와 새 priority 를 보낸다. 먼저 get_custom_pipeline 으로 읽고 그 draft_revision 을 expected_revision 으로 넘긴다. 409 면 그 사이 파이프라인 초안이 바뀐 것이다 — 409 응답의 current_revision 을 그대로 다시 보내 덮어쓰지 말고, 다시 읽어 바뀐 내용을 사용자에게 확인받은 뒤 다시 시도한다. 초안만 바뀐다 — 지금 실행 중인 배포 버전과 대시보드 수치는 그대로이고, publish_custom_asset 으로 배포해야 반영된다.

Examples:

  • Q: 결제 소스가 주문 소스보다 먼저 오게 순서 바꿔줘 params: {'path': {'pipeline_id': 34}, 'body': {'expected_revision': '…', 'items': [{'id': 31, 'priority': 0}, {'id': 30, 'priority': 1}]}}

Output shape: list of sources 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>",
      "items": "<items>",
      "expected_revision": "<expected_revision>"
    },
    "name": "reorder_custom_pipeline_sources"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
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/5.0
Behavior5/5

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

Annotations only say destructiveHint=true, but the description discloses far more: only the draft changes, the live deployed version and dashboard numbers are untouched until publish_custom_asset, and 409 means the draft moved underneath you. It also prescribes the correct recovery (re-read, confirm with the user, retry) rather than blindly resending current_revision — exactly the kind of behavior an agent cannot infer from annotations.

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?

Sectioned with clear labels (When to use / When NOT to use / Limitations / Examples), front-loaded, and every block carries non-redundant information. The trailing "Output shape: list of sources in the new order" is largely redundant given a real output schema exists, and the mixed Korean/English register slightly slows scanning.

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

Completeness5/5

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

For a destructive draft-mutating operation with optimistic concurrency, the definition covers preconditions (read the pipeline first), failure mode (409), correct recovery, and blast radius (draft only, requires publish to take effect). With an output schema present it correctly does not spend words on return values beyond one line.

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?

Schema coverage is only 25%, so the description must compensate, and it largely does: items are source id + new priority, pipeline_id is the path parameter, and expected_revision comes from get_custom_pipeline's draft_revision. The concrete example payload pins down the shape. Only project-id is left unaddressed, hence not a 5.

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 header "Update Source Priorities" plus the worked example make clear this reorders sources within a pipeline, and the description explicitly separates it from update_custom_pipeline_source (single-source config) and implicitly from reorder_custom_pipeline_steps. The only weakness is that the headline verb ("Update") is softer than the actual operation (reorder), so an agent must read the body to confirm the resource is the source ordering.

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 trigger (user explicitly asks to change source combination order), an explicit exclusion (do not mutate assets/pipelines/sources/steps to answer an analytics question), and names the alternative tool for the adjacent case (single-source edit → update_custom_pipeline_source). This is the full when/when-not/alternative pattern.

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