Skip to main content
Glama
rspace-os

RSpace MCP Server

Official
by rspace-os

split_subsample

Divide a research subsample into multiple smaller aliquots for distribution or separate experiments, specifying the number of new subsamples and optional quantity per aliquot.

Instructions

Divides a subsample into multiple new subsamples

Usage: Create aliquots for distribution or different experiments Quantity: If specified, each new subsample gets this amount Returns: Information about newly created subsamples

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
num_new_subsamplesYes
quantity_per_subsampleNo
subsample_idYes

Implementation Reference

  • main.py:814-828 (handler)
    The handler function decorated with @mcp.tool decorator registers and implements the split_subsample tool. It takes subsample_id, num_new_subsamples, and optional quantity_per_subsample, calls the underlying inv_cli.split_subsample method, and returns the result (handling .data if present). The type annotations define the input schema implicitly.
    @mcp.tool(tags={"rspace", "inventory", "samples"}) def split_subsample( subsample_id: Union[int, str], num_new_subsamples: int, quantity_per_subsample: float = None ) -> dict: """ Divides a subsample into multiple new subsamples Usage: Create aliquots for distribution or different experiments Quantity: If specified, each new subsample gets this amount Returns: Information about newly created subsamples """ result = inv_cli.split_subsample(subsample_id, num_new_subsamples, quantity_per_subsample) return result.data if hasattr(result, 'data') else result

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