duplicate_sample
Create exact copies of existing samples for parallel experiments or backup purposes in RSpace research data management.
Instructions
Creates an exact copy of an existing sample
Usage: Replicate samples for parallel experiments or backup Returns: New sample information with fresh ID and subsamples
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sample_id | Yes | ||
| new_name | No |
Implementation Reference
- main.py:803-812 (handler)The main handler function for the 'duplicate_sample' tool. It is registered via the @mcp.tool decorator and implements the tool logic by calling the RSpace inventory client's duplicate method.@mcp.tool(tags={"rspace", "inventory", "samples"}) def duplicate_sample(sample_id: Union[int, str], new_name: str = None) -> dict: """ Creates an exact copy of an existing sample Usage: Replicate samples for parallel experiments or backup Returns: New sample information with fresh ID and subsamples """ return inv_cli.duplicate(sample_id, new_name)