Skip to main content
Glama

list_directories

List and sort directories in a specified Linux path to organize and analyze file system contents for system administration tasks.

Instructions

List directories 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 directories to return (1-1000)
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