Skip to main content
Glama

Finish a large upload

assets_upload_complete

After the curl from assets_upload_url finished: checks the object really landed (its size and type, read back from storage) and answers the mediaKey to use. Fails with what to do when the bytes never arrived. Needs the write scope.

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": {
      "mediaKey": "<mediaKey>"
    },
    "name": "assets_upload_complete"
  }
}

Input Schema

NameRequiredDescriptionDefault
mediaKeyYesThe mediaKey assets_upload_url answered.

Output Schema

NameRequiredDescriptionDefault
attachmentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations (which only declare it is a non-destructive, non-open-world write), the description discloses the readback verification of size and type, the failure mode and that the failure message tells you what to do, and the required write scope. It does not address idempotency or what happens if it is called twice on the same mediaKey, which is the main remaining gap for a mutation.

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 compact sentences, front-loaded with the triggering condition, and each carries distinct information (verification, failure handling, scope). The clause 'Fails with what to do when the bytes never arrived' is slightly awkward to parse, but no sentence is 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 one-parameter finalization step with an output schema already covering return values, the description supplies everything an agent needs: the prerequisite, the verification behavior, the failure path, and the authorization requirement. Nothing material is missing.

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 100% and the single mediaKey parameter is already documented in the schema as 'the mediaKey assets_upload_url answered.' The description's mention of mediaKey repeats that framing rather than adding format or provenance detail beyond the schema, so the baseline 3 applies.

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 chain - verify the bytes actually landed in storage and return the mediaKey to use - rather than restating the title. It also names the sibling that precedes it (assets_upload_url), so an agent can place this tool in the upload workflow without opening another schema.

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?

The trigger is explicit: call this only after the curl from assets_upload_url has finished, which is a clear prerequisite and sequencing rule. There is no explicit when-not guidance (e.g., when to skip it or what to do for small uploads), which keeps it just 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.