create_sample_template
Create reusable templates to standardize sample creation with predefined fields, validation rules, and default values for consistent research data management.
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-1091 (handler)MCP tool handler function for 'create_sample_template'. Registered via @mcp.tool decorator. Executes by calling the RSpace inventory client's create_sample_template method with the provided template_data.@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)
- main.py:1081-1081 (registration)Tool registration decorator @mcp.tool which automatically registers the function as an MCP tool due to FastMCP framework's automatic discovery.@mcp.tool(tags={"rspace", "inventory", "templates"})