Skip to main content
Glama

Finish uploading an MRI study

remene_complete_study_upload
DestructiveIdempotent

Tells Remene every file of a study you opened with remene_create_study is uploaded, once you have PUT them all, so it starts preparing the images; safe to call again. Answers the study’s status; follow its progress with remene_get_study. The analysis starts on its own only once the study is unlocked, which the patient does on the study page (links.study). invalid_input means uploadedCount is more than the files the study declared; conflict with reason: completion_in_progress means an earlier call is starting the preparation right now: call again in a moment for its status.

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": {
      "studyId": "<studyId>",
      "uploadedCount": "<uploadedCount>"
    },
    "name": "remene_complete_study_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
studyIdYesThe study id, as listed by remene_list_studies
failedIdxNoThe indices of files that could not be uploaded
uploadedCountYesHow many files were uploaded successfully

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.1/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the blocking dependency on the patient unlocking the study via links.study, and by decoding two failure modes (`invalid_input` when uploadedCount exceeds declared files; `conflict`/`completion_in_progress` meaning retry shortly). It restates idempotency ('safe to call again') which annotations already carry, and never explains what the destructiveHint=true actually affects.

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-loaded with the action and its effect, followed by follow-up and error handling in a compact chunk. The semicolon-chained error-code clauses are dense but each carries actionable information; there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutating, non-read-only tool with no output schema, it covers sequencing, gating, idempotency and the two known error responses. The one residual gap is return-value detail: 'answers the study's status' never says what statuses or fields come back, and the failedIdx flow is unaddressed.

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 coverage is 100%, so the schema already documents all three parameters, and the description adds only one semantic link: that uploadedCount is validated against the number of files the study declared. The `failedIdx` parameter is never mentioned anywhere in the description, leaving its role in completion unexplained beyond the schema line.

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 ('tells Remene every file of a study ... is uploaded') and ties it to the sibling that must precede it (remene_create_study), so an agent can distinguish it from create/get siblings immediately. The downstream effect ('so it starts preparing the images') makes the purpose unambiguous.

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?

Explicit preconditions ('once you have PUT them all'), a follow-up route (remene_get_study for progress), and retry guidance for the concurrent-call conflict. It omits any guidance on the partial-failure case implied by the failedIdx parameter, so the when-to-use story is strong but not complete.

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