create_sample_template
Create reusable templates for sample generation with predefined field structures, default values, and validation constraints to standardize research data entry in RSpace.
Instructions
Creates a reusable template for sample creation
Usage: Standardize sample creation with predefined fields and validation Template data: Define field structure, default values, and constraints Returns: Created template information for future sample generation
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template_data | Yes |
Implementation Reference
- main.py:1081-1090 (handler)This is the main handler function for the MCP tool 'create_sample_template'. It is decorated with @mcp.tool for automatic registration and implements the tool logic by calling the underlying RSpace inventory client method.@mcp.tool(tags={"rspace", "inventory", "templates"}) def create_sample_template(template_data: dict) -> dict: """ Creates a reusable template for sample creation Usage: Standardize sample creation with predefined fields and validation Template data: Define field structure, default values, and constraints Returns: Created template information for future sample generation """ return inv_cli.create_sample_template(template_data)