Skip to main content
Glama

Unpublish custom asset

unpublish_custom_asset
Destructive

Unpublish Asset

When to use: 사용자가 에셋의 마트 갱신을 멈춰 달라고(발행 취소) 명시적으로 요청할 때 — 확인받은 뒤에만 실행한다.

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

Limitations: 다음 스냅샷 업로드부터 마트 갱신만 멈춘다 — 배포 버전·파이프라인 정의·이미 만든 테이블은 남고, 차트는 마지막 값에서 멈춘 채 그대로 보인다. 다시 배포하면 복귀한다. 이 에셋을 최상위 source_asset_id 로 가리키는 소스가 있는 다른 파이프라인이 있거나 조회 시점(실시간) 에셋이면 409 다. 이 tool 에는 강제 진행 옵션이 없다 — 409 로 막히면 이유를 사용자에게 설명하고 웹의 온톨로지 편집 화면에서 처리하도록 안내한다. 이미 발행 취소된 에셋이면 아무것도 하지 않는다(was_published=false). 먼저 조회 tool 로 대상을 읽고 그 updated_at 을 expected_updated_at 으로 넘긴다. 409 면 그 사이 다른 사람이 바꾼 것이다 — 다시 읽어 바뀐 내용을 사용자에게 보여 주고 확인받은 뒤 다시 시도한다. 커스텀 에셋·파이프라인은 같은 소유자의 모든 프로젝트가 공유하며, 발행하면 그 프로젝트들 대시보드에도 반영된다.

Examples:

  • Q: 주문 보강 에셋 발행 취소해줘 params: {'path': {'asset_id': 12}, 'query': {'expected_updated_at': '2026-10-13T10:00:00'}}

Output shape: object: {asset_id, was_published, unpublished_pipeline_ids[]}

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_updated_at": "<expected_updated_at>"
    },
    "name": "unpublish_custom_asset"
  }
}

Input Schema

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

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

Goes well beyond the annotations: it discloses that only mart refresh stops (deployment version, pipeline definition and existing tables remain; charts freeze at last value), that re-publishing restores, the exact 409 conditions (dependent pipelines keyed on source_asset_id, real-time assets), that there is no force option and what to tell the user, and idempotent no-op behaviour with was_published=false. It also explains shared ownership across projects. This is exactly the mutation context destructiveHint=true alone cannot convey.

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?

Clear labelled sections (When to use / When NOT to use / Limitations / Examples / Output shape) make it skimmable, and the usage guidance is front-loaded. It is somewhat long and repeats the 409 concurrency handling twice, which is the only real waste.

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 destructive mutation with side effects and error paths, the description covers consequences, failure modes, recovery steps and the output shape (also backed by a real output schema). The remaining gap is the undocumented project-id parameter, which leaves one input's effect on behaviour unclear.

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 33%, and only expected_updated_at is documented in the schema (which the description then reinforces with the read-first workflow and the 409 re-read/confirm cycle). Asset_id appears only implicitly through the example, and the hyphenated 'project-id' parameter is never explained anywhere, so the description does not fully compensate for the coverage gap.

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 ('Unpublish Asset') and immediately bounds it: it stops mart refresh, is not a rollback (rollback_custom_asset), and is not a delete (unsupported, done in the web ontology editor). An agent can distinguish it from every nearby sibling without opening a 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?

Has explicit 'When to use' and 'When NOT to use' sections, including the requirement to obtain user confirmation first, the prohibition on calling it for unrelated analysis work, and a named alternative (rollback_custom_asset) for the revert case. Nothing about tool selection 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