Skip to main content
Glama

Finish an upload

upload_finish

Free. Call after you sent the file to the URL from upload_start. The server checks the real file (type, size, bytes); a file that is not what it says is deleted. A song id goes to song_analyze; an attachment id to ai_short_draft / persona_create; a video is a Library item.

Args: upload_id: from upload_start. title: optional name for a video or project_media upload.

Returns: {ok, kind, ...}: attachment {attachment_id, url, width, height}; song {song_id, size}; video {library_id, generation}; project_media {asset_id, project_id}.

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": "upload_finish"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNo
upload_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Goes well beyond the annotations: it discloses cost ("Free"), that the server re-validates the actual bytes, and that mismatched files are deleted rather than kept. One caveat: destructiveHint=false while the description says a bad file "is deleted" — the deletion is scoped to the just-uploaded invalid artifact rather than user data, so it is a tension worth flagging but not a direct contradiction. It does not describe failure modes (e.g. what happens if the bytes were never sent or the upload_id expired).

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?

Front-loaded with the two things an agent needs first (it is free, and it follows upload_start), then structured Args and Returns blocks. Every sentence carries non-redundant information; the Returns enumeration is justified because no output schema exists.

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

Completeness5/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 enumerating the return shape per kind (attachment, song, video, project_media). Combined with documented parameters, precondition, validation behavior, and downstream routing, nothing material is missing for a two-parameter finish step.

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 description coverage is 0%, so the description carries the burden, and it does document both parameters: upload_id is traced back to upload_start, and title is scoped to video or project_media uploads. Neither parameter's format or validity constraints are explained beyond the schema's maxLength, so it stops short of full compensation.

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?

States a specific action (finish the upload started by upload_start) and what it does: the server validates the real file (type, size, bytes) and deletes anything that does not match. It explicitly positions itself as step two of a named sibling, so an agent can tell it apart from upload_start without opening either schema.

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

Usage Guidelines5/5

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

Gives a direct precondition ("Call after you sent the file to the URL from upload_start") and then routes the agent based on the returned kind: song id to song_analyze, attachment id to ai_short_draft/persona_create, video into the Library. That is explicit when-to-use plus concrete next-step alternatives, which is exactly what the dimension asks for.

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