Skip to main content
Glama

complete_artifact_multipart

DestructiveIdempotent

Finish a multipart artifact upload by joining its parts, content-addressing the result with SHA-256, and registering it in the workspace; refusal occurs if storage or media quotas are exceeded.

Instructions

Finish a multipart upload: join the parts, content-address the result by SHA-256 and register it as an artifact in your workspace. Returns the artifact (id, sha256, size_bytes, mime_type, kind, uploaded_by, created_at) and appends an ArtifactUpserted event; read it back with get_artifact_metadata or get_artifact. Refused, with nothing stored, when the workspace is over its stored-bytes allowance or the result would exceed its media quota. Needs the S3 artifact backend and artifact:upload; the parts come from upload_artifact_multipart_part.

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>",
      "parts": "<parts>",
      "kind": "<kind>"
    },
    "name": "complete_artifact_multipart"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesArtifact category recorded on the artifact: screenshot, recording, transcript, code_dump or attachment.
partsYesEvery uploaded part as {part_number, etag}, using the etag that upload_artifact_multipart_part returned for it. At least one part is required, part numbers must be unique, and no etag may be empty.
mime_typeNoOptional MIME type to record on the artifact, for example image/png. Stored as given.
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. Changed5 schema fields changedv479.0.2
    • addedInput schema / properties / kind / description
      Added value: +"Artifact category recorded on the artifact: screenshot, recording, transcript, code_dump or attachment."
    • addedInput schema / properties / mime_type / description
      Added value: +"Optional MIME type to record on the artifact, for example image/png. Stored as given."
    • 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 / parts / description
      Added value: +"Every uploaded part as {part_number, etag}, using the etag that upload_artifact_multipart_part returned for it. At least one part is required, part numbers must be unique, and no etag may be empty."
    • addedInput schema / properties / upload_id / description
      Added value: +"The upload_id returned by begin_artifact_multipart."
  2. First observedv479.0.0

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 by disclosing the SHA-256 content-addressing step, the ArtifactUpserted event side effect, and the exact refusal conditions (workspace stored-bytes allowance, media quota, nothing stored on refusal). It also names the required backend and the artifact:upload scope, which the annotations cannot express. The write/destructive annotation profile is consistent with finalizing an upload.

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 sentences, front-loaded with the action, then effects, then failure/auth conditions. Every clause carries distinct information with no filler, and the parenthetical return-field list substitutes for a missing output schema.

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?

There is no output schema, and the description compensates by enumerating returned fields. It also covers prerequisites, side effects, failure modes, and the surrounding sibling workflow, which is everything an agent needs to invoke it correctly.

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 already explains upload_id provenance, the object_key workspace restriction, the unique part_number/etag rules, and kind/mime_type semantics. The description only repeats that parts come from upload_artifact_multipart_part, adding no new syntax or format detail, so the baseline 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 chain and resource: finish a multipart upload, join parts, content-address by SHA-256, register as artifact. It is clearly distinguished from begin_artifact_multipart and upload_artifact_multipart_part by naming the former's outputs as its inputs and the latter as its part source.

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?

Explicitly says the parts come from upload_artifact_multipart_part and that the result should be read back with get_artifact_metadata or get_artifact, which routes the agent correctly across the sibling chain. It does not contrast with the single-shot upload_artifact alternative, so the when-not-to-use case is left implicit.

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