Skip to main content
Glama

Confirm upload

var2_confirm_upload

Validate + register a file uploaded via var2_request_upload: probes the object, rejects/deletes bytes whose magic-byte signature or size does not match type, records it in the user's library → real placeholder_id for var2_join_videos chaining. Call with path + type from the request_upload response AFTER the PUT succeeds. Optional — skip if you only need public_url.

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": {
      "path": "<path>",
      "type": "<type>"
    },
    "name": "var2_confirm_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional display name for the asset library.
pathYesThe storage `path` returned by var2_request_upload (e.g. "<userId>/<uuid>.png"). Must be inside your own prefix.
typeYesModality — must match what you requested the upload for.
bucketNoIgnored (derived from `type`); accepted so you can pass the request_upload response back verbatim.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, it discloses the internal validation mechanism (magic-byte and size probing against `type`), that mismatched bytes are rejected/deleted, that the asset is recorded in the user's library, and that a real `placeholder_id` is produced. The deletion is scoped to the just-uploaded object as failed-validation cleanup rather than destruction of existing data, so it does not conflict with destructiveHint=false, but it is the kind of side effect an agent needs warned about.

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?

Three sentences, front-loaded with the action and its consequence, with no filler. The dense backtick/arrow notation makes it slightly harder to parse than plain prose, but nothing is redundant.

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 two-required-parameter mutation with no output schema, it covers ordering (after the PUT), inputs, failure behavior, the returned value, optionality, and downstream use. An agent has everything needed to call it correctly or deliberately skip it.

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 schema already documents all four parameters. The description still adds provenance the schema lacks: that `path` and `type` must be taken from the request_upload response, that `type` must match what was requested, and that the returned id is the placeholder to chain into var2_join_videos.

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?

Description gives a specific compound verb pair (validate + register) and a concrete resource (a file uploaded via var2_request_upload), and explicitly separates itself from var2_request_upload and positions its output for var2_join_videos chaining.

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?

It states the exact call condition (with `path` + `type` from the request_upload response, AFTER the PUT succeeds) and an explicit when-not case: 'Optional — skip if you only need `public_url`.' The alternative path is named rather than implied.

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