Skip to main content
Glama

Finalize dossier image upload

finalize_dossier_image_upload

Confirm an image upload and put it into the Mappe: checks the object is really there, reads its size, reads the FORMAT OUT OF THE BYTES rather than trusting what was declared, and creates the image record. Returns the same Markdown reference that upload_dossier_image returns, ready to paste into a document. Refuses an upload_id that does not belong to this tenant, refuses anything that is not PNG, JPEG, GIF, WebP or AVIF — never SVG, which can carry script — and refuses a file over 10 MB; in each of those cases the uploaded object is removed again rather than left lying around. The image is marked origin_kind=upload and NOT origin_is_ai, so nobody has to guess later whether a screen in the offer was drawn by a model.

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

Input Schema

NameRequiredDescriptionDefault
alt_textNoWhat the image shows. Used when the Markdown reference brings no alt text of its own.
filenameNoOverrides the name given when the slot was reserved.
upload_idYesExactly the upload_id from create_dossier_image_upload_url.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations, which only declare non-readonly, non-destructive, non-idempotent, closed-world. The description discloses validation logic (byte-level format detection rather than trusting declared type), the tenant-ownership check, the exact accepted MIME set with the reason SVG is excluded, the 10 MB ceiling, cleanup of the uploaded object on every rejection, and the origin_kind/origin_is_ai tagging — none of which annotations convey.

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 primary action and return value are front-loaded, then refusal rules and side effects follow in a logical order. It is dense but nearly every clause carries operational information; the closing rationale about origin_is_ai ('so nobody has to guess later...') is the one sentence that could be trimmed.

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?

With no output schema and full schema coverage, the description still explains the return value (the same Markdown reference as upload_dossier_image), all failure modes, and the post-success state of the record. That is enough for an agent to call it correctly and interpret outcomes.

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 all three parameters are documented there, including upload_id provenance and alt_text's fallback behavior, so the baseline applies. The description adds no per-parameter meaning beyond what the schema already states; its byte-sniffing detail is about validation, not about how to supply inputs.

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: 'Confirm an image upload and put it into the Mappe', then enumerates the concrete operations (existence check, size read, byte-level format sniffing, record creation). It also links itself to the sibling upload_dossier_image by noting identical return values, so an agent can place it in the 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the required upload_id ('Exactly the upload_id from create_dossier_image_upload_url') hints at the reserve-upload-finalize sequence, but the description never says when to prefer this over upload_dossier_image's one-shot path or over cancel_dossier_image_upload. No explicit exclusions or prerequisites are given.

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