Skip to main content
Glama
rspace-os

RSpace MCP Server

Official
by rspace-os

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

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)

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