Skip to main content
Glama

delete_file

Destructive

Deletes a file from the attached Overleaf project while keeping it recoverable from project history.

Instructions

Delete a file from the attached project. It stays recoverable from Overleaf's history.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "delete_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFile to delete, relative to the project root.
messageNoCommit message shown in Overleaf's history.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, so the description's real contribution is the recovery guarantee ('stays recoverable from Overleaf's history'), which materially lowers the perceived risk of an irreversible-looking call. It stops short of stating permissions, what happens if the path does not exist, or whether a subsequent push is required.

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 with zero filler; the action and scope come first and the risk-reducing recovery fact follows immediately. Nothing could be removed without losing meaning.

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 two-parameter destructive tool with full schema coverage and annotations carrying the safety profile, the description covers the essential agent-facing concern (recoverability via history). Minor gaps remain around error behavior and whether the deletion is local until pushed, but the definition is sufficient to call it correctly.

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 100%, so both 'path' and 'message' are already documented in the schema, including the fact that message appears in Overleaf's history. The description adds no syntax, path-format, or defaulting detail beyond the schema, so the baseline of 3 applies.

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?

Uses a specific verb+resource ('Delete a file') and scopes it to 'the attached project', which cleanly separates it from siblings like edit_file, move_file, and discard_unpushed. It does not name an alternative explicitly, but the action is unambiguous.

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

Usage Guidelines3/5

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

The phrase 'from the attached project' implies the prerequisite that a project must be attached, and the recoverability note hints that deletion is not an emergency. However, there is no explicit when-to-use/when-not guidance and no routing to alternatives such as discard_unpushed for uncommitted changes.

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