Skip to main content
Glama

deployment_image_upload

Adds one chunk of a docker save archive to a deployment that was started with a local build. Chunks go in order: offset must equal what has been received so far, which makes a retry after a dropped connection safe, and the response says how many bytes are held. Finish with deployment_image_finish. The CLI does this for you.

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": {
      "productId": "<productId>",
      "deploymentId": "<deploymentId>",
      "offset": "<offset>",
      "data": "<data>"
    },
    "name": "deployment_image_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesThis chunk, base64-encoded. Keep each chunk to the chunk_bytes the deploy returned.
offsetYesBytes already uploaded. Start at 0.
productIdYesProduct identifier, e.g. prd_7k2m9x4qw1nv8bz3ct6d.
deploymentIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, idempotentHint=false and destructiveHint=false, and the description adds context those do not carry: ordered chunk semantics, retry safety after a dropped connection, and that the response reports bytes held so far. It does not cover auth/permission requirements or failure behavior for an invalid offset, but the sequencing and retry semantics are genuinely new information beyond the hints.

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 tight sentences, front-loaded with the identifying action, then ordering constraint, then completion requirement. Every sentence carries load-bearing information; the CLI remark is a single short clause that doubles as the when-not hint.

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?

There is no output schema, and the description compensates by explaining that the response reports how many bytes are held. Combined with the chunk-ordering rule and the finish dependency, an agent has enough to drive the upload loop correctly. Missing are error semantics on a mismatched offset and whether the deployment must be in a particular state to accept chunks.

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 75%, and the description adds real meaning beyond it: offset is constrained to "what has been received so far" rather than merely "bytes already uploaded," and data chunks are tied to the chunk_bytes value returned by the deploy call. The only parameter left thin is deploymentId, which the schema does not describe and the description only implicitly scopes to a local-build deployment.

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?

"Adds one chunk of a `docker save` archive to a deployment that was started with a local build" gives a specific verb (adds one chunk), a specific resource (deployment image), and a scope qualifier (only for locally built deployments). It is immediately distinguishable from the sibling deployment_image_finish, which the description separately names as the terminating step.

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?

The description states the operating procedure explicitly: chunks go in order, offset must equal bytes received so far, and the operation must be finished with deployment_image_finish. It also signals that manual use is optional ("The CLI does this for you"), which indirectly covers when not to call it. It stops short of stating what happens on an offset mismatch or what conditions make a direct call preferable to the CLI.

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.

Resources