tagDocumentOrNotebookEntry
Add tags to RSpace documents or notebook entries to organize research data and improve searchability by categorizing content with consistent labels.
Instructions
Adds tags to documents for organization and searchability
Usage: Categorize documents by project, experiment type, etc. Tags: Use consistent naming for better organization Returns: Updated document with new tags
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| tags | Yes | One or more tags in a list |
Implementation Reference
- main.py:443-457 (handler)The core handler function for the 'tagDocumentOrNotebookEntry' tool. It uses the RSpace ELN client to update a document or notebook entry with the provided tags. The @mcp.tool decorator registers it with the exact name.@mcp.tool(tags={"rspace"}, name="tagDocumentOrNotebookEntry") def tag_document( doc_id: int | str, tags: Annotated[List[str], Field(description="One or more tags in a list")] ) -> Dict[str, any]: """ Adds tags to documents for organization and searchability Usage: Categorize documents by project, experiment type, etc. Tags: Use consistent naming for better organization Returns: Updated document with new tags """ resp = eln_cli.update_document(document_id=doc_id, tags=tags) return resp