Skip to main content
Glama

Move or delete artifacts in bulk

artifact_bulk
DestructiveIdempotent

Apply move or delete independently to at most 200 artifacts (ids: their ids, aliases or page URLs). move needs its destination: folder (an id, or a slug in the artifacts' workspace, else in team, else your personal folders), or folder: null to unfile them. delete moves each to the trash for 30 days and returns their dates; it takes no folder or team. Workspace items need why; a revision entry per item is optional and refuses (CONFLICT) that item if it changed since. Returns how many succeeded and, per failed item, its id and the refusal code its own call answers; nothing is retried.

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": {
      "action": "<action>",
      "ids": "<ids>"
    },
    "name": "artifact_bulk"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesThe artifacts: at most 200, each named once.
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.
teamNomove with a folder slug: the team the folder belongs to.
actionYes
folderNomove only, and required: the destination folder (an id, or a slug in the artifacts' workspace, else in team, else your personal folders), or null to unfile them.
expectedWorkspaceRevisionsNoOptional, per artifact (keyed as named in ids): refuse (CONFLICT) that item if it changed since.

Output Schema

NameRequiredDescriptionDefault
failedYes
deletedNo
succeededYes

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. Changed7 schema fields changed
    • removedInput schema / properties / artifactIds
      Removed value: -{
      -  "description": "At most 200 artifacts, each named once.",
      -  "items": {
      -    "description": "The artifact: its id, its alias (bare, ~agent/alias or _team/alias), or its page URL.",
      -    "maxLength": 300,
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  "maxItems": 200,
      -  "minItems": 1,
      -  "type": "array"
      -}
    • changedInput schema / properties / expectedWorkspaceRevisions / description
      Previous value: -"Optional, per artifact (keyed as named in artifactIds): refuse (CONFLICT) that item if it changed since."New value: +"Optional, per artifact (keyed as named in ids): refuse (CONFLICT) that item if it changed since."
    • addedInput schema / properties / ids
      Added value: +{
      +  "description": "The artifacts: at most 200, each named once.",
      +  "items": {
      +    "description": "The artifact: its id, its alias (bare, ~agent/alias or _team/alias), or its page URL.",
      +    "maxLength": 300,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 200,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "action",
      -  "artifactIds"
      -]New value: +[
      +  "action",
      +  "ids"
      +]
    • addedOutput schema / properties / failed / items / properties / id
      Added value: +{
      +  "maxLength": 300,
      +  "type": "string"
      +}
    • removedOutput schema / properties / failed / items / properties / publicId
      Removed value: -{
      -  "maxLength": 300,
      -  "type": "string"
      -}
    • changedOutput schema / properties / failed / items / required
      Previous value: -[
      -  "publicId",
      -  "error"
      -]New value: +[
      +  "id",
      +  "error"
      +]
  3. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the destructiveHint/idempotentHint annotations, it discloses the 30-day trash retention and returned dates for delete, the why-requirement for workspace items, the per-item CONFLICT refusal from expectedWorkspaceRevisions, and explicitly that 'nothing is retried' — a critical expectation-setting detail for a destructive batch.

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 leading clause front-loads scope and the following sentences are ordered by action, so little is wasted. The prose is telegraphic ('move needs its destination: folder (an id, or a slug ...)') and the nested parenthetical chains take a second read, but no sentence is filler.

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 6-parameter, nested-object, destructive batch tool the description covers the operational essentials, and the output schema plus annotations carry the return shape and safety profile. An agent is still left guessing about partial-failure retry strategy and whether trash restoration is possible later, both of which matter for a destructive call.

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 83%, so the baseline is 3; the description earns one more by encoding cross-parameter rules the schema cannot express, namely that folder is move-only and mandatory for move, that team applies only to folder slugs, and that delete consumes neither folder nor team.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb pair and resource ('Apply move or delete ... to at most 200 artifacts'), and 'independently' plus the 200-item cap make the batch scope unmistakable. It does not name artifact_move / artifact_delete as the single-item counterparts, so the agent must infer the routing from the sibling names alone, which keeps it just short of a 5.

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?

It gives clear per-action conditions: move requires a destination folder or null to unfile, while 'delete ... takes no folder or team', which prevents the most likely mis-call. It stops short of stating when to prefer this over the single-item move/delete tools or when a per-item approach would be safer.

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.