Skip to main content
Glama

MCP Filesystem Server

MIT License
42
  • Apple
  • Linux

calculate_directory_size

Calculate the total size of a directory, including all subdirectories, in specified formats (human-readable, bytes, or JSON) for efficient filesystem management on MCP Filesystem Server.

Instructions

Calculate the total size of a directory recursively.

Args: path: Directory path format: Output format ('human', 'bytes', or 'json') ctx: MCP context Returns: Directory size information

Input Schema

NameRequiredDescriptionDefault
formatNohuman
pathYes

Input Schema (JSON Schema)

{ "properties": { "format": { "default": "human", "title": "Format", "type": "string" }, "path": { "title": "Path", "type": "string" } }, "required": [ "path" ], "title": "calculate_directory_sizeArguments", "type": "object" }

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/safurrier/mcp-filesystem'

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