Skip to main content
Glama

Upload bundle part

upload_bundle_part
Idempotent

Send one numbered slice of a .zip, or of a single non-zip file, into an upload opened by create_bundle_upload, encoded as base64 in this call. This is the route that needs no network beyond the one carrying this tool call, so it works even where the shell's own network is blocked, for a bundle with binaries or a lone PDF, Word, PowerPoint, Excel, image, video or audio file; it needs a shell that makes the SnapHost tool calls itself, and text never comes this way (html or files carry it with no upload). Split the file into slices of at most 1 MB, base64 each slice on its own, and send them as part 0, 1, 2, ... with no gaps; part 0 must be the opening bytes of the archive unless filename names a single non-zip file. Nothing is published until publish_site or update_site is called with the upload_id, which joins the parts in index order and verifies the bytes, so a rejected or damaged part costs only that part: send that index again, the others still stand. Re-sending an index replaces it. Pass the same workspace_id as create_bundle_upload did.

Input Schema

NameRequiredDescriptionDefault
partYes0-based index of this slice in the .zip, sent in order and with no gaps
filenameNoThe single file's own name (`report.pdf`), when the upload is one non-zip file rather than a .zip; part 0 is then not expected to begin an archive. Pass the same name to publish_site / update_site.
upload_idYesThe `upload_id` from create_bundle_upload
partBase64YesThis slice of the file, base64-encoded. It is a slice, not a file of its own, and every slice but the first is meaningless alone. Read it from the encoded file verbatim rather than reproducing it from memory.
workspace_idNoOptional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / filename
      Added value: +{
      +  "description": "The single file's own name (`report.pdf`), when the upload is one non-zip file rather than a .zip; part 0 is then not expected to begin an archive. Pass the same name to publish_site / update_site.",
      +  "type": "string"
      +}
    • changedInput schema / properties / partBase64 / description
      Previous value: -"This slice of the .zip, base64-encoded. It is a slice of the archive, not an archive of its own, and every slice but the first is meaningless alone. Read it from the encoded file verbatim rather than reproducing it from memory."New value: +"This slice of the file, base64-encoded. It is a slice, not a file of its own, and every slice but the first is meaningless alone. Read it from the encoded file verbatim rather than reproducing it from memory."
  2. Changed1 schema field changed
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Optional: the workspace (the personal space or a Pro workspace) to act in, from list_workspaces. Omit to act in the token owner's own account."New value: +"Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for)."
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations it discloses the concrete ordering contract (parts 0, 1, 2 with no gaps, part 0 must be the archive's opening bytes), the atomicity/verification behavior at publish time ('joins the parts in index order and verifies the bytes'), and the partial-failure recovery model ('a rejected or damaged part costs only that part'). 'Re-sending an index replaces it' makes idempotentHint concrete, and no statement conflicts with the annotations. Only minor gaps remain (total size limits, upload expiry).

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 opening clause is front-loaded with the core action and the pipeline context, and no sentence is filler. It sags slightly in the long 'PDF, Word, PowerPoint, Excel, image, video or audio file' enumeration and the dense semicolon-chained clauses, which could be trimmed into a short procedural list without losing meaning.

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 complex, stateful, multi-call upload tool with no output schema, the description covers the sequencing, chunking, retry, and finalization contract that an agent actually needs. The one material omission is what a successful call returns (an acceptance/offset confirmation), since nothing else describes the response shape.

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, and the description earns an upgrade with facts the schema does not contain: slice size ('at most 1 MB'), the per-slice base64 encoding rule, the part-0 archive-signature constraint, and the requirement to reuse the same filename and workspace_id downstream. Some of the rest (gap-free indexing, filename's meaning) duplicates the schema text, which keeps it off a 5.

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?

The description gives a precise verb+resource+scope: 'Send one numbered slice of a .zip, or of a single non-zip file, into an upload opened by create_bundle_upload.' It also situates itself against siblings by naming create_bundle_upload as the opener and publish_site / update_site as the finalizers, so an agent can place it in the pipeline without opening any 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?

It states the selecting condition explicitly — this is the route that works 'even where the shell's own network is blocked' — and names the alternative for the other case ('text never comes this way (`html` or `files` carry it with no upload)'). It also states the pre/post conditions: must follow create_bundle_upload, and nothing is published until publish_site or update_site is called.

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.