createNewNotebook
Create a new electronic lab notebook to organize related experiments and entries under a single structure for research data management.
Instructions
Creates a new electronic lab notebook
Usage: Organize related experiments/entries under a single notebook Returns: Created notebook information including ID for adding entries
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the notebook to create |
Implementation Reference
- main.py:409-420 (handler)Handler function for the 'createNewNotebook' tool. Registered via @mcp.tool decorator. Takes a notebook name and creates a new RSpace ELN notebook folder using the eln_client, returning the response.@mcp.tool(tags={"rspace"}, name="createNewNotebook") def create_notebook( name: Annotated[str, Field(description="The name of the notebook to create")], ) -> Dict[str, any]: """ Creates a new electronic lab notebook Usage: Organize related experiments/entries under a single notebook Returns: Created notebook information including ID for adding entries """ resp = eln_cli.create_folder(name, notebook=True) return resp
- main.py:409-409 (registration)Tool registration decorator specifying the tool name 'createNewNotebook' with rspace tag.@mcp.tool(tags={"rspace"}, name="createNewNotebook")
- main.py:411-411 (schema)Input schema definition for the notebook name parameter using Pydantic Field.name: Annotated[str, Field(description="The name of the notebook to create")],