Skip to main content
Glama

Delete a file or folder

delete_file
Destructive

Deletes a file or folder and its contents from an Overleaf project, while Overleaf keeps the removed item in project history.

Instructions

Deletes a file or folder (with its contents) from a project. Overleaf keeps it in project history.

Input Schema

NameRequiredDescriptionDefault
pathYes
projectNoProject name, id or Overleaf URL. May be omitted when exactly one project is pinned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the bar is lower. The description still adds real value: deletion is recursive for folders ('with its contents') and Overleaf retains the item in project history, which tells the agent the action is recoverable. It omits permission requirements and behavior when the path does not exist.

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?

Two short sentences, zero filler, with the destructive scope (contents included) front-loaded and the recoverability caveat immediately after. Nothing redundant.

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?

For a simple two-parameter destructive tool with no output schema and annotations already flagging destructiveness, the description covers scope, recursion, and recoverability adequately. Missing only auth/permission notes and failure behavior for nonexistent paths.

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 coverage is only 50%: 'project' is documented but 'path' has no description. The description partially compensates by indicating the path may point to either a file or a folder, but it says nothing about path format (project-relative vs absolute) or the pinned-project fallback logic.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (deletes) and resource (file or folder, with its contents) scoped to a project, which is unambiguous against siblings like move_file, edit_file, or create_folder. It does not explicitly name or contrast with any sibling, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use or when-not-to-use guidance is offered; the agent must infer that this is the tool for removal. There is no mention of alternatives (e.g., move_file to relocate rather than delete) or prerequisites before destroying content.

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