Skip to main content
Glama

Finish uploads

finish_uploads

Batch form of finish_upload: turn bytes already sent to storage into assets, all on the same folder. Include only the items whose byte transfers actually succeeded. IMPORTANT — this call is NOT atomic: it creates the assets one at a time and does not roll back, so a failure partway through leaves the earlier ones created while the call reports an error. Never retry it after a failure; see the recovery steps in the error itself.

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": {
      "batch_id": "<batch_id>",
      "assets": "<assets>"
    },
    "name": "finish_uploads"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetsYesCompleted uploads (1-50)
batch_idYesThe batch_id create_upload_urls returned. Required: it is the only thing that releases the quota Playbook reserved for this batch, and an unreleased reservation counts against the workspace's asset and storage limits.
organizationNoWorkspace slug, as returned by list_organizations. Omit it when the account has a single workspace — it is then resolved from your token. Pass it only when the account has several, or when you mean a workspace other than the obvious one.
collection_tokenNoDestination folder token, applied to every asset in the batch. If omitted or unknown, Playbook silently routes to a default anonymous folder — call get_folder first to validate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / collection_token / description
      Previous value: -"Destination board token, applied to every asset in the batch. If omitted or unknown, Playbook silently routes to a default anonymous board — call get_board first to validate."New value: +"Destination folder token, applied to every asset in the batch. If omitted or unknown, Playbook silently routes to a default anonymous folder — call get_folder first to validate."
  2. Changed6 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / assets / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / assets / items / properties / ai_agent_payload / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / assets / items / properties / height / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / assets / items / properties / size / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / assets / items / properties / width / maximum
      Added value: +9007199254740991
  3. Changed2 schema fields changed
    • changedInput schema / properties / assets / description
      Previous value: -"Completed uploads (1-100)"New value: +"Completed uploads (1-50)"
    • changedInput schema / properties / assets / maxItems
      Previous value: -100New value: +50
  4. Changed4 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / assets / items / properties / ai_agent_payload / description
      Previous value: -"Your own scratch space on this asset — prompt, model, seed, source job id, anything you need to recognise it in a later session. Playbook never interprets it. Max 4096 BYTES of serialised JSON; anything larger is REJECTED, never truncated. A write REPLACES the whole object. Readable per asset (get_asset, or list/search with get_ai_payload=true) but NOT searchable or filterable."New value: +"Free-form JSON metadata stored with the asset — for example generation settings such as model and seed, or a source job id. Playbook never interprets it. Max 4096 BYTES of serialised JSON; anything larger is REJECTED, never truncated. A write REPLACES the whole object. Readable per asset (get_asset, or list/search with get_ai_payload=true) but NOT searchable or filterable."
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): \"Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization.\"",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "batch_id",
      -  "assets",
      -  "context"
      -]New value: +[
      +  "batch_id",
      +  "assets"
      +]
  5. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, it discloses the critical non-atomic behavior: assets are created one at a time, there is no rollback, and a partial failure leaves earlier assets created while reporting an error. It also correctly warns against retrying, which aligns with and enriches the non-idempotent annotation.

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?

The description is short, front-loaded with the core operation, and uses the remaining space for the most important safety warning. Every sentence earns its place, and the critical non-atomic caveat is clearly highlighted rather than buried.

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 batch-creation tool with no output schema, it covers the most dangerous behavioral trait: partial success without rollback and no retry after failure. It does not describe the successful response shape, such as how created assets or echoed uuid values are returned, which is a minor remaining gap.

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 description coverage is 100%, so the input schema already carries the detailed parameter meaning, including batch_id quota release and collection_token fallback behavior. The description adds little parameter-specific detail beyond reinforcing that all assets go to the same folder and only successful uploads should be listed.

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 specific verb and resource: it turns already-uploaded bytes into assets as the batch form of finish_upload. It clearly distinguishes the batch operation from the singular sibling and states that all assets land in the same folder.

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?

It tells the agent to include only items whose byte transfers succeeded and explicitly warns never to retry after a failure, with recovery steps located in the error itself. The main remaining gap is that it does not explicitly say to use finish_upload instead when handling a single item, though 'batch form' strongly implies that split.

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