Skip to main content
Glama
dxawdc

Secure Local Workspace MCP

by dxawdc

Delete a guarded text file

delete_text_file
Destructive

Delete a text file only after verifying its latest SHA-256 hash matches the expected value, ensuring integrity within authorized project folders.

Instructions

Delete one regular text file only after verifying the latest SHA-256 returned by read_file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
projectIdYes
expectedSha256Yes
Behavior4/5

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

Annotations already flag destructiveHint and readOnlyHint, so the description adds value by specifying the file type ('regular text file') and the safety requirement (SHA-256 verification). This goes beyond the flags, though it does not disclose behavior on SHA mismatch or irreversibility beyond what 'delete' implies.

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?

A single sentence that front-loads the action and the condition with zero redundancy. Every word earns its place, and the structure is optimally concise for an agent to parse.

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 destructive operation, the description covers the essential prerequisite (SHA-256 check) and limits the scope (regular text file). It relies on annotations for destructiveness and omits failure behavior, but the provided context is sufficient for correct invocation in most cases.

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 description coverage is 0%, requiring the description to explain parameters. Only expectedSha256 is implicitly referenced via the verification condition; path and projectId are left to name inference. This does not compensate sufficiently for the missing schema descriptions.

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 precise verb ('Delete'), a specific resource ('one regular text file'), and a conditioning prerequisite (verifying the latest SHA-256). This clearly differentiates it from sibling tools like apply_patch (modifies) and create_text_file (creates), leaving no ambiguity about its scope.

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 provides a clear condition for use: 'only after verifying the latest SHA-256 returned by read_file.' This explicitly defines a prerequisite but does not name alternatives or exclusions (e.g., when to prefer apply_patch), so the guidance is strong but not fully explicit about when not to use the tool.

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/dxawdc/secure-local-workspace-mcp'

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