Skip to main content
Glama

Create bundle upload

create_bundle_upload

To update a site with photos without resending its unchanged files, pass site_id and manifest: the answer lists the files it lacks. Otherwise, start a bundle upload for bytes that html or files cannot carry: a site with images, fonts or other binaries (a built React site), or a single binary file (a PDF, a .docx, .pptx or .xlsx, an image, a video, an audio), sent as it is under its filename, given here once. Text goes as html or files, with no upload. Returns an upload_id to send the bytes against, then publish_site or update_site with that upload_id instead of html/files/zipBase64. Sending the bytes needs a shell that makes the SnapHost tool calls itself. A shell here is a coding agent in a terminal (Claude Code, Cursor, Codex CLI); a chat app's code sandbox does not count, since its output would have to be retyped into the call. Without a shell, do not open an upload and do not build base64. Ask the person to drop the file (downloaded from the chat if it lives there; a .zip of the built folder with index.html at its root for an app) on the dashboard, after switching the dashboard to the workspace you name: the drive (https://app.snaphost.ai/) for a new site, or the site's own page (https://app.snaphost.ai/sites/<site_id>, "Upload a new version") to keep an existing link; the site_id comes from list_sites or the publish result. Then list_sites shows it (a new site is the newest, named after the file) and every sharing tool applies. With a shell, two ways to send it. Send it with upload_bundle_part, one numbered part per call: a tool call on this connection, so it works even with no network of its own. Or PUT the .zip to upload_url (HTTP PUT, Content-Type application/zip; above max_part_bytes, to upload_url/parts/0, /parts/1, ... in order), which is fewer, larger requests when your shell can reach that host; storage_url is the same PUT straight to the storage host, one request, up to the bundle cap. Tool calls and your shell do not share a network: a PUT that is refused (a 403 naming the host, or a connection that never leaves) says nothing about upload_bundle_part, so switch to it without asking the owner to change network settings. The upload is single-use and expires 15 minutes after it opens. It belongs to the workspace this call acts in: pass the same workspace_id to every upload_bundle_part and to the publish.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_bundle_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idNoWith `manifest`: the site this upload will update. Only update_site for this site can use the upload; a new site is published from a zip, `files` or `html`.
filenameNoThe single file's own name with its extension (`report.pdf`, `talk.mp4`), when the upload is one non-zip file rather than a .zip. The upload then remembers it: the parts and the publish need not repeat it. Omit for a .zip.
manifestNoTo update an existing site (a website with photos) without sending the files it already holds, with `site_id`: one entry for EVERY file the new version should hold, changed or not (a file left out is removed), with `path` relative to the site root with forward slashes (`index.html`, `img/hero.jpg`), `sha256` of its bytes as 64 lowercase hex digits (`shasum -a 256 <file>`) and `size` in bytes (`wc -c < <file>`). The answer lists the files the site lacks; send only those with upload_blob (or PUT to `blob_upload_url`), then update_site with the `upload_id`. Needs a shell that hashes and encodes the files; without one, send changed text with `changes` on update_site. Omit for a .zip or a single file.
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 / manifest
      Added value: +{
      +  "description": "To update an existing site (a website with photos) without sending the files it already holds, with `site_id`: one entry for EVERY file the new version should hold, changed or not (a file left out is removed), with `path` relative to the site root with forward slashes (`index.html`, `img/hero.jpg`), `sha256` of its bytes as 64 lowercase hex digits (`shasum -a 256 <file>`) and `size` in bytes (`wc -c < <file>`). The answer lists the files the site lacks; send only those with upload_blob (or PUT to `blob_upload_url`), then update_site with the `upload_id`. Needs a shell that hashes and encodes the files; without one, send changed text with `changes` on update_site. Omit for a .zip or a single file.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "path": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "sha256": {
      +        "maxLength": 64,
      +        "minLength": 64,
      +        "type": "string"
      +      },
      +      "size": {
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "path",
      +      "sha256",
      +      "size"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / site_id
      Added value: +{
      +  "description": "With `manifest`: the site this upload will update. Only update_site for this site can use the upload; a new site is published from a zip, `files` or `html`.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / filename
      Added value: +{
      +  "description": "The single file's own name with its extension (`report.pdf`, `talk.mp4`), when the upload is one non-zip file rather than a .zip. The upload then remembers it: the parts and the publish need not repeat it. Omit for a .zip.",
      +  "type": "string"
      +}
  3. 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)."
  4. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly=false, destructive=false, idempotent=false), disclosing the traits that actually matter here: the upload is single-use, expires 15 minutes after it opens, is bound to the workspace the call acts in (same `workspace_id` must be reused), and the upload is scoped to one target site. It also explains network topology (tool calls and the shell do not share a network) and how a 403/blocked PUT should be interpreted, which no annotation conveys.

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

Conciseness3/5

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

Front-loading is poor — the first sentence is the secondary manifest path, not the tool's purpose, and the no-shell fallback paragraph (chat sandbox, dashboard URLs, retyping) is long and sits in the middle. Individual clauses are information-dense and mostly earn their place (expiry, workspace binding, 403 fallback), but the whole runs several hundred words without structure, making the branch logic (manifest / shell-PUT / tool-call parts / no-shell) hard to scan.

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?

For a multi-step, stateful upload tool with no output schema, the description covers everything an agent needs: how to open the upload, the three ways to send bytes, the 15-minute single-use window, the workspace binding, the publish hand-off, and the non-shell escape hatch. Little material is left for the agent to infer.

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, but the description adds genuine cross-parameter meaning: `site_id` + `manifest` pairs with a diff answer followed by `upload_blob`, `filename` is remembered so parts and publish need not repeat it, and `workspace_id` must be passed identically to every `upload_bundle_part` and the publish. That workflow coupling is not derivable from the schema alone.

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 does name the specific operation ('start a bundle upload for bytes that `html` or `files` cannot carry') and enumerates the eligible payloads (images, fonts, PDF/.docx/.pptx/.xlsx, video, audio) plus the .zip case, which distinguishes it from `upload_blob`, `publish_site` and `update_site`. It loses a point because the first sentence actually describes a different, manifest-based update path, so the primary purpose is only stated second and the tool reads as two operations sharing a name.

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?

Explicit when-to-use (binaries that text fields cannot carry; .zip of a built site), when-to-use-an-alternative (`manifest` + `site_id` to avoid resending unchanged files; `html`/`files` for text; `upload_bundle_part` or PUT vs `storage_url`), and when-NOT-to-use (no shell: do not open an upload, do not build base64 — route the person to the dashboard instead). It also tells the agent what to do after the call (publish_site/update_site with `upload_id`).

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.