Skip to main content
Glama

upload_artifact_multipart_part

DestructiveIdempotent

Uploads one part of a multipart artifact and returns its part number and etag, enabling ordered assembly of large artifacts from multiple chunks.

Instructions

Upload one part of a multipart artifact upload begun with begin_artifact_multipart, and return {part_number, etag}. Keep the etag of every part and pass them all to complete_artifact_multipart; discard the upload with abort_artifact_multipart. Refused for an empty part, invalid base64, a part_number outside 1 to 10000, an upload that belongs to another workspace, or a workspace that is over its stored-bytes allowance. Needs the S3 artifact backend and artifact:upload; for content that fits in one call use upload_artifact.

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>",
      "part_number": "<part_number>",
      "content_base64": "<content_base64>"
    },
    "name": "upload_artifact_multipart_part"
  }
}

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.
part_numberYesPosition of this part in the final object, 1 to 10000. Parts are joined in part_number order at completion.
content_base64YesBytes of this part, base64-encoded with the standard alphabet. Must not be empty.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv479.0.2
    • addedInput schema / properties / content_base64 / description
      Added value: +"Bytes of this part, base64-encoded with the standard alphabet. Must not be empty."
    • 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 / part_number / description
      Added value: +"Position of this part in the final object, 1 to 10000. Parts are joined in part_number order at completion."
    • addedInput schema / properties / upload_id / description
      Added value: +"The upload_id returned by begin_artifact_multipart."
  2. First observedv479.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint, idempotentHint), it discloses concrete refusal conditions — empty part, invalid base64, part_number outside 1-10000, cross-workspace upload, and exceeding the stored-bytes allowance — plus prerequisites (S3 artifact backend, artifact:upload scope). This is exactly the operational context annotations cannot express.

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 purpose and return value, then lifecycle, then failure modes and prerequisites — a sensible priority order with no filler. It runs long as a single paragraph of semicolon-linked clauses, which slightly hurts scanability.

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?

Despite no output schema, the description states the return value, all preconditions, every documented rejection case, and how this step fits the multi-call workflow. Nothing an agent needs to invoke it correctly at a given lifecycle stage 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 100%, so the baseline is 3; the description still adds cross-parameter meaning by explaining that etags must be retained and handed to the completion call, and that the part_number domain is enforced server-side. It does not restate encoding details already in the schema, which is appropriate.

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?

Names a specific verb and resource ('Upload one part of a multipart artifact upload') and immediately ties it to the begin/complete/abort lifecycle, so it is unmistakable against siblings like upload_artifact or complete_artifact_multipart. It also states the return shape {part_number, etag}.

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?

Explicitly routes the agent: use upload_artifact when the content fits in one call, keep every etag for complete_artifact_multipart, and use abort_artifact_multipart to discard. That is when-to-use, when-not-to-use, and the alternative named in three clauses.

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