Skip to main content
Glama

wordpress_delete_file

wordpress_delete_file

Delete a file from WordPress with an option to create a backup before removal, ensuring recoverability.

Instructions

Delete file with optional backup

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
createBackupYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.0
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It mentions 'optional backup' which is a useful safety feature, but it does not explain whether deletion is permanent, how backup works, where files are deleted from, or if any permissions are required. This is insufficient for a destructive operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very short and front-loaded, which is efficient, but it reads as a fragment rather than a well-structured sentence. It is not overly verbose, yet it sacrifices clarity for brevity. It earns a middle score for being concise but lacking full grammatical construction.

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

Completeness2/5

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

Given the simplicity of the tool (2 params, no output schema), the description should still provide context on what 'file' means, the backup behavior, and any side effects. The description does not explain the file system scope, backup location, or return values. For a destructive tool, this is notably incomplete.

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

Parameters2/5

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

Schema coverage is 0%, and the description provides minimal parameter context. It implies 'backup' relates to the createBackup parameter, but the phrase 'optional backup' conflicts with the schema's 'required' list, which marks createBackup as required. The 'path' parameter is not mentioned at all. The description adds little value beyond the raw schema.

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?

The description clearly states the action 'Delete file' with the additional nuance 'with optional backup'. This distinguishes it from sibling tools like copy, move, or write. However, it does not specify what type of file (e.g., theme file, plugin file, arbitrary WordPress file), leaving some ambiguity.

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?

The description provides no guidance on when to use this tool versus alternatives like copy, move, or write. It also lacks any mention of prerequisites, safety warnings, or contexts where deletion is appropriate. The agent is left without decision-making criteria.

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

Deploy Server

Other Tools