bulk_create_samples
Create multiple research samples simultaneously in RSpace using batch processing for large datasets, providing efficient bulk sample creation with comprehensive error handling.
Instructions
Creates multiple samples efficiently in a single operation
Usage: High-performance sample creation for large datasets Performance: Much faster than individual create_sample calls Format: List of sample definition dictionaries
Note: Implementation should use batch API endpoints when available Returns: Results for all created samples with error handling
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sample_definitions | Yes |
Implementation Reference
- main.py:1192-1207 (handler)The handler function for the 'bulk_create_samples' tool, decorated with @mcp.tool for automatic registration in the FastMCP server. The function signature defines the input as a list of sample definition dictionaries and output as a dict. Currently, it is a stub implementation with a TODO comment indicating that bulk creation logic needs to be added using batch API endpoints.@mcp.tool(tags={"rspace", "inventory", "utility"}) def bulk_create_samples(sample_definitions: List[dict]) -> dict: """ Creates multiple samples efficiently in a single operation Usage: High-performance sample creation for large datasets Performance: Much faster than individual create_sample calls Format: List of sample definition dictionaries Note: Implementation should use batch API endpoints when available Returns: Results for all created samples with error handling """ # TODO: Implement bulk creation logic # This would use batch endpoints or optimized iteration # depending on what the RSpace API supports pass