Skip to main content
Glama

attachment_chunk

Appends a base64-encoded chunk to an in-progress file upload, verifying the offset matches bytes already received to prevent misordered or corrupted data.

Instructions

Append one base64 slice of an in-progress upload. offset must equal the number of bytes already received; the server refuses a mismatch rather than guessing.

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": {
      "uploadId": "<uploadId>",
      "offset": "<offset>",
      "data": "<data>"
    },
    "name": "attachment_chunk"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesBase64-encoded bytes.
offsetYes
uploadIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one meaningful behavior: strict server-side offset validation ('refuses a mismatch rather than guessing'). It omits chunk size limits, whether retries are idempotent, what happens after the last chunk, and how failures are surfaced.

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?

Two front-loaded sentences with no filler, and the validation constraint is stated crisply. Sizing is appropriate for a simple three-parameter append operation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Adequate for a small chunk-append tool with no output schema, but it never says what success returns (accepted byte count, next offset) or how completion relates to attachment_commit, leaving the sequencing contract partly implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33% (only 'data' is documented), so the description must compensate. It adds real meaning for 'offset' ('must equal the number of bytes already received'), but 'uploadId' remains undefined in both schema and description.

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?

States a concrete verb and resource: 'Append one base64 slice of an in-progress upload.' The phrase 'in-progress upload' implicitly places it in the begin/commit sequence, letting an agent distinguish it from attachment_begin and attachment_commit without extra reading, though no sibling is named.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by 'in-progress upload' plus the offset rule, telling the caller this is a sequential chunking step. There is no explicit statement of when to call it versus attachment_begin/attachment_commit, nor of ordering or termination conditions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.