Skip to main content
Glama

list_files

Lists files in a specified directory path with sorting by size, name, or modification date. Use this tool to organize and analyze file structures on Linux systems.

Instructions

List files under a specified path with various sorting options.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute path to the directory to analyze
order_byNoSort order - 'size', 'name', or 'modified' (default: 'name')name
sortNoSort direction - 'ascending' or 'descending' (default: 'ascending')ascending
top_nNoOptional limit on number of files to return (1-1000, only used with size ordering)
hostNoRemote host to connect to via SSH

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/rhel-lightspeed/linux-mcp-server'

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