unshare_form
Remove form sharing with groups to make a form private again in RSpace, updating its sharing status for controlled access.
Instructions
Removes form sharing with groups
Usage: Make form private again Returns: Updated sharing status
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form_id | Yes |
Implementation Reference
- main.py:558-567 (handler)The MCP tool handler for 'unshare_form'. It is decorated with @mcp.tool() which registers it as a tool. The function takes a form_id and delegates to the eln_cli.unshare_form() method to remove sharing permissions from the form, returning the updated sharing status.@mcp.tool(tags={"rspace"}) def unshare_form(form_id: int | str) -> dict: """ Removes form sharing with groups Usage: Make form private again Returns: Updated sharing status """ return eln_cli.unshare_form(form_id)
- main.py:558-558 (registration)The @mcp.tool decorator registers the unshare_form function as an MCP tool with the 'rspace' tag.@mcp.tool(tags={"rspace"})