Skip to main content
Glama
Nextcloud MCP Server

Nextcloud MCP Server

by a-lagutov

list_files

Browse files and folders in Nextcloud by path, with sorting and pagination, to inspect directory contents before downloading, moving, or managing items.

Instructions

List files and folders at a path. Paths are relative to the user's files root, e.g. '/' or '/Projects'. A Files app link (…/apps/files/files/123?dir=/folder) works too.

Input Schema

NameRequiredDescriptionDefault
pathNoFolder path or Files app URL/
sortNoSort field; '-' prefix = descending. Folders always come firstname
limitNoMax items to return (default 50)
offsetNoOffset for pagination

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and adds useful context about the path root and accepting Files app URLs. However, it never discloses permissions/auth requirements, whether hidden or shared items are included, error behavior for missing paths, or what the listing contains beyond names — significant gaps for a read tool with zero annotation coverage.

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

Conciseness5/5

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

Two compact sentences, front-loaded with the core action followed by the path convention and a concrete example. No filler or redundancy.

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

Completeness4/5

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

For a read-only listing tool with full schema coverage and no output schema, the description covers the essential path semantics and one practical input form. Missing tool-selection guidance and listing-content details keep it from a 5.

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

Parameters3/5

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

Schema description coverage is 100%, so all four parameters are already documented including the sort enum and pagination. The description adds the URL-form example for path, but nothing about sort, limit, or offset beyond the schema — baseline 3 is appropriate.

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?

States a specific verb and resource ("List files and folders at a path") and scopes it to one location, which implicitly contrasts with siblings like search_files and recent_files. It does not explicitly name an alternative, so it falls short of a 5.

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

Usage Guidelines3/5

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

Usage is implied by the path-based framing but never stated: there is no guidance on when to use this versus search_files, recent_files, or get_file_info. The only concrete guidance is about path format, not tool selection.

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