Skip to main content
Glama

Confirm an upload

confirm_upload
Idempotent

Use after the file was sent to get_upload_url's address. Free. Returns a temporary url for the image: pass it in generate_image's image_urls. Uploads aren't kept: the file is deleted once a generation has used it (or after 24 h), and only results are saved to the library.

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

Input Schema

NameRequiredDescriptionDefault
upload_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only mark it non-read-only, idempotent and non-destructive, so the description carries the real behavioral load and does so well: the call is free, the returned url is temporary, the uploaded file is deleted after one generation or 24 hours, and only results persist to the library. Those retention and cost facts are exactly what an agent needs to decide how urgently to use the url and whether to re-upload.

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?

Two dense sentences with no filler: the precondition and return value come first, the downstream usage second, and the retention caveats last. Every clause carries operational information, including the cost note ('Free') and the deletion policy.

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 one-parameter tool with no output schema, the definition covers the lifecycle (upload, confirm, consume, expire) and the cost model. The remaining omission is the precise relationship between the argument and get_upload_url's response, and what happens when the upload_id is stale or invalid.

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 0% for the single upload_id parameter, and the description never names it or states its format. It does implicitly tell the agent where the value comes from (the file sent to get_upload_url's address), which partially compensates, but an agent still has to infer that upload_id is the identifier returned by get_upload_url rather than something it constructs.

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?

The description states a specific action and outcome: it takes a file already sent to get_upload_url's address and returns a temporary url for that image. That distinguishes it cleanly from get_upload_url (which initiates the upload) and generate_image (which consumes the url). The only small gap is that it never names the upload_id argument explicitly, but the sequence implied makes the resource unambiguous.

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 it after the file was sent to get_upload_url's address, then pass the returned url into generate_image's image_urls. This tells the agent both the precondition and the next step. It does not spell out failure conditions (e.g. expired or invalid upload_id) or an explicit alternative, so it falls just short of the top mark.

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.