get_forms
Browse available custom form templates to create structured documents in RSpace. Filter forms by name or description and access paginated metadata for document creation.
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 |
|---|---|---|---|
| query | No | ||
| order_by | No | lastModified desc | |
| page_number | No | ||
| page_size | No |
Implementation Reference
- main.py:477-486 (handler)The primary handler for the 'get_forms' tool. This function is decorated with @mcp.tool which both defines the tool schema via type hints/docstring and registers it with the MCP server. It proxies the call to the underlying ELN client (eln_cli.get_forms).@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)