Skip to main content
Glama

Add pipeline source

create_custom_pipeline_source
Destructive

Create Source

When to use: 사용자가 파이프라인에 소스(기본 소스 또는 조인·유니온할 데이터)를 추가해 달라고 명시적으로 요청할 때.

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

Limitations: 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 다. 추가하기 전에 preview_custom_pipeline_source 로 행을 확인한다(구글 시트는 그 tool 로 볼 수 없으니 list_custom_pipeline_sheet_columns 로 컬럼을 확인한다). 소스가 바뀌어 결과에서 사라진 컬럼의 자동 추론 컬럼 설명은 지워진다(사용자가 고친 설명은 남는다). 초안만 바뀐다 — 지금 실행 중인 배포 버전과 대시보드 수치는 그대로이고, publish_custom_asset 으로 배포해야 반영된다.

Examples:

  • Q: 이 파이프라인에 주문 데이터를 기본 소스로 추가해줘 params: {'path': {'pipeline_id': 34}, 'body': {'source_type': 'DATA_LAKE', 'source_config': {'table_name': 'commerce_order'}, 'join_type': 'BASE', 'alias': '주문', 'priority': 0}}

Output shape: object: {id, priority, source_type, source_config, join_type, join_keys, 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_type": "<source_type>",
      "source_config": "<source_config>"
    },
    "name": "create_custom_pipeline_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
aliasNo
priorityNo
join_keysNo
join_typeNoBASE
project-idNo
pipeline_idYes
source_typeYes
union_groupNo
source_configYes
join_conditionNo
select_columnsNo
source_asset_idNo
filter_conditionNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, readOnlyHint=false), the description discloses that only the draft changes and the deployed version/dashboards stay frozen until publish_custom_asset, that auto-inferred column descriptions for vanished columns are dropped while user-edited ones persist, and that a 409 protects in-use pipeline assets. It also documents partial-success behavior (query_duckdb_warning with reason/field/detail vs 422 in refusal mode), which the annotations alone do not convey.

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

Conciseness3/5

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

The when/when-not framing is well front-loaded, but the Limitations section is one enormous run-on paragraph with heavily nested parentheticals, mixing source_config formats, DuckDB transpilation rules, and error taxonomy. The information is valuable but the structure forces re-reading; splitting the per-source_type configs would help considerably.

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 13-parameter destructive mutation it covers creation flow, per-type config, side effects, error conditions, and the publish step, and the output schema means return values need not be explained. Minor gaps remain around filter_condition/union_group and the ordering effect of priority, which affect correct invocation in multi-source pipelines.

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 0% schema coverage the description must carry the load, and it does for most of the critical fields: per-source_type source_config shapes, join_type/join_keys/join_condition semantics, union column-order/type constraints, source_asset_id, depends_on, and dialect=duckdb requiring query_duckdb. It leaves filter_condition, union_group, project-id, and priority/alias semantics largely unexplained, so a few of the 13 parameters remain undocumented anywhere.

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 trigger sentence states a specific verb and resource ('파이프라인에 소스(기본 소스 또는 조인·유니온할 데이터)를 추가') and the Limitations block distinguishes source kinds and the update sibling. The opening line 'Create Source' is only a restatement of the name, but the follow-up carries the real purpose, so it is clear without being perfectly front-loaded.

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?

Explicit when-to-use ('사용자가 ... 명시적으로 요청할 때'), explicit when-not-to-use (do not create/fix assets to answer analysis questions), and named alternatives: update_custom_pipeline_source for edits, preview_custom_pipeline_source for rows, list_custom_pipeline_sheet_columns for Google Sheets. Routing decisions are fully specified.

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