Skip to main content
Glama

files_list

Read-only

Lists direct child files and folders for a given Nextcloud path, with limit and cursor controls for paging.

Instructions

List the direct children of a folder.

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": "files_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoFolder path, e.g. /Docs/
limitNoMaximum number of entries
cursorNo'next' value of the previous answer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds one genuinely useful behavioral fact beyond that: results are limited to direct children, not a recursive subtree. It says nothing about entry shape, whether folders and files are mixed, or how to detect the end of listing.

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?

A single eight-word sentence with no filler, and the key qualifier ('direct') is front-loaded within the predicate. Nothing is wasted and nothing is buried.

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

Completeness3/5

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

For a simple, read-only three-parameter tool with complete schema coverage and clear annotations, the description covers the core contract. However, with no output schema, the return shape (field names, how folders versus files appear, what a null/empty 'next' looks like) is documented nowhere, and this one-liner does not compensate.

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 path, limit, and cursor are fully documented in the schema itself, including the unusual 'next' value convention for cursor. The description adds no additional meaning about parameter behavior, which is the baseline expectation when the schema does the heavy lifting.

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 gives a specific verb ('List') and a precise resource scope ('direct children of a folder'), and the word 'direct' signals non-recursive behavior, which meaningfully distinguishes it from files_search or a recursive walk. It stops short of naming any sibling, but the operation itself is unambiguous.

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 only implied: an agent can infer this is the tool for browsing one folder level, and 'direct children' hints that deeper traversal needs repeated calls or another tool. There is no explicit 'use this when...' statement, no mention of files_search as the alternative for querying content by name, and no guidance on pagination follow-up beyond the cursor param.

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