get_sample_template
Retrieve detailed sample template structure and field specifications to examine before creating samples in RSpace research data management.
Instructions
Retrieves detailed information about a sample template
Usage: Examine template structure before using for sample creation Returns: Complete template definition including field specifications
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template_id | Yes |
Implementation Reference
- main.py:1093-1101 (handler)The handler function for the 'get_sample_template' MCP tool, decorated with @mcp.tool for automatic registration. It takes a template_id (int or str) and returns the template details by calling inv_cli.get_sample_template_by_id(template_id). The docstring provides usage information serving as informal schema documentation.@mcp.tool(tags={"rspace", "inventory", "templates"}) def get_sample_template(template_id: Union[int, str]) -> dict: """ Retrieves detailed information about a sample template Usage: Examine template structure before using for sample creation Returns: Complete template definition including field specifications """ return inv_cli.get_sample_template_by_id(template_id)