Skip to main content
Glama

Complete a media upload

dub_complete_upload
Idempotent

Call after all bytes have uploaded. For a ChatGPT import, use its assetId as uploadId and its completionKey as idempotencyKey. If preparing is true, wait and retry the same completion with that key. This validates the source without starting translation.

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>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "dub_complete_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
uploadIdYesThe exact resource ID returned by DubSync, including any colon prefix.
idempotencyKeyYesA stable unique key for this operation. Reuse it with the exact same input after a timeout; never generate a new key to retry.

Output Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / uploadId / description
      Added value: +"The exact resource ID returned by DubSync, including any colon prefix."
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / properties / data / additionalProperties
      Added value: +false
    • removedOutput schema / properties / data / description
      Removed value: -"The safe public API response, or resumable-upload status."
    • addedOutput schema / properties / data / properties
      Added value: +{
      +  "assetId": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "completionKey": {
      +    "type": "string"
      +  },
      +  "durationMs": {
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  "preparing": {
      +    "type": "boolean"
      +  },
      +  "uploaded": {
      +    "type": "boolean"
      +  }
      +}
    • addedOutput schema / properties / data / required
      Added value: +[
      +  "assetId"
      +]
    • addedOutput schema / properties / data / type
      Added value: +"object"
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true, destructiveHint=false, and readOnlyHint=false, so the safety profile is largely given. The description does add real behavior beyond that: key-reuse on timeout, waiting on `preparing`, and the fact that completion validates the source without triggering translation. A 3 rather than 4 because it never says what state the resource lands in or whether the upload becomes consumable.

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?

Four short sentences, each carrying a distinct operational rule, with the timing precondition front-loaded and no filler. Nothing repeats the title or wastes a clause.

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?

A two-parameter, output-schema-backed tool, and the description covers the preconditions, the import-specific ID mapping, and the retry path. It is nearly complete; the remaining gap is that it never states the resulting state of the upload after a successful completion, which an agent may need to decide the next call.

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 100%, so both parameters are fully documented with patterns and length bounds, and the description adds a meaningful mapping (ChatGPT assetId becomes uploadId, completionKey becomes idempotencyKey). Beyond that mapping it restates the schema's own retry advice rather than adding syntax or format detail, so the baseline 3 fits.

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 establishes the operation implicitly through its precondition ("Call after all bytes have uploaded") and adds a negative scope note ("validates the source without starting translation"), which separates it from translation-starting siblings. However, it never states plainly that it finalizes/completes an upload, so an agent relies on the title for the core verb+resource and on inference for sibling differentiation.

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?

Strong sequencing guidance: call only after all bytes have uploaded, with an explicit branch for ChatGPT imports and a concrete rule for the `preparing` state (wait and retry the same completion). It stops short of naming alternatives such as the create-upload or status-check siblings, so it is clear-context guidance without explicit exclusions.

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