Skip to main content
Glama
narmaku

Linux MCP Server

by narmaku

list_directories_by_size

Identify largest directories consuming disk space by analyzing and sorting directories by size, supporting both local and remote Linux systems via SSH.

Instructions

List directories sorted by size (largest first). Uses efficient Linux du command.

Args:
    path: Directory path to analyze
    top_n: Number of top largest directories to return (1-1000)
    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
top_nYes
hostNo
usernameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the implementation method ('Linux du command') and remote execution capability via SSH, which adds useful context. However, it doesn't disclose important behavioral traits like whether this is a read-only operation, potential performance impact on large directories, error conditions, or output format details.

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?

The description is perfectly structured and concise. It begins with a clear purpose statement, then provides a well-organized parameter section with bullet-like formatting. Every sentence earns its place, with no wasted words or redundant information.

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?

Given the tool's moderate complexity (4 parameters, remote execution capability) and the presence of an output schema, the description is mostly complete. It covers all parameters thoroughly and provides implementation context. The main gap is lack of behavioral details about the operation's safety and performance characteristics, which would be more important if no output schema existed.

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?

With 0% schema description coverage, the description fully compensates by providing detailed parameter explanations. Each of the 4 parameters is clearly documented with purpose, constraints (e.g., '1-1000' for top_n), and dependencies ('required if host is provided'). This adds significant value beyond the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/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 with specific verb ('list directories sorted by size') and resource ('directories'), distinguishing it from sibling tools like list_directories_by_modified_date and list_directories_by_name. It specifies the sorting order ('largest first') and mentions the underlying implementation ('efficient Linux du command'), providing clear differentiation.

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

Usage Guidelines4/5

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

The description provides clear context about when to use this tool (for analyzing directory sizes with sorting) and implicitly distinguishes it from siblings that list by other criteria. However, it doesn't explicitly state when NOT to use it or name specific alternatives, which prevents a perfect score.

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-archived'

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