list_uncategorized_notes
Retrieve Markdown files from the main Notes folder to identify unorganized documents for categorization and management.
Instructions
List all Markdown (.md) files directly inside /Notes (not in subfolders).
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": "list_uncategorized_notes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- nextcloud_notes_mcp/server.py:60-67 (handler)The main handler function for the 'list_uncategorized_notes' tool. It lists Markdown files directly in the /Notes directory using the WebDAV client. The @mcp.tool() decorator registers it as an MCP tool.
@mcp.tool() def list_uncategorized_notes() -> List[str]: """ List all Markdown (.md) files directly inside /Notes (not in subfolders). """ items = client.list("/Notes") return [f for f in items if f.endswith('.md')]