Skip to main content
Glama
rspace-os

RSpace MCP Server

Official
by rspace-os

renameDocumentOrNotebookEntry

Update document or notebook entry titles to improve organization and clarity in RSpace research data.

Instructions

Changes the name/title of a document or notebook entry

Usage: Update document titles for better organization Returns: Updated document information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_idYes
nameYes

Implementation Reference

  • main.py:459-471 (handler)
    The core handler function for the 'renameDocumentOrNotebookEntry' tool. It is registered via the @mcp.tool decorator specifying the exact tool name. The function takes a document ID (int or str) and new name, then calls the RSpace ELN client's update_document method to perform the rename operation, returning the updated document information.
    @mcp.tool(tags={"rspace"}, name="renameDocumentOrNotebookEntry")
    def rename_document(
            doc_id: int | str,
            name: str
    ) -> Dict[str, any]:
        """
        Changes the name/title of a document or notebook entry
        
        Usage: Update document titles for better organization
        Returns: Updated document information
        """
        resp = eln_cli.update_document(document_id=doc_id, name=name)
        return resp
  • main.py:459-459 (registration)
    The @mcp.tool decorator registers the rename_document function as the MCP tool named 'renameDocumentOrNotebookEntry' with 'rspace' tag.
    @mcp.tool(tags={"rspace"}, name="renameDocumentOrNotebookEntry")
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool changes names and returns updated information, but lacks details on permissions required, whether the change is reversible, error handling, or rate limits. For a mutation tool with zero annotation coverage, this is insufficient to inform the agent adequately about behavioral traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise with three short sentences: a purpose statement, usage hint, and return info. It's front-loaded with the core action. However, the 'Usage' sentence is somewhat redundant with the first, slightly reducing efficiency, but overall it avoids unnecessary verbosity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of a mutation tool with no annotations, 0% schema coverage, and no output schema, the description is incomplete. It lacks details on behavioral aspects, parameter meanings, error cases, and output structure. The return statement is vague ('Updated document information'), failing to provide sufficient context for the agent to understand the tool fully.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for undocumented parameters. It mentions 'doc_id' and 'name' implicitly through context but doesn't explain their semantics, formats, or constraints (e.g., that 'doc_id' can be integer or string). The description adds minimal value beyond what the bare schema provides, failing to clarify parameter meanings effectively.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Changes the name/title of a document or notebook entry.' It specifies the verb ('Changes') and resource ('name/title of a document or notebook entry'), making the action explicit. However, it doesn't differentiate from sibling tools like 'rename_inventory_item' or 'update_document', which could have overlapping functionality, so it doesn't reach a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides minimal guidance: 'Update document titles for better organization.' This implies a use case but doesn't specify when to use this tool versus alternatives like 'update_document' or 'rename_inventory_item', nor does it mention prerequisites or exclusions. No explicit when/when-not instructions are given, leaving the agent with little contextual direction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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