Skip to main content
Glama

Restore earlier custom asset version

rollback_custom_asset
Destructive

Rollback Asset

When to use: 사용자가 에셋을 이전 배포 버전으로 복원해 달라고 명시적으로 요청할 때 — 확인받은 뒤에만 실행한다.

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

Limitations: 고른 버전으로 실행 버전을 바꾸고, 하위 파이프라인의 초안(소스·스텝)도 그 버전으로 덮어쓴다 — 아직 배포하지 않은 초안 수정은 사라진다. 복원할 버전 id 는 list_custom_asset_versions 로 고른다. 먼저 get_custom_asset 으로 읽어 그 updated_at 을 expected_updated_at, draft_revision 을 expected_revision 으로 넘긴다. 409 응답의 current_revision 을 그대로 다시 보내 덮어쓰지 말고, 다시 읽어 바뀐 내용을 사용자에게 확인받은 뒤 다시 시도한다. 그 버전에 없는 매칭에 규칙·수동 매칭이 딸려 있으면 함께 지워지게 되므로 409 다. 이 tool 에는 강제 진행 옵션이 없다 — 409 로 막히면 이유를 사용자에게 설명하고 웹의 온톨로지 편집 화면에서 처리하도록 안내한다. 최대 30분 주기의 스냅샷 업로드 뒤 마트 빌드가 끝나야 대시보드 수치가 바뀐다. 커스텀 에셋·파이프라인은 같은 소유자의 모든 프로젝트가 공유하며, 발행하면 그 프로젝트들 대시보드에도 반영된다.

Examples:

  • Q: 주문 보강 에셋을 지난 배포 버전으로 복원해줘 params: {'path': {'asset_id': 12, 'version_id': 7}, 'query': {'expected_updated_at': '2026-10-13T10:00:00', 'expected_revision': '…'}}

Output shape: object: {status, asset_id, version_id}

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>",
      "version_id": "<version_id>",
      "expected_updated_at": "<expected_updated_at>",
      "expected_revision": "<expected_revision>"
    },
    "name": "rollback_custom_asset"
  }
}

Input Schema

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

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

Annotations already mark it as destructive, and the description adds value well beyond them: it discloses that undeployed draft edits are lost, that rules/manual matches absent from the target version are deleted (the cause of 409), that there is no force option, that a 409 must be re-read rather than retried blindly, and that dashboard numbers change only after the snapshot upload (up to 30 min) and mart build. It also notes the asset is shared across all projects of the same owner, which is a non-obvious blast radius.

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 structure is purposeful — a one-line purpose followed by When to use / When NOT to use / Limitations / Examples — so the agent can scan to what it needs. It is dense and on the long side, with a few clauses (snapshot timing, cross-project sharing) that are useful but could be trimmed without losing callable information.

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, conflict-prone mutation with five parameters and an output schema, the description covers the risk, the concurrency protocol, the failure mode, and the escalation path. Return values are covered by the output schema, so nothing an agent needs before calling is missing.

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 coverage is only 40%, but the description compensates for the two tokens that matter: it says version_id is picked via list_custom_asset_versions, expected_updated_at comes from get_custom_asset's updated_at, and expected_revision from its draft_revision. asset_id and project-id are left to the schema, and there is no explicit statement about omitting the concurrency tokens beyond what the schema already says.

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 states a concrete verb+resource (restore an asset to an earlier deployed version) and goes further, spelling out that it swaps the run version and overwrites downstream pipeline drafts. It explicitly separates itself from unpublish_custom_asset and points at list_custom_asset_versions/get_custom_asset as prerequisites, so an agent can place it among its siblings without opening their 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?

There is an explicit 'When to use' (only after the user explicitly asks and confirms) and a 'When NOT to use' that rules out analytical/exploratory calls and names unpublish_custom_asset as the right tool for merely stopping refreshes. The confirmation prerequisite and the 409 fallback path to the web ontology editor give the agent a complete decision procedure.

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