Skip to main content
Glama

delete_path

Remove files or directories from your repository. Use recursive=true for directories; workspace root deletion is blocked.

Instructions

Delete a file, or a directory tree with recursive=true. Deleting the workspace root is refused. Prefer deleting specific files over directories.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to delete.
recursiveNoRequired to delete a directory. Default false.
workspaceNoWorkspace alias. Defaults to the active workspace.
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the recursive requirement and the workspace root refusal, but does not explicitly state that deletions are permanent or unrecoverable. This is a notable gap for a destructive tool.

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 concise sentences, front-loaded with the primary action. No redundant information; every sentence adds operational value.

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 simplicity and full schema coverage, the description covers essential operational details: what can be deleted, how to delete directories, and a safety restriction. It omits explicit mention of irreversibility, but the deletion intent is clear from the name and description.

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 all parameters are already documented. The description adds a preference guideline but does not provide new parameter-level semantics beyond what the schema already describes, such as the recursive default.

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 states a clear verb+resource: 'Delete a file, or a directory tree with recursive=true.' It explicitly distinguishes from sibling tools like move_path or write_file by specifying the deletion scope and the recursive condition for directories.

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?

Provides direct usage guidance: 'Prefer deleting specific files over directories' and warns that 'Deleting the workspace root is refused.' This helps the agent choose when to use the tool and avoid unsafe usage, though it does not explicitly name alternative tools.

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/zcrossoverz/repo-bridge'

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