Skip to main content
Glama
msicilia

mcp-server-redcap

by msicilia

export_pdf

Export REDCap instrument data as a PDF for one or all records, with options for event, instrument, and compact display.

Instructions

Export a PDF of one or all instruments for a record.

Args: record: Record ID to export. None exports all records (use with caution). event: Event name (longitudinal projects only). instrument: Specific instrument to export. None exports all instruments. repeat_instance: Repeat instance number for repeating instruments/events. compact_display: If True, uses compact PDF layout.

Returns: JSON object with base64-encoded PDF content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventNo
recordNo
instrumentNo
compact_displayNo
repeat_instanceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Without annotations, the description carries the burden of behavioral disclosure. It discloses the output format (base64-encoded PDF in JSON) and cautions about the all-records case. It does not explicitly state non-destructiveness, but the export verb implies it. This goes beyond a minimal description by adding relevant warnings and return type details.

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?

The description is well-structured with a one-line summary, an Args section, and a Returns section. Every sentence serves a purpose, and the length is appropriate for five parameters. It is front-loaded with the core purpose and maintains readability.

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?

Given the 5-parameter complexity and absence of annotations, the description covers all parameter semantics and the return format. It lacks explicit error handling or permission requirements, but for an export tool, it provides sufficient context for an AI agent to select and invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description fully compensates by explaining each parameter's meaning and defaults. It clarifies that None for record and instrument means 'all', and that event is longitudinal-only. This adds significant value over the bare schema types.

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 clearly states the tool exports a PDF of instruments for a record, distinguishing it from sibling tools like export_records or export_report. The verb 'Export' and specific resource 'PDF of instruments' make its 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?

The description provides clear context on how to use the tool, including parameter-specific instructions like 'record: None exports all records (use with caution)' and 'event: Event name (longitudinal projects only)'. However, it does not explicitly contrast with alternatives or state when-not-to-use scenarios, so it stops short of a 5.

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