Skip to main content
Glama
rspace-os

RSpace MCP Server

Official
by rspace-os

get_single_Rspace_document

Retrieve the complete content of a specific RSpace document using its ID for reading or analysis purposes.

Instructions

Retrieves complete content of a single document

Usage: Get full document text for reading/analysis Parameters: doc_id can be numeric ID or string globalId (e.g., "SD12345") Returns: Full document with concatenated field content

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_idYes

Implementation Reference

  • main.py:131-145 (handler)
    The handler function decorated as the 'get_single_Rspace_document' tool. Fetches a single RSpace document by ID and concatenates all field contents into a 'content' field for easy consumption.
    @mcp.tool(tags={"rspace"}, name="get_single_Rspace_document") def get_document(doc_id: int | str) -> FullDocument: """ Retrieves complete content of a single document Usage: Get full document text for reading/analysis Parameters: doc_id can be numeric ID or string globalId (e.g., "SD12345") Returns: Full document with concatenated field content """ resp = eln_cli.get_document(doc_id) # Concatenate all field content for easier processing resp['content'] = '' for fld in resp['fields']: resp['content'] = resp['content'] + fld['content'] return resp
  • main.py:131-131 (registration)
    Explicit registration of the tool with name 'get_single_Rspace_document' using the FastMCP decorator.
    @mcp.tool(tags={"rspace"}, name="get_single_Rspace_document")
  • main.py:47-50 (schema)
    Pydantic schema defining the output type of the tool: a single string containing all concatenated document content.
    class FullDocument(BaseModel): """Complete ELN document with all content concatenated""" content: str = Field(description="concatenated text content from all 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