Skip to main content
Glama

Upload blob

upload_blob
Idempotent

Send one file the site lacks into an upload opened by create_bundle_upload with a manifest, named by its sha256, its bytes base64-encoded in this call. Send only the hashes that create_bundle_upload listed as missing. Its bytes travel inside the call, so it suits small files: a photo goes faster as a PUT from your shell to blob_upload_url, and this tool is for when that PUT is refused. A file of at most 1 MB goes whole and is checked at once: refused, with nothing stored, unless its bytes match its sha256 and size. A larger one goes as numbered parts 0, 1, 2, ... of at most 1 MB, with no gaps, joined and checked only when update_site is called; re-sending an index replaces it. It needs a shell that makes the SnapHost tool calls itself. Pass the same workspace_id as create_bundle_upload did.

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>",
      "sha256": "<sha256>",
      "dataBase64": "<dataBase64>"
    },
    "name": "upload_blob"
  }
}

Input Schema

NameRequiredDescriptionDefault
partNoFor a file sent in parts: the 0-based index of this part. Omit for a whole file.
sha256YesThe SHA-256 of the whole file, as create_bundle_upload listed it
upload_idYesThe `upload_id` from create_bundle_upload with a manifest
dataBase64YesThe file, or this part of it, base64-encoded. 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. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations (readOnly=false, idempotent=true, destructive=false) by disclosing validation timing and failure consequences: files up to 1 MB are checked at once and 'refused, with nothing stored, unless its bytes match its sha256 and size', while larger files are assembled across numbered parts and only joined/checked at update_site. It also explains that re-sending an index replaces it and that a host shell capable of making the tool calls is required.

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-loads the core action, then the small-vs-large file branch, then prerequisites. It is dense and comma-spliced in places ('named by its `sha256`, its bytes base64-encoded in this call'), which costs some readability, but no sentence is filler.

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 write tool with no output schema, it covers validation behavior, partial-upload semantics, cross-call sequencing, and authentication/workspace requirements. An agent has everything needed to call it correctly and to know when a failure leaves nothing stored.

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 3 is the baseline, but the description adds cross-field constraints the schema cannot express: `part` indices must be 0,1,2,... with no gaps, `sha256` must be one of the hashes create_bundle_upload listed, and `workspace_id` must match the earlier call. It stops short of adding format detail beyond that, so it lands just above baseline.

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 and resource ('Send one file the site lacks into an upload opened by create_bundle_upload') and pins the identity/keying mechanism to sha256 with base64 bytes. It is unmistakably distinct from create_bundle_upload, which opens the upload, and from upload_bundle_part-style alternatives.

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 include/exclude rules: 'Send only the hashes that create_bundle_upload listed as missing', and prefers a shell PUT to `blob_upload_url` for photos, reserving this tool 'for when that PUT is refused'. It also states the workspace_id must match the one used at create time.

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.