get_forms
Browse and search available custom form templates for creating structured documents in RSpace, with pagination and filtering options to find the right template.
Instructions
Lists available custom forms for structured document creation
Usage: Browse available templates before creating structured documents Filtering: Use query parameter to search form names/descriptions Returns: Paginated list of form metadata
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_by | No | lastModified desc | |
| page_number | No | ||
| page_size | No | ||
| query | No |
Implementation Reference
- main.py:477-486 (handler)The main handler function for the MCP tool 'get_forms'. It is decorated with @mcp.tool for registration and executes the tool logic by delegating to eln_cli.get_forms with the provided parameters.@mcp.tool(tags={"rspace"}) def get_forms(query: str = None, order_by: str = "lastModified desc", page_number: int = 0, page_size: int = 20) -> dict: """ Lists available custom forms for structured document creation Usage: Browse available templates before creating structured documents Filtering: Use query parameter to search form names/descriptions Returns: Paginated list of form metadata """ return eln_cli.get_forms(query=query, order_by=order_by, page_number=page_number, page_size=page_size)