Skip to main content
Glama
tomjwxf

protect-mcp

delete_file

Remove files from the filesystem using a security-gated MCP server that applies policy controls and generates verifiable decision receipts.

Instructions

Delete a file from the filesystem

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesFile path to delete

Implementation Reference

  • The handler implementation for the `delete_file` tool. Note that this is a demo server, so it just returns a string rather than actually performing the filesystem operation.
    case 'delete_file':
      resultText = `[demo] Deleted file: ${args.path || '/example.txt'}`;
      break;
  • The tool registration and schema definition for `delete_file` in the `TOOLS` array.
      name: 'delete_file',
      description: 'Delete a file from the filesystem',
      inputSchema: {
        type: 'object',
        properties: { path: { type: 'string', description: 'File path to delete' } },
        required: ['path'],
      },
    },

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/tomjwxf/scopeblind-gateway'

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