Skip to main content
Glama
msicilia

mcp-server-redcap

by msicilia

import_file

Upload a file to a REDCap record field using base64 content, specifying record, field, and optional event or repeat instance.

Instructions

Import (upload) a file into a REDCap record field.

Args: record: Record ID to attach the file to. field: Name of the file upload field. file_name: Name to give the file in REDCap. content_base64: Base64-encoded file content. event: Event name (longitudinal projects only). repeat_instance: Repeat instance number for repeating instruments/events.

Returns: Confirmation message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventNo
fieldYes
recordYes
file_nameYes
content_base64Yes
repeat_instanceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations provided, so the description carries full burden. It states the action and return (confirmation message) but does not disclose side effects such as overwriting existing files, permissions required, or error conditions. Missing key behavioral context beyond the obvious.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured docstring: front-loaded purpose, concise parameter definitions, and a return statement. Every sentence adds value with no redundancy.

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

Completeness3/5

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

Covers parameters and return value sufficiently for a simple upload tool, but lacks guidance on when to use vs alternatives and does not mention potential side effects or failure modes. Completeness is adequate but has clear gaps.

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 has no descriptions (0% coverage), but the description's Args section explains each of the 6 parameters, adding meaning beyond the schema titles. It clarifies event usage and repeat_instance, though it lacks detail on constraints like file size or encoding.

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?

Clear verb 'Import (upload)' with resource 'file' and target 'REDCap record field'. Distinct from sibling tools like delete_file and export_file, so purpose is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit when-to-use vs alternatives. The parameter hints (event for longitudinal projects, repeat_instance for repeating instruments) imply some usage constraints, but no exclusions or comparisons to sibling tools like import_records.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/msicilia/mcp-server-redcap'

If you have feedback or need assistance with the MCP directory API, please join our Discord server