Skip to main content
Glama
rspace-os

RSpace MCP Server

Official
by rspace-os

duplicate_sample

Create an exact copy of an existing sample in RSpace for parallel experiments or backup purposes, generating a new sample with a fresh ID and subsamples.

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
NameRequiredDescriptionDefault
new_nameNo
sample_idYes

Implementation Reference

  • main.py:803-812 (handler)
    Handler function for the 'duplicate_sample' tool. Decorated with @mcp.tool for automatic registration. Duplicates a sample using inv_cli.duplicate, returning the new sample info.
    @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)

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/rspace-os/rspace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server