Skip to main content
Glama

Update pipeline source

update_custom_pipeline_source
Destructive

Update Source

When to use: 사용자가 파이프라인 소스 하나의 설정(테이블·조인 키·별칭 등)을 고쳐 달라고 명시적으로 요청할 때.

When NOT to use: 사용자가 명시적으로 만들기·수정·배포를 요청하지 않았으면 호출하지 않는다 — 분석 질문에 답하려고 에셋·파이프라인·소스·스텝을 만들거나 고치지 않는다. 순서만 바꾸려면 reorder_custom_pipeline_sources 를 쓴다. 삭제는 지원하지 않는다 — 웹의 온톨로지 편집 화면에서 한다.

Limitations: 보낸 필드만 바꾼다. 먼저 조회 tool 로 대상을 읽고 그 updated_at 을 expected_updated_at 으로 넘긴다. 409 면 그 사이 다른 사람이 바꾼 것이다 — 다시 읽어 바뀐 내용을 사용자에게 보여 주고 확인받은 뒤 다시 시도한다. join_type=BASE 가 기본 소스다. LEFT·INNER·RIGHT·FULL 소스는 join_keys[{left, right}](left 는 기본 소스 컬럼, right 는 이 소스 컬럼) 또는 join_condition 으로 기본 소스 옆에 컬럼을 붙인다. UNION 소스는 join_keys 를 쓰지 않는다 — 미리보기는 기본 소스(와 조인) 결과 아래에 이 소스의 행을 UNION ALL 로 이어 붙이고 컬럼을 이름이 아니라 순서로 맞추므로, 컬럼 개수·순서·타입이 기본 쪽 결과와 같아야 한다(소스마다 select_columns 를 줘도 맞춰지지 않는다). source_config 형식은 source_type 마다 다르다(? 는 생략 가능): DATA_LAKE 는 {table_name, schema?, catalog?}(list_custom_pipeline_available_sources 의 DATA_LAKE 항목이면 schema_name·catalog 를 schema·catalog 로 그대로 넘긴다 — schema 를 빼면 내 데이터 레이크 스키마의 같은 이름 테이블을 가리킨다), DATA_MART 는 {table_name}, GOOGLE_SHEETS 는 {spreadsheet_id, sheet_name}, QUERY 는 {query, depends_on?, query_duckdb?, dialect?}(실행 정본은 DuckDB SELECT 문인 query_duckdb 다. query 는 Trino SELECT 문으로 계속 필수이고, 저장은 query_duckdb 를 보낸 그대로만 저장한다 — query 를 옮긴 DuckDB 문은 저장하지 않으며 그런 소스는 실행 때 따로 옮겨진다. 저장은 보낸 query_duckdb(없으면 query 를 DuckDB 로 옮긴 것)를 내 데이터의 빈 표 위에서 묶어 보고 실행 준비 규칙(표는 catalog.schema.table 세 부분 이름으로, 내 스키마·연동 원천만, Trino FORMAT 의 %s 를 printf 로 옮기지 않는다)까지 판정한다. 통과하지 못하면 소스는 저장되고 응답의 query_duckdb_warning(reason·field·detail — transpile_refused:<사유> 면 query_duckdb 를 DuckDB 문법으로 직접 써서 보내고, bind_failed:<사유> 면 표·열 이름을, not_ready:<사유> 면 표 이름·함수를 고친다)에 사유가 온다(거부 모드에서는 같은 사유가 422 type ontology-query-duckdb-unavailable 로 온다). 내 데이터 밖의 테이블을 읽으면 422, depends_on 은 그 쿼리가 읽는 다른 커스텀 에셋의 table_name 목록으로 발행 후 실행이 그 에셋을 먼저 만든다, dialect=duckdb 면 query_duckdb 가 필수다), FILE 은 {table_name, schema?, catalog?}(미리보기로 확인할 수 없고 내 스키마 밖의 테이블을 가리키면 공유 provider 테이블이어도 422 다 — 목록의 테이블은 FILE 이 아니라 DATA_LAKE 로 넣는다), 다른 커스텀 에셋을 쓰는 PIPELINE 은 {source_asset_id}(get_custom_asset 으로 읽은 그 에셋 id 하나 — 저장이 그 에셋으로 최상위 source_asset_id(발행 취소·삭제 때 이 파이프라인이 끊기기 전에 409 로 막는 칸)·pipeline_id(미리보기)·table_name(발행 후 실행)을 채운다)이다. 다른 에셋으로 바꿀 때도 그 에셋 id 하나만 보낸다. 없는 에셋 id·파이프라인 id 를 가리키거나 칸들이 서로 다른 에셋을 가리키면 422 다. 모르는 키는 422 다. 소스가 바뀌어 결과에서 사라진 컬럼의 자동 추론 컬럼 설명은 지워진다(사용자가 고친 설명은 남는다). 초안만 바뀐다 — 지금 실행 중인 배포 버전과 대시보드 수치는 그대로이고, publish_custom_asset 으로 배포해야 반영된다.

Examples:

  • Q: 주문 소스 이름을 국내 주문으로 바꿔줘 params: {'path': {'pipeline_id': 34, 'source_id': 30}, 'body': {'alias': '국내 주문', 'expected_updated_at': '2026-10-13T10:00:00'}}

Output shape: object: {id, priority, source_type, source_config, alias, updated_at, query_duckdb_warning?, ...}

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>",
      "source_id": "<source_id>",
      "expected_updated_at": "<expected_updated_at>"
    },
    "name": "update_custom_pipeline_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
aliasNo
priorityNo
join_keysNo
join_typeNo
source_idYes
project-idNo
pipeline_idYes
source_typeNo
union_groupNo
source_configNo
join_conditionNo
select_columnsNo
source_asset_idNo
filter_conditionNo
expected_updated_atYesConcurrency token — the `updated_at` this client last read for the entity. When it no longer matches the stored value the request is rejected with 409 instead of silently overwriting another session's edit. 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.8/5.0
Behavior5/5

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

Beyond the destructiveHint annotation, the description discloses that only sent fields change, that the change affects only the draft until publish_custom_asset is called, and that expected_updated_at provides optimistic concurrency with a 409 on conflict. It also documents validation failures, query_duckdb_warning behavior, 422 conditions, and automatic removal of inferred column descriptions.

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?

The description is front-loaded with purpose, when-to-use, and when-not-to-use sections, and the example is useful. The Limitations section is very dense and long, but most of its detail is justified by the tool's complexity and the low schema description coverage.

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 complex 15-parameter mutation tool with an output schema and destructiveHint annotation, the description is unusually complete. It covers draft-versus-published behavior, concurrency, source_config variants, join semantics, validation failures, and publish requirements, leaving little an agent needs to infer before calling it.

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 7%, but the description compensates heavily for the complex parameters: it explains expected_updated_at, source_asset_id, join_type, join_keys/join_condition, UNION handling, select_columns, and source_config formats per source_type. Some parameters such as priority, project-id, filter_condition, and union_group are not explained, so the coverage is strong but not complete.

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

Purpose5/5

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

The description states a specific verb and resource: updating one custom pipeline source's settings such as table, join keys, and alias. It also distinguishes the tool from reorder_custom_pipeline_sources and notes that deletion is unsupported, so the agent can identify the correct operation without opening the schema.

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 explicit when-to-use guidance tied to an explicit user request and explicit when-not-to-use guidance against making changes just to answer analytical questions. It also names reorder_custom_pipeline_sources as the alternative for ordering changes and points deletion to the web ontology editor.

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