Skip to main content
Glama
narmaku

Linux MCP Server

by narmaku

list_directories_by_name

List directories alphabetically by name from a specified path using Linux find command, with options for reverse sorting and remote SSH execution.

Instructions

List directories sorted alphabetically by name. Uses efficient Linux find command.

Args:
    path: Directory path to analyze
    reverse: Sort in reverse order (Z-A) (default: False)
    host: Remote host to connect to via SSH (optional, executes locally if not provided)
    username: SSH username for remote host (required if host is provided)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
reverseNo
hostNo
usernameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions 'Uses efficient Linux find command' which adds some implementation context, but fails to describe critical behaviors: no information on permissions required, error handling, output format, or whether it's read-only/destructive. For a tool with remote execution capability, this is a significant gap.

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

Conciseness4/5

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

The description is appropriately sized and front-loaded with the core purpose first. The parameter explanations are organized in a clear Args section. While efficient, the behavioral context sentence could be more integrated rather than standalone.

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?

Given 4 parameters with 0% schema coverage and an output schema exists (which handles return values), the description adequately covers parameter semantics. However, for a tool with remote execution capability and no annotations, it lacks important behavioral context about authentication requirements, error conditions, and operational constraints that would be needed for safe use.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must fully compensate. It provides clear semantic explanations for all 4 parameters: 'path: Directory path to analyze', 'reverse: Sort in reverse order (Z-A)', 'host: Remote host to connect to via SSH', and 'username: SSH username'. Each parameter's purpose and relationships (e.g., username required if host provided) are well documented beyond the bare schema.

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 clearly states the tool's purpose: 'List directories sorted alphabetically by name' with the specific verb 'list' and resource 'directories'. It distinguishes from sibling tools like 'list_directories_by_modified_date' and 'list_directories_by_size' by specifying the sorting criterion. However, it doesn't explicitly contrast with all siblings, keeping it at 4 rather than 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?

The description implies usage context through parameter explanations (e.g., 'executes locally if not provided' for host), but lacks explicit guidance on when to use this tool versus alternatives like other directory listing tools. No when-not-to-use or prerequisite information is provided, leaving usage decisions to inference.

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

Install Server

Other Tools

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

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