Skip to main content
Glama

abort_artifact_multipart

DestructiveIdempotent

Cancel a multipart artifact upload and delete its temporary parts when a part upload fails or the object is no longer wanted, so nothing is registered as an artifact.

Instructions

Abort a multipart upload begun with begin_artifact_multipart and delete its temporary parts, so nothing is registered as an artifact. Returns {aborted: true}; storage cleanup is best effort, so a storage error is not reported. Use it when a part upload failed or the object is no longer wanted, and use complete_artifact_multipart to finish the upload instead. Needs the S3 artifact backend and artifact:upload, and the upload must belong to your workspace.

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": {
      "upload_id": "<upload_id>",
      "object_key": "<object_key>"
    },
    "name": "abort_artifact_multipart"
  }
}

Input Schema

NameRequiredDescriptionDefault
upload_idYesThe upload_id returned by begin_artifact_multipart.
object_keyYesThe object_key returned by begin_artifact_multipart, of the form multipart/<your-workspace-uuid>/<uuid>. A key that belongs to another workspace is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv479.0.2
    • addedInput schema / properties / object_key / description
      Added value: +"The object_key returned by begin_artifact_multipart, of the form multipart/<your-workspace-uuid>/<uuid>. A key that belongs to another workspace is refused."
    • addedInput schema / properties / upload_id / description
      Added value: +"The upload_id returned by begin_artifact_multipart."
  2. First observedv479.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the supplied annotations by disclosing the return payload ({aborted: true}), the best-effort cleanup semantics where storage errors are swallowed, the required S3 artifact backend, the artifact:upload scope, and the workspace ownership constraint. These are exactly the preconditions and caveats an agent needs before invoking a destructive operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three compact sentences ordered as action/effect, failure semantics, then routing guidance and prerequisites. No filler; every clause carries operative 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?

With no output schema, the description supplies the return value, the silent-failure caveat, authorization and backend prerequisites, and the alternative tool. Nothing material an agent needs to call this correctly is missing.

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 100% and the schema descriptions already state that upload_id comes from begin_artifact_multipart and that object_key follows the multipart/<workspace-uuid>/<uuid> form with cross-workspace keys refused. The description only repeats the workspace ownership constraint, adding little beyond the schema, so the baseline of 3 applies.

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 (abort) and resource (multipart upload), names the sibling that created the state (begin_artifact_multipart), and states the end result: nothing is registered as an artifact. An agent can distinguish this from complete_artifact_multipart without opening either 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?

Gives explicit triggering conditions ('when a part upload failed or the object is no longer wanted') and names the alternative path ('use complete_artifact_multipart to finish the upload instead'). Both when-to-use and when-not-to-use are covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools