createNewNotebook
Create a new electronic lab notebook to organize related experiments and research entries under a single container for better project 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)The main handler function for the 'createNewNotebook' tool. It takes a notebook name as input and uses the eln_cli to create a new folder marked as a notebook, 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)The MCP tool registration decorator that registers the create_notebook function as the 'createNewNotebook' tool with 'rspace' tag.@mcp.tool(tags={"rspace"}, name="createNewNotebook")
- main.py:411-411 (schema)Input schema definition using Pydantic Annotated and Field for the 'name' parameter.name: Annotated[str, Field(description="The name of the notebook to create")],