unpublish_form
Hide forms from the document creation interface to temporarily disable them without deletion, maintaining form data while preventing new submissions.
Instructions
Hides a form from document creation interface
Usage: Temporarily disable forms without deletion Returns: Updated form status
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form_id | Yes |
Implementation Reference
- main.py:536-544 (handler)The handler function for the 'unpublish_form' MCP tool. It is registered via the @mcp.tool decorator and implements the core logic by calling the underlying eln_cli.unpublish_form method with the provided form_id.@mcp.tool(tags={"rspace"}) def unpublish_form(form_id: int | str) -> dict: """ Hides a form from document creation interface Usage: Temporarily disable forms without deletion Returns: Updated form status """ return eln_cli.unpublish_form(form_id)
- main.py:536-536 (registration)The @mcp.tool decorator registers the unpublish_form function as an MCP tool with the 'rspace' tag. FastMCP automatically discovers and registers all such decorated functions.@mcp.tool(tags={"rspace"})