Skip to main content
Glama

Publish custom asset

publish_custom_asset
Destructive

Publish Asset

When to use: 사용자가 에셋을 배포(발행)해 달라고 명시적으로 요청할 때 — 바뀌는 내용을 보여 주고 확인받은 뒤에만 실행한다.

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

Limitations: 배포하면 그 순간의 초안 전체(하위 파이프라인 포함)가 새 버전으로 고정되고 실행 버전이 된다. 최대 30분 주기의 스냅샷 업로드 뒤 마트 빌드가 끝나야 대시보드 수치가 바뀐다. 커스텀 에셋·파이프라인은 같은 소유자의 모든 프로젝트가 공유하며, 발행하면 그 프로젝트들 대시보드에도 반영된다. 먼저 get_custom_asset 으로 읽고 그 draft_revision 을 expected_revision 으로 넘긴다. 409 면 그 사이 초안이 바뀐 것이다 — 409 응답의 current_revision 을 그대로 다시 보내 덮어쓰지 말고, 다시 읽어 바뀐 내용을 사용자에게 확인받은 뒤 다시 시도한다. 저장·배포 전에 preview_custom_pipeline(force_build=true)으로 결과를 확인하는 것을 검증 단계로 쓴다. 되돌리기: unpublish_custom_asset(이후 갱신만 멈춤 — 테이블·차트는 그대로, 다시 배포하면 복귀) 또는 rollback_custom_asset(이전 배포 버전으로 초안과 실행 버전을 교체).

Examples:

  • Q: 주문 보강 에셋 배포해줘 params: {'path': {'asset_id': 12}, 'body': {'expected_revision': '…', 'description': '수수료율 컬럼 추가'}}

Output shape: object: {id, asset_id, version_number, description, created_by, created_at, snapshot}

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": {
      "asset_id": "<asset_id>",
      "expected_revision": "<expected_revision>"
    },
    "name": "publish_custom_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
asset_idYes
project-idNo
descriptionNo
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.6/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false and destructiveHint=true; the description adds substantial behavioral context beyond that: cross-project sharing of custom assets/pipelines, the up-to-30-minute snapshot delay before dashboard numbers change, the mandate to read via get_custom_asset and pass draft_revision as expected_revision, and explicit 409 handling that forbids blindly resending current_revision. It also documents the reversibility story (unpublish stops refresh but keeps tables/charts; rollback swaps in a prior version), which qualifies the destructiveHint rather than contradicting it.

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 front-loaded and cleanly sectioned (when to use / when not / limitations / examples / output shape), so an agent can scan it quickly. It is long, and the closing "Output shape" line duplicates the existing output schema, which is the only genuinely redundant content.

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, concurrency-sensitive publish operation the description covers preconditions, revision protocol, conflict recovery, propagation side effects, verification via preview_custom_pipeline, and rollback paths, with an output schema handling return values. The only real gap is the undocumented project-id, which is minor against this level of coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 25%, so the description should carry more of the load. It does explain the expected_revision concurrency workflow and the example shows where asset_id and description go, but the project-id parameter is never mentioned anywhere, and description's role is only implied by the example. The revision explanation largely restates the schema's own expected_revision 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?

"Publish Asset" is backed by a precise statement of effect: publishing freezes the whole current draft (including sub-pipelines) into a new version that becomes the running version. It explicitly separates itself from create_custom_pipeline_version (save-only), unpublish_custom_asset, and rollback_custom_asset, so an agent can pick it out of the sibling list without opening schemas.

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?

Contains an explicit "When to use" (only on an explicit user request to deploy, after showing the diff and getting confirmation) and a "When NOT to use" (do not create/modify/deploy to answer analytical questions). It also names the correct alternative for the save-only case, giving full when/when-not/alternative coverage.

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