Skip to main content
Glama
rncz

Nextcloud Notes MCP Server

by rncz

rename_note

Rename Markdown notes in Nextcloud Notes to update file names or organize them into categories, overwriting existing files when necessary.

Instructions

Rename a Markdown (.md) note inside Notes or a category. Overwrites the target if it already exists.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYes
new_filenameYes
categoryNo

Implementation Reference

  • The complete implementation of the 'rename_note' MCP tool, including registration via @mcp.tool() decorator, function signature (serving as schema), and the handler logic that renames a note using the WebDAV client's move method.
    @mcp.tool() def rename_note(filename: str, new_filename: str, category: str | None = None) -> str: """ Rename a Markdown (.md) note inside Notes or a category. Overwrites the target if it already exists. """ source_path = f"Notes/{category}/{filename}" if category else f"Notes/{filename}" target_path = f"Notes/{category}/{new_filename}" if category else f"Notes/{new_filename}" try: client.move(source_path, target_path, overwrite=True) except Exception as e: return f"Failed to rename note: {str(e)}" return f"Note renamed successfully: {source_path} → {target_path}"
  • Registration of the 'rename_note' tool using the FastMCP @mcp.tool() decorator.
    @mcp.tool()

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/rncz/nextcloud-notes-mcp-server'

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