Skip to main content
Glama

Preview unsaved pipeline sources

preview_custom_pipeline_draft
Read-only

Post Draft Preview

When to use: 아직 저장하지 않은 소스 조합(기본 소스 + 조인·유니온)이 어떤 결과를 내는지 미리 볼 때 — 소스를 저장하기 전 검증 단계로 쓴다.

Limitations: 소스 조합만 계산하고 스텝은 적용하지 않는다 — 저장된 파이프라인의 스텝까지 보려면 preview_custom_pipeline(force_build=true). 최대 200행. 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}, PIPELINE 은 {pipeline_id}(다른 커스텀 에셋은 get_custom_asset 의 pipelines[].id 를 넘긴다), QUERY 는 {query}(Trino SELECT 문 — 내 데이터 밖의 테이블을 읽으면 422). GOOGLE_SHEETS·FILE 소스는 미리보기를 지원하지 않는다(시트 컬럼은 list_custom_pipeline_sheet_columns 로 본다).

Examples:

  • Q: 주문 데이터만 기본 소스로 두면 결과가 어떻게 보이는지 보여줘 params: {'body': {'sources': [{'source_type': 'DATA_LAKE', 'source_config': {'table_name': 'commerce_order'}, 'join_type': 'BASE', 'alias': '주문'}], 'limit': 20}}

Output shape: object: {columns[], rows[], row_count, generated_sql}

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": {
      "sources": "<sources>"
    },
    "name": "preview_custom_pipeline_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
filtersNo
sourcesYes
project-idNo
select_columnsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Although the annotations already declare readOnlyHint=true and destructiveHint=false, the description adds behavior the annotations do not cover: it does not apply pipeline steps, caps the result at 200 rows, returns a 422 when a QUERY reads tables outside the user's data, and rejects sheet/file source types. Those constraints are exactly what an agent needs before calling.

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 when-to-use, then limitations, then a worked example, then the output shape, so it is easy to scan. It is dense and packs several parenthetical caveats into single sentences, and the 'Post Draft Preview' header adds little, but almost every sentence carries real information.

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?

An output schema exists, so the 'columns/rows/row_count/generated_sql' summary is a bonus; the safety profile is covered by annotations, and the description supplies the limits, error modes, and sibling routing. The description is complete enough to call correctly, with only the secondary parameters (offset, filters, project-id) left undiscussed.

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 description coverage is 0%, so the description has to carry the parameter meaning, and it does so for the hard part: it gives the per-source_type shape of source_config (DATA_LAKE with optional schema and catalog, DATA_MART, PIPELINE, QUERY with Trino SELECT), including how field names map from list_custom_pipeline_available_sources. It does not explain offset, filters, project-id, or select_columns, so it is strong but incomplete.

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 names a specific verb and resource ('preview an unsaved source combination: base + join/union'), and it explicitly separates itself from the sibling by contrasting with preview_custom_pipeline(force_build=true) for saved pipelines. An agent can choose between the two without opening a schema, even though the opening header 'Post Draft Preview' is itself opaque.

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?

The description gives an explicit when-to-use statement ('use as a validation step before saving sources'), an explicit alternative with a condition (preview_custom_pipeline with force_build=true to see steps), and explicit exclusions (GOOGLE_SHEETS and FILE sources are unsupported; use list_custom_pipeline_sheet_columns for those columns). Nothing about routing is left to inference.

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