Skip to main content
Glama

Get upload links for MRI files

remene_presign_study_upload
Destructive

Presigned PUT URLs for files of a study opened with remene_create_study: ask for up to 100 files per call (maxFilesPerCall), each by its index (0 to fileCount - 1) and exact size in bytes. A call may sign fewer files than asked, so that its answer fits in one result: items holds the files it signed, in the order asked, and unsigned the indices of the files it did not sign. Put those first in your next call (adding more files, up to 100 in all), and continue until unsigned is empty and every file has a URL. PUT each file’s bytes to its url with exactly the headers returned, within expiresAt. conflict with reason: not_uploading means the study was already completed. invalid_input with a reason means the batch was refused: too_many_items, idx_out_of_range, file_too_large, duplicate_idx or invalid_body.

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>",
      "items": "<items>"
    },
    "name": "remene_presign_study_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
studyIdYesThe study id, as listed by remene_list_studies

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare destructiveHint=true, readOnlyHint=false, idempotentHint=false, but the description adds considerably more: calls may sign fewer files than asked, per-call limit of 100, URL/header/expiry usage, and the error semantics (conflict/not_uploading means study already completed; invalid_input reasons). This is well beyond what annotations provide.

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?

Dense but well-organized, front-loaded with purpose then limits, then response shape, then errors. Slightly long for one paragraph but every sentence carries operational information.

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?

Covers the pagination protocol, upload mechanics, and error meanings. Missing explicit mention of maxFilesPerCall in the schema (description references it as if it were a parameter) and no output schema exists, but the response fields (items, unsigned, url, headers, expiresAt) are described in text.

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 50%; the description clarifies idx is the file's index 0..fileCount-1, size is exact bytes, and maxFilesPerCall caps at 100 (though maxFilesPerCall isn't in the schema properties—implied, a slight mismatch). It adds meaning beyond the schema's own descriptions.

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: presigned PUT URLs for files of a study opened with remene_create_study. It distinguishes itself clearly from siblings (it generates upload links, not completes uploads).

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 prerequisite (study opened with remene_create_study) and the pagination loop (re-call with unsigned indices first until unsigned is empty). No alternatives needed since it's a unique operation, but the workflow guidance is thorough.

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