Skip to main content
Glama
rspace-os

RSpace MCP Server

Official
by rspace-os

createNotebookEntry

Add experimental procedures, results, or observations to an existing RSpace notebook with HTML or plain text formatting.

Instructions

Adds a new entry to an existing notebook

Usage: Add experimental procedures, results, or observations to a notebook Content: Supports both HTML and plain text formatting Returns: Created entry information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe name of the notebook entry
notebook_idYesThe id of the notebook to add the entry
text_contentYeshtml or plain text content

Implementation Reference

  • main.py:424-438 (handler)
    The main handler function for the 'createNotebookEntry' tool. It creates a new document entry in a specified notebook (folder) using the RSpace ELN client, passing the name, content, and parent notebook ID.
    def create_notebook_entry( name: Annotated[str, Field(description="The name of the notebook entry")], text_content: Annotated[str, Field(description="html or plain text content ")], notebook_id: Annotated[int, Field(description="The id of the notebook to add the entry")], ) -> Dict[str, any]: """ Adds a new entry to an existing notebook Usage: Add experimental procedures, results, or observations to a notebook Content: Supports both HTML and plain text formatting Returns: Created entry information """ resp = eln_cli.create_document(name, parent_folder_id=notebook_id, fields=[{'content': text_content}]) return resp
  • main.py:423-423 (registration)
    Registers the 'createNotebookEntry' tool with the FastMCP server, making it available via MCP with the 'rspace' tag.
    @mcp.tool(tags={"rspace"}, name="createNotebookEntry")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rspace-os/rspace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server