get_sample_template
Retrieve detailed sample template information to examine field specifications and structure before creating samples in RSpace.
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-1102 (handler)The get_sample_template tool handler, automatically registered via @mcp.tool decorator. It takes a template_id (int or str) and returns the template details by delegating to inv_cli.get_sample_template_by_id.@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)
- main.py:1093-1093 (registration)Registration of the get_sample_template tool using the @mcp.tool decorator, which handles automatic tool discovery and exposure in FastMCP framework.@mcp.tool(tags={"rspace", "inventory", "templates"})