Skip to main content
Glama

Cancel dossier image upload

cancel_dossier_image_upload
DestructiveIdempotent

Give back a reserved image slot: deletes the object at that upload_id if it is there, and touches no record. For an upload that went wrong or was thought better of — without it a half-uploaded image would sit in storage attached to nothing, and nobody could tell it from one that is waiting to be finalized. Refuses an upload_id that has already been finalized: the file belongs to a real image in the Mappe then, and removing it would leave the record pointing at nothing. Use delete_dossier_image for that. Saying cancel twice is not an error — the second call reports that there was nothing left to give back.

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

Input Schema

NameRequiredDescriptionDefault
upload_idYesExactly the upload_id from create_dossier_image_upload_url.

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?

Annotations already flag destructive=true and idempotent=true, and the description adds real substance on top: what actually gets destroyed (the storage object, not the record), the failure mode it prevents (orphaned half-uploads indistinguishable from pending ones), the refusal on finalized ids, and the idempotent second-call behavior. That is well beyond the annotation surface.

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?

Front-loads the core action and then layers rationale, refusal, and idempotency in a logical order. Some phrasing is more conversational than needed ('thought better of', 'nobody could tell it from one that is waiting to be finalized'), which costs a little density but not clarity.

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 destructive tool with no output schema, the definition covers action, side effects, refusal conditions, idempotency, and the sibling alternative. An agent has everything needed to call it correctly and to interpret the no-op case.

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% and the schema already says upload_id comes from create_dossier_image_upload_url. The description still adds meaning about the parameter's valid states, explaining that finalized upload_ids are rejected and why, which the schema does not convey.

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 precise verb and resource: it releases a reserved image slot by deleting the storage object at upload_id and explicitly leaving records untouched. That scope distinguishes it cleanly from finalize_dossier_image_upload and delete_dossier_image without needing either 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?

Gives both when-to-use ('an upload that went wrong or was thought better of') and when-not ('Refuses an upload_id that has already been finalized... Use delete_dossier_image for that'), naming the alternative and the condition that selects it. The double-cancel case is also covered.

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