Skip to main content
Glama

mkdir

Create directories with optional parent directory creation, permission settings for Unix/Linux, and dry-run preview capability.

Instructions

Create a directory. Creates parent directories by default (like mkdir -p). Supports permission mode in octal (e.g. 0755, 0700) — applied on Unix/Linux. Use dry_run=true to preview.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute path of the directory to create,required
recursiveNoCreate parent directories as needed (like mkdir -p). Default: true
modeNoDirectory permission mode in octal (e.g. 0755, 0700). Default: 0755. Applied on Unix/Linux only
dry_runYesPreview what would be created without actually creating (default false)

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/knewstimek/agent-tool'

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