list_sample_templates
Browse available sample templates in RSpace to reuse existing structures before creating new research samples, saving time and ensuring consistency.
Instructions
Lists available sample templates for reuse
Usage: Browse existing templates before creating new samples Returns: Paginated list of template metadata
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_size | No |
Implementation Reference
- main.py:1104-1113 (handler)The main handler function for the 'list_sample_templates' tool, decorated with @mcp.tool for automatic registration. It creates a Pagination object and delegates to inv_cli.list_sample_templates.@mcp.tool(tags={"rspace", "inventory", "templates"}) def list_sample_templates(page_size: int = 20) -> dict: """ Lists available sample templates for reuse Usage: Browse existing templates before creating new samples Returns: Paginated list of template metadata """ pagination = i.Pagination(page_size=page_size) return inv_cli.list_sample_templates(pagination)
- main.py:1104-1104 (registration)The @mcp.tool decorator registers the list_sample_templates function as an MCP tool with tags for categorization.@mcp.tool(tags={"rspace", "inventory", "templates"})