Skip to main content
Glama

Finish file upload

finish_upload
Idempotent

After start_upload and the PUTs, save the uploaded files and get their file_ids. Pass the upload_ids from start_upload. A file with retry: true hasn't landed yet: check its PUT succeeded, wait a few seconds and call again. Images may show status processing for a few seconds while AdChat prepares previews.

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_ids": "<upload_ids>"
    },
    "name": "finish_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
upload_idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavior the annotations cannot convey: the retry flag meaning, the recommendation to wait a few seconds and re-call, and that images show a transient processing status. It does not say what happens if a PUT failed permanently, so it stops short of full disclosure.

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 tight sentences ordered by importance: what it does, what to pass, the retry edge case, the processing edge case. No filler and no repetition of the title.

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 single-parameter finalization tool with no output schema, the description covers the workflow position, the input source, and the two ambiguous post-call states (retry:true and processing). What it returns is described well enough (file_ids), though error/failure behavior for a stalled upload is left 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 description coverage is 0%, so the description must carry the meaning, and it does explain the origin of upload_ids (take them from start_upload) and implies batching. However, it omits the schema's constraints that would matter to an agent composing the call: 1-20 items and the allowed id pattern.

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 (save the uploaded files and get their file_ids) tied to a specific resource, and names the preceding sibling start_upload so the agent knows exactly where this sits in the sequence. It is clearly distinguishable from read_file/list_files, which deal with already-saved files.

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?

Explicitly states the precondition (after start_upload and the PUTs) and gives conditional usage guidance for the retry:true case. It lacks an explicit 'do not call this before X' exclusion or a named alternative for abandoned uploads, which keeps it short of a 5.

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.