Skip to main content
Glama

Lightbringer

Save uploaded file in Lightbringer

register_upload
Idempotent

Finishes an upload after the file was PUT to the URL from request_upload_url: checks it and adds it to the destination, as the next drawing in an invention disclosure's Illustrations section or as a file in a vault folder. Until this succeeds the file is not added. If the file has not arrived yet, or Lightbringer asks to try again, the same upload can be registered again. Registering again after success returns the same result. For a vault result, the fetch reference is "vault_file:" followed by vault_file.id; the bare ID is not a vault fetch reference. Optional readback depends on the advertised fetch supporting vault files. An unavailable read does not mean the upload failed.

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

Input Schema

NameRequiredDescriptionDefault
upload_idYesupload_id from request_upload_url
descriptionNoIllustrations only: what the drawing shows, in plain text. Shown under it in the Illustrations section.

Output Schema

NameRequiredDescriptionDefault
summaryYes
attachmentYes
size_bytesYes
vault_fileNo
illustrationYes
destination_urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / vault_file / properties / id / description
      Added value: +"Bare vault file ID; fetch accepts vault_file:<id>"
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare non-read-only, idempotent, non-destructive, closed-world; the description adds real context beyond them: the file is not added until this call succeeds, retries return the same result, and a failed or unavailable readback does not imply upload failure. The 'vault_file:' prefix requirement for vault fetch references is a non-obvious behavioral detail worth having. Slight redundancy with idempotentHint, but the failure-mode caveats are genuine added value.

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 core action and its destination come first, followed by retry semantics, then the vault_file reference format and readback caveat. It is dense with clauses but nearly every sentence conveys operative information. Minor tightening possible in the readback sentences.

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?

An output schema exists, so return values need not be described, yet the description still flags the vault_file reference format the caller must construct from the result. Combined with destination behavior, retry semantics, and readback caveats, nothing essential for correct invocation 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%, including that upload_id comes from request_upload_url and that description is Illustrations-only, so the schema already carries both parameters. The description restates the upload_id origin and implies where description applies, but adds no syntax or constraint detail beyond the schema. 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?

States a specific verb and resource — finalizes an upload that was PUT to the URL returned by request_upload_url — and names both possible destinations (Illustrations drawing in an invention disclosure, or a file in a vault folder). This cleanly separates it from the sibling that only issues the upload URL.

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?

Gives a clear precondition (the file must already have been PUT to the request_upload_url) and explicit retry guidance: re-register if the file has not arrived or if asked to retry, which is safe even after success. It does not spell out an explicit 'do not use when' case, but the workflow position is unambiguous.

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.