Skip to main content
Glama

Preview pipeline source data

preview_custom_pipeline_source
Read-only

Post Source Preview

When to use: 소스 하나(데이터 레이크·데이터 마트 테이블, 다른 커스텀 에셋, Trino 쿼리)를 파이프라인에 추가하기 전에 실제로 어떤 행이 나오는지 미리 볼 때 — 구글 시트 소스는 미리보기를 지원하지 않으니 list_custom_pipeline_sheet_columns 로 컬럼을 본다.

Limitations: 저장하지 않는다. 최대 200행(limit), offset 으로 넘긴다. 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': {'source_type': 'DATA_LAKE', 'source_config': {'table_name': 'commerce_order'}, '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": {
      "source_type": "<source_type>",
      "source_config": "<source_config>"
    },
    "name": "preview_custom_pipeline_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
filtersNo
project-idNo
source_typeYes
source_configYes
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?

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, and the description adds material behavior beyond that: nothing is persisted, at most 200 rows are returned with offset pagination, and a QUERY reading tables outside the user's data returns 422. Those are exactly the failure modes an agent needs before calling, and none are recoverable from the annotations or schema.

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?

Well structured with explicit When to use / Limitations / Examples / Output shape sections, and the critical routing and restriction information is front-loaded. The opening 'Post Source Preview' is a wasted line that merely restates the endpoint, and the source_config enumeration is dense, though most of that density is genuinely required detail rather than padding.

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 read-only preview tool with an output schema, the definition covers the essentials: supported source types, config shape per type, row cap and paging, one concrete example, and the non-persistence guarantee. The remaining gaps are the undocumented filters/select_columns/project-id parameters — meaningful for a preview tool where column selection and row filtering are plausible use cases — and the mixed Korean/English text, which may slow parsing but does not affect correctness.

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 carries the burden — and it does for the hard part, spelling out the per-source_type shape of source_config (DATA_LAKE {table_name, schema?, catalog?}, DATA_MART {table_name}, PIPELINE {pipeline_id}, QUERY {query}) including how to map list_custom_pipeline_available_sources fields into it, plus the 200-row limit and offset paging. However, filters, project-id, and select_columns are never mentioned, so three of seven parameters remain unexplained in both schema and description.

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?

States a specific verb and resource (preview rows from a single pipeline source before it is added) and immediately scopes it to four supported source kinds — data lake/data mart tables, other custom assets, and Trino queries. It also names the sibling to use instead for Google Sheets (list_custom_pipeline_sheet_columns), so an agent can place it against neighboring tools 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?

Gives an explicit when-to-use condition (before adding a source to a pipeline, to see what rows actually come out) plus explicit exclusions: GOOGLE_SHEETS and FILE sources do not support preview, and sheet columns must be read via list_custom_pipeline_sheet_columns. It also names get_custom_asset as the way to obtain a pipeline_id for the PIPELINE case, so the routing gaps are closed rather than implied.

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