Skip to main content
Glama

ensure_dir

Create a folder with any missing parent directories inside the workspace output or state folder; paths outside these allowed areas are refused, and the absolute path is returned.

Instructions

Create a folder, with any missing parents, inside the workspace's output folder or state folder. A relative path is resolved under /output; an absolute one must lie inside /output or the state folder (/agentic by default), and a path anywhere else is refused. An existing folder is left as it is. Returns the absolute path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesFolder path: relative to <workspace>/output, or absolute inside <workspace>/output or the state folder

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.4.1

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so well: it discloses parent creation, relative vs. absolute path resolution, refusal of out-of-scope paths, idempotent behavior for existing folders, and the return value.

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?

Three tightly written sentences with no waste. The core action and path behavior are front-loaded, and the return value is stated last as useful closing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter directory-creation tool with no annotations and no output schema, the description is complete: it covers path rules, idempotency, side effects, and the return value. Nothing essential for correct invocation is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so the single parameter is already fully documented in the schema. The description reinforces the path rules but adds no syntax or format details beyond what the schema provides, making the baseline 3 appropriate.

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 gives a specific verb and resource: create a folder, including missing parents, within the workspace output or state folder. It is unambiguous and clearly distinguishable from the many process-running and image-operation siblings.

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?

It clearly states the allowed path scopes and that paths outside them are refused, plus that an existing folder is left alone. It does not explicitly name alternatives or say when this tool should be preferred over other filesystem-related tools, but the usage context is clear.

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