Skip to main content
Glama

Finish an upload

complete_upload

Verify uploaded bytes against their declared size, type and checksum, and return the upload ready to bind to a generation.

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

Input Schema

NameRequiredDescriptionDefault
widthNo
heightNo
upload_idYes
checksum_sha256No

Output Schema

NameRequiredDescriptionDefault
uploadYesA file you brought into Kuro.
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changed
    • addedOutput schema / properties / upload / description
      Added value: +"A file you brought into Kuro."
    • changedOutput schema / properties / upload / properties / bytes / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / upload / properties / created_at
      Added value: +{
      +  "format": "date-time",
      +  "type": "string"
      +}
    • addedOutput schema / properties / upload / properties / id
      Added value: +{
      +  "format": "uuid",
      +  "type": "string"
      +}
    • removedOutput schema / properties / upload / properties / kind
      Removed value: -{
      -  "enum": [
      -    "image",
      -    "audio",
      -    "video"
      -  ],
      -  "type": "string"
      -}
    • addedOutput schema / properties / upload / properties / object
      Added value: +{
      +  "const": "upload",
      +  "type": "string"
      +}
    • changedOutput schema / properties / upload / properties / reference / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "type": {
      -        "const": "upload",
      -        "type": "string"
      -      },
      -      "upload_id": {
      -        "format": "uuid",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "upload_id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "generation_id": {
      -        "format": "uuid",
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "generation",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "generation_id"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "type": {
      +        "const": "upload",
      +        "type": "string"
      +      },
      +      "upload_id": {
      +        "$ref": "#/properties/upload/properties/id"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "upload_id"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "generation_id": {
      +        "$ref": "#/properties/upload/properties/id"
      +      },
      +      "type": {
      +        "const": "generation",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "generation_id"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedOutput schema / properties / upload / properties / reference / description
      Added value: +"Pass this where a request takes media."
    • addedOutput schema / properties / upload / properties / status / description
      Added value: +"Only a `verified` upload can be used in a generation."
    • addedOutput schema / properties / upload / properties / status / enum
      Added value: +[
      +  "pending",
      +  "verified",
      +  "rejected",
      +  "expired"
      +]
    • addedOutput schema / properties / upload / properties / type
      Added value: +{
      +  "enum": [
      +    "image",
      +    "video",
      +    "audio"
      +  ],
      +  "type": "string"
      +}
    • removedOutput schema / properties / upload / properties / upload_id
      Removed value: -{
      -  "format": "uuid",
      -  "type": "string"
      -}
    • addedOutput schema / properties / upload / properties / url / description
      Added value: +"A signed link to the file, for about an hour."
    • changedOutput schema / properties / upload / required
      Previous value: -[
      -  "upload_id",
      -  "filename",
      -  "kind",
      -  "mime_type",
      -  "bytes",
      -  "status",
      -  "url",
      -  "thumbnail_url",
      -  "reference"
      -]New value: +[
      +  "object",
      +  "id",
      +  "filename",
      +  "type",
      +  "mime_type",
      +  "bytes",
      +  "status",
      +  "url",
      +  "thumbnail_url",
      +  "reference",
      +  "created_at"
      +]
  2. Changed2 schema fields changed
    • addedOutput schema / properties / upload / properties / thumbnail_url
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / upload / required
      Previous value: -[
      -  "upload_id",
      -  "filename",
      -  "kind",
      -  "mime_type",
      -  "bytes",
      -  "status",
      -  "url",
      -  "reference"
      -]New value: +[
      +  "upload_id",
      +  "filename",
      +  "kind",
      +  "mime_type",
      +  "bytes",
      +  "status",
      +  "url",
      +  "thumbnail_url",
      +  "reference"
      +]
  3. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=false and idempotent=false, so the safety profile is covered; the description usefully adds that verification of bytes actually happens rather than a no-op finalize. It omits what happens on verification failure (error only, or does the upload become unusable/deleted?) and what the non-idempotent flag means for retries, which are the concrete behaviors an agent would want here.

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?

A single well-formed sentence with the verification action front-loaded and the payoff ('ready to bind') at the end, with no filler. It is slightly compressed for a four-parameter mutation tool, but nothing written is wasted.

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?

An output schema exists, so return-value description is not required, and the annotations cover the safety profile. Still missing for a lifecycle-mutating tool is failure/retry semantics and where this sits relative to create_upload and generation binding, so an agent could call it at the wrong point in the flow.

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

Parameters2/5

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

Schema description coverage is 0% across 4 parameters, so the description carries the full burden. It references 'declared size, type and checksum', but no size or type parameter exists in the schema, while the actual width/height parameters are never explained and upload_id (the only required field) is unmentioned, leaving the required/optional distinction and the meaning of the dimension overrides undocumented.

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?

Uses a specific verb pair ('Verify ... and return') on a specific resource ('upload'), and the outcome ('ready to bind to a generation') makes the step's role clear. It never names the adjacent siblings (create_upload, update_upload, get_upload, delete_upload), so an agent must infer the distinction from the lifecycle wording alone.

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?

The phrase 'return the upload ready to bind to a generation' implies this is the terminal step of an upload flow that must precede generation binding, which is useful positioning. However, there is no explicit when-to-use statement, no statement of prerequisites (bytes must already be uploaded), and no routing to alternatives such as request_upload_link or get_upload to check status.

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