list_samples
Browse and search research samples in RSpace inventory with pagination and sorting options to organize your sample collection effectively.
Instructions
Lists samples in the inventory with pagination and sorting
Usage: Browse sample collection, find recent additions Sorting: Options include "lastModified", "name", "created" Returns: Paginated list of sample metadata
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_size | No | ||
| order_by | No | lastModified | |
| sort_order | No | desc |
Implementation Reference
- main.py:790-801 (handler)The handler function for the 'list_samples' MCP tool. Decorated with @mcp.tool for automatic registration. Implements pagination and sorting by calling the inv_cli.list_samples method.@mcp.tool(tags={"rspace", "inventory", "samples"}) def list_samples(page_size: int = 20, order_by: str = "lastModified", sort_order: str = "desc") -> dict: """ Lists samples in the inventory with pagination and sorting Usage: Browse sample collection, find recent additions Sorting: Options include "lastModified", "name", "created" Returns: Paginated list of sample metadata """ pagination = i.Pagination(page_size=page_size, order_by=order_by, sort_order=sort_order) return inv_cli.list_samples(pagination)
- main.py:790-790 (registration)The @mcp.tool decorator registers the list_samples function as an MCP tool with tags for categorization.@mcp.tool(tags={"rspace", "inventory", "samples"})