Skip to main content
Glama

Create dossier image upload url

create_dossier_image_upload_url

Reserve a place for an image in a dossier's Mappe and get a signed PUT address for it. The bytes never pass through the agent: upload with curl -H "Content-Type: <mime>" -T <file> "<upload_url>" from the shell — without the header the bucket answers 415, then call finalize_dossier_image_upload with the returned upload_id. This is the way for a file that lives on the caller's own disk — base64 has to stand inside the tool call and an execution environment spills output to a file at about 30 KB, and source_url needs a server that can reach the machine. The address is valid for two hours and for exactly one path. Nothing is written to the Mappe until you finalize; an abandoned upload leaves an object that list_orphan_dossier_images shows. Up to 10 MB per image, enforced by the bucket so the PUT fails at once. For a small image or one the server can fetch itself, upload_dossier_image is still the shorter way.

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": {
      "filename": "<filename>"
    },
    "name": "create_dossier_image_upload_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYesName as it should be kept, e.g. "07-befundhistorie.png". Its extension decides the stored one when mime_type is omitted.
grant_idNo
mime_typeNoWhat you are about to upload. Only decides the extension in the path — the content is read and checked when you finalize, and the content wins.
tender_idNo
dossier_idNo

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 give the mutation/safety profile; the description adds the details that actually govern behavior: two-hour URL lifetime, single-path scope, bytes never transit the tool, 10 MB bucket-enforced cap that fails the PUT immediately, 415 without a Content-Type header, and no Mappe write until finalize. It even discloses the side effect of abandonment (orphan objects surfaced by list_orphan_dossier_images), which is exactly the kind of non-obvious consequence annotations cannot 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?

Purpose is front-loaded in the first clause and the rest is dense, operational information rather than filler. It is a long, multi-clause paragraph, however, and the shell-command snippet plus size/base64 asides make it slightly harder to scan than a bulleted flow would be.

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?

There is no output schema, yet the description names what comes back (upload_url, upload_id), how to use the URL, and what happens on success versus abandonment. For a five-parameter upload-initiation tool, an agent has everything needed to call it correctly and hand off to finalize.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 40%, so the description carries the burden, but it only implies mime_type via the curl Content-Type placeholder and says nothing about grant_id, tender_id, or dossier_id. Those scope identifiers are undocumented in both places, so an agent must guess whether they are required, mutually exclusive, or optional context.

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 concrete verb and resource: reserve a slot for an image in a dossier's Mappe and obtain a signed PUT address. It also implicitly separates itself from the finalize step and from upload_dossier_image, so an agent can place it in the workflow without opening a schema.

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?

Explicitly names the condition that selects this tool (a file on the caller's own disk) and the conditions that select the alternative (small image, or server-fetchable via source_url -> upload_dossier_image). It also states the required next step, finalize_dossier_image_upload with the returned upload_id.

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