Skip to main content
Glama

Start uploading a new MRI study

remene_create_study
Destructive

Opens a new MRI study in the patient’s account for upload. Call it only when you can read the patient’s DICOM files and make HTTP PUT requests yourself (for example from a terminal); otherwise give the patient links.upload from remene_get_account, which opens the upload page in their browser. Upload DICOM files only (the bytes "DICM" at offset 128): unzip archives first and leave every other file out. Then call remene_presign_study_upload for the upload URLs, PUT each file with the headers it returns, and call remene_complete_study_upload. maxFilesPerCall is the most files one remene_presign_study_upload call takes; a call may sign fewer than asked and lists the rest in unsigned, to ask for again in the next call. consent_required means the patient must first accept the terms in the browser at the returned url, which brings them back to the upload page. feature_unavailable means uploading is not available right now; invalid_input means fileCount or totalBytes is beyond what one study may hold; rate_limited means the patient has opened as many studies as an hour allows (retryAfterSeconds).

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": {
      "fileCount": "<fileCount>",
      "totalBytes": "<totalBytes>"
    },
    "name": "remene_create_study"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileCountYesHow many DICOM files will be uploaded
totalBytesYesTheir total size in bytes

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and non-idempotency, but the description adds substantial context they cannot carry: the rate limit of studies per hour with `retryAfterSeconds`, the consent gate at the returned `url`, the availability failure mode, and the `unsigned`/`maxFilesPerCall` truncation behavior of signing. It does not explain the destructive or quota-consuming consequence of creating a study that is never completed.

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 gating condition and the workflow are front-loaded, and the back half is a compressed error-code glossary where each entry earns its place. It is dense and long for a two-parameter tool, but there is little that could be cut without losing operational detail.

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, the description carries the return-value burden itself and does so: it explains `url`, `unsigned`, `maxFilesPerCall`, `retryAfterSeconds`, and the four failure codes. Combined with the DICOM byte check ('DICM' at offset 128) and the unzip instruction, an agent has everything needed to invoke it correctly.

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 both field descriptions are self-explanatory, so the baseline is 3, but the description adds real meaning: it names `fileCount` and `totalBytes` as the two inputs that can trigger `invalid_input` when beyond what one study may hold, and ties `maxFilesPerCall` to the downstream signing limit. This is meaning beyond the raw min/max bounds.

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 first sentence gives a specific verb and resource ('Opens a new MRI study in the patient's account for upload'), and the workflow sentence places it precisely at the head of a three-step chain alongside remene_presign_study_upload and remene_complete_study_upload. An agent can distinguish it from every sibling 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?

Explicit when-to-use ('only when you can read the patient's DICOM files and make HTTP PUT requests yourself') and an explicit when-not with a named fallback ('otherwise give the patient `links.upload` from remene_get_account'). The ordering against the sibling upload tools is spelled out as a sequence.

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