check_webdav_login
Verify WebDAV authentication for Nextcloud Notes access to manage notes through natural language commands.
Instructions
Check if WebDAV login is successful. Returns a message indicating success or failure.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_webdav_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- nextcloud_notes_mcp/server.py:37-50 (handler)The handler function for the 'check_webdav_login' tool, decorated with @mcp.tool() for registration. It checks the WebDAV client connection and returns a success or failure message.
@mcp.tool() def check_webdav_login() -> str: """ Check if WebDAV login is successful. Returns a message indicating success or failure. """ try: if client.check(): # returns True if login works return "✅ WebDAV login successful!" else: return "❌ WebDAV login failed!" except Exception as e: return f"❌ WebDAV login failed: {e}"