publish_form
Activates RSpace forms to make them available for creating documents. Use this tool to publish forms after creation or modification so they can be used for document generation.
Instructions
Makes a form available for creating documents
Usage: Activate form after creation/modification Note: Forms must be published before they can be used for document creation Returns: Updated form status
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form_id | Yes |
Implementation Reference
- main.py:524-534 (handler)The core handler function for the 'publish_form' MCP tool. It is decorated with @mcp.tool which automatically registers it with the MCP server. The function takes a form_id and delegates to the eln_cli client to publish the form in RSpace, returning the updated form status.@mcp.tool(tags={"rspace"}) def publish_form(form_id: int | str) -> dict: """ Makes a form available for creating documents Usage: Activate form after creation/modification Note: Forms must be published before they can be used for document creation Returns: Updated form status """ return eln_cli.publish_form(form_id)
- main.py:524-524 (registration)The @mcp.tool decorator registers the publish_form function as an MCP tool with the 'rspace' tag. FastMCP framework automatically discovers and exposes all such decorated functions.@mcp.tool(tags={"rspace"})