Skip to main content
Glama

aanet_delete_file

Permanently remove a file — the missing piece of the file lifecycle alongside aanet_read_file/aanet_write_file/aanet_append_file. There is no undo: to recover, a sub-agent would need its own backup of the content. Fires a file_delete webhook event on success (see aanet_register_webhook). Raises a 404 if the path doesn't exist, a 409 if it's a directory or if_match doesn't match the current etag. Returns {path, deleted}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesVirtual file path within the workspace. Must point to a file, not a directory.
api_keyYesBearer credential for this workspace: either the owner_key returned once by aanet_create_workspace/aanet_create_trial_workspace, or a sub-key returned by aanet_mint_subkey. Sent under the hood as `Authorization: Bearer <api_key>`. Owner-only tools reject a sub-key with a 403.
if_matchNoThe file's current etag, for the same conflict-detection purpose as on aanet_write_file.
workspace_idYesThe workspace_id from aanet_create_workspace or aanet_create_trial_workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does a good job: states it is irreversible, mentions the webhook event, details error codes (404, 409), and the return shape. However, it doesn't disclose prerequisites (e.g., need for a lock, permission requirements) or whether the operation is atomic or what happens on partial failure. For a destructive operation with zero annotation coverage, the description could go further, but it covers the most critical behavioral aspects.

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?

The description is concise, with every sentence contributing meaning. It front-loads the core purpose and irreversibility, then adds webhook and error details, and finally the return value. No fluff or redundancy; it is well-structured for an agent to parse quickly.

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 complexity (4 params, no output schema, no annotations), the description is fairly complete. It covers the operation's effect, error scenarios, return shape, and even references related tools for parameter semantics. The missing piece is explicit prerequisites like acquiring a lock (since there is an aanet_acquire_lock sibling) and permission levels beyond what's in api_key descriptions. Still, it provides enough for an agent to use correctly in most cases.

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%, meaning each parameter's description already provides detailed meaning (e.g., path, api_key, if_match, workspace_id). The tool description adds some nuance for if_match ('same conflict-detection purpose as on aanet_write_file') and references to other tools for api_key, but mostly the schema does the heavy lifting. Since the baseline is 3 due to high coverage, this score is appropriate; the description adds minimal extra value beyond the schema.

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 clearly states the tool's purpose: 'Permanently remove a file.' It also explicitly positions it within the file lifecycle alongside the sibling read/write/append tools, which helps distinguish it from other file operations. The verb 'remove' and resource 'file' are specific and unambiguous.

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?

The description mentions it is the 'missing piece of the file lifecycle' alongside specific siblings, implying when to use it (after read/write/append operations are complete). However, it does not explicitly state when NOT to use it, such as for directories (though it notes 409 for directories) or alternatives for recovery. It gives clear error contexts but no direct 'use this instead of X' guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources