Skip to main content
Glama

PostReach

Finish sending a file

finish_upload
Idempotent

Finishes a file you sent to get_upload_link's link, and gives its media_id. Call it once storage has answered your PUT with 200, then pass the media_id in create_draft's media_ids. For a draft you already made, pass update_draft's media_ids with it and the files already on the draft. If the file didn't arrive, it says so: send it again, or give the person attach_media's link. Example: upload_id "upl_1", workspace_id "ws_1", alt_text "A red bicycle by the sea".

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

Input Schema

NameRequiredDescriptionDefault
alt_textNoA short description for people who can't see the picture
upload_idYesFrom get_upload_link
workspace_idYesFrom get_upload_link

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/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 safety is largely covered. The description adds real behavioral context beyond that: the tool returns a media_id, it can detect that the file never arrived, and it reports that failure rather than silently succeeding. It does not say what happens if called before the PUT completes, a minor omission given idempotentHint.

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?

The purpose and its upstream dependency are front-loaded in the first clause, and the remaining sentences each carry a distinct branch (success path, existing-draft path, failure path, example). Some sentences chain several instructions together, which slightly hurts scannability, but there is no filler.

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?

For a three-parameter, non-destructive step in a multi-tool upload flow with no output schema, the description supplies the prerequisite ordering, the returned value, the two downstream consumers, and the failure remedy. Nothing an agent needs in order to call it correctly is missing.

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 coverage is 100%, so the baseline is 3; the worked example ("upload_id "upl_1", workspace_id "ws_1", alt_text "A red bicycle by the sea"") pushes it up by showing the shape and intent of each value in situ. It still does not elaborate on alt_text beyond the schema's own accessibility wording or on length limits.

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?

"Finishes a file you sent to get_upload_link's link, and gives its media_id" names a specific verb, the resource being operated on, and the return value. It also anchors the tool to the upstream get_upload_link step, so an agent can place it in the upload pipeline without opening the 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 precise trigger condition ("once storage has answered your PUT with 200") and explicit routing for both downstream cases: new drafts via create_draft's media_ids, existing drafts via update_draft's media_ids plus the files already attached. It even covers the failure branch, telling the agent to re-send or to hand out attach_media's link.

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