Skip to main content
Glama

MCP Filesystem Server

MIT License
47
  • Apple
  • Linux

calculate_directory_size

Determine the size of a directory and its contents by specifying the path and output format ('human', 'bytes', or 'json'). Built for MCP Filesystem Server to manage complex directory structures efficiently.

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