Skip to main content
Glama

Delete artifact version

artifact_version_delete
DestructiveIdempotent

Delete one version by its own id (id; the version names its artifact), except the artifact's last remaining version. Standalone: the owner. Workspace artifacts: anyone in the workspace but a viewer, with why; expectedWorkspaceRevision is optional and refuses (CONFLICT) if the artifact changed since. A version a task's review round uses (its draft, or an approver's edit) is kept while that task exists: VERSION_IN_USE with details.task and details.round. A version you cannot read is NOT_FOUND.

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": {
      "id": "<id>"
    },
    "name": "artifact_version_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe version to delete, by its own id (it names its artifact).
whyNoRequired for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters.
expectedWorkspaceRevisionNoOptional: refuse (CONFLICT) if the artifact changed since this workspaceRevision.

Output Schema

NameRequiredDescriptionDefault
deletedYes
versionIdYes
artifactIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / why / description
      Previous value: -"Required for workspace items: one sentence on what the person is trying to accomplish, in their terms, not a description of this edit. Every workspace write takes one; sessions and summaries record themselves from it. At most 300 characters."New value: +"Required for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters."
  2. Changed3 schema fields changed
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "The version to delete, by its own id (it names its artifact).",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • removedInput schema / properties / versionId
      Removed value: -{
      -  "description": "The version to delete, by its own id (it names its artifact).",
      -  "format": "uuid",
      -  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "versionId"
      -]New value: +[
      +  "id"
      +]
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (destructiveHint/idempotentHint) by disclosing authorization rules, the required justification sentence for workspace items, optimistic-concurrency behavior (CONFLICT on expectedWorkspaceRevision), retention rules with error code VERSION_IN_USE plus details.task/details.round, and NOT_FOUND masking for unreadable versions. This is exactly the failure-mode context an agent needs before a destructive call.

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?

Front-loaded with the core action and its main constraint, then permissions, then error semantics. Dense and largely waste-free, though the telegraphic fragments ('Standalone: the owner.') read a bit cryptically for a first-time reader.

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?

An output schema exists so return shape needn't be described, and the description nonetheless covers the salient error outcomes and permission prerequisites. For a destructive single-object mutation with three parameters, nothing an agent needs to invoke it safely 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 already 100%, so the schema carries most of the weight, but the description still clarifies that 'id' is the version id rather than the artifact id, and restates why/expectedWorkspaceRevision in operational terms (refusal on concurrent change). Marginal but real added meaning.

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 ('Delete one version by its own id') and immediately disambiguates scope from artifact-level deletion by noting the version names its artifact. An agent can distinguish this from artifact_delete and artifact_versions_prune 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when-not conditions: the last remaining version cannot be deleted, and a version in use by a task's review round is kept while the task exists. Permission context (owner for standalone, non-viewer workspace members) is stated. It does not name an alternative tool for bulk cleanup, but the exclusions are explicit enough to route correctly.

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.