Skip to main content
Glama

Finish uploading a report

remene_complete_report_upload
DestructiveIdempotent

Tells Remene every page of a report opened with remene_add_report is uploaded, so it starts reading it; safe to call again. Follow it with remene_get_report and this reportId. conflict with reason: ai_running means another AI run for this study (for example its analysis) is still in progress: try again once it has finished (remene_get_study shows it). conflict with reason: completion_in_progress means an earlier call for this report is starting its reading right now: call again in a moment for its status. conflict with reason: not_uploading means the report is no longer waiting for its upload: remene_get_report with this reportId shows where it stands, and if it failed (or was closed an hour after it was opened unfinished), add it again with remene_add_report. invalid_input means uploadedCount does not match the files declared. feature_unavailable means reading reports is not available right now. payment_required means the study is not unlocked.

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>",
      "reportId": "<reportId>",
      "uploadedCount": "<uploadedCount>"
    },
    "name": "remene_complete_report_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
studyIdYesThe study id, as listed by remene_list_studies
reportIdYesThe reportId remene_add_report returned
uploadedCountYesHow many files were uploaded; must match the files declared

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses that the call initiates reading of the report, that it is safe to call again, and what each conflict and failure reason means operationally. The error cases such as not_uploading, invalid_input, feature_unavailable, and payment_required give the agent concrete state-transition and recovery context.

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 purpose and required follow-up are front-loaded, and the error-code catalog is structured enough to scan. It is somewhat dense, but the length is largely justified by the number of distinct recovery paths it documents.

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, but the description covers the lifecycle trigger, idempotency, follow-up call, conflict handling, and all listed failure modes. That is sufficient for an agent to invoke and recover correctly.

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 description coverage is 100%, so the schema already defines studyId, reportId, and uploadedCount. The description adds some validation meaning for uploadedCount through the invalid_input explanation, but it does not add much beyond what the schema provides.

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 description states a specific action and resource: it tells Remene that every page of a report opened with remene_add_report is uploaded so reading can start. It clearly distinguishes the tool from remene_add_report and remene_get_report by describing its place at the end of the upload flow.

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?

It explicitly says to follow the call with remene_get_report using the same reportId and explains retry behavior for AI-running and completion-in-progress conflicts. It also routes the agent to remene_get_report and remene_add_report when the report is no longer uploading or has failed or been closed unfinished.

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