Skip to main content
Glama
rspace-os

RSpace MCP Server

Official
by rspace-os

update_document

Modify RSpace document content, name, tags, or metadata to keep research data current and organized.

Instructions

Updates existing RSpace document content and metadata

Usage: Modify document name, tags, or field content Fields format: [{"id": field_id, "content": "new HTML content"}] Returns: Updated document information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
document_idYes
nameNo
tagsNo
form_idNo
fieldsNo

Implementation Reference

  • main.py:148-170 (handler)
    The 'update_document' tool handler function. It is registered via the @mcp.tool decorator and implements the tool logic by calling the underlying eln_cli.update_document method with the provided parameters.
    @mcp.tool(tags={"rspace"})
    def update_document(
        document_id: int | str,
        name: str = None,
        tags: List[str] = None,
        form_id: int | str = None,
        fields: List[dict] = None
    ) -> dict:
        """
        Updates existing RSpace document content and metadata
        
        Usage: Modify document name, tags, or field content
        Fields format: [{"id": field_id, "content": "new HTML content"}]
        Returns: Updated document information
        """
        return eln_cli.update_document(
            document_id=document_id,
            name=name,
            tags=tags,
            form_id=form_id,
            fields=fields
        )

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