Check if a TypeScript file can be safely deleted by analyzing all references to it including wildcard imports. Optionally generates test files and mock structures.
AI agents call check_deletable to retrieve information from TypeScript Tools MCP without modifying anything — typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
This is a Read operation because it retrieves and analyzes information about dependencies and references without modifying or deleting any code. While it can generate test files and mock structures, these are outputs for analysis purposes, not actual modifications to the user's codebase. The tool informs decision-making but does not execute destructive or write operations.
From the tool's definition The tool 'check_deletable' performs analysis to determine if a file can be deleted — it analyzes references and generates test/mock structures for inspection purposes.
Attacks that exploit this kind of access
Check if a TypeScript file can be safely deleted by analyzing all references to it including wildcard imports. Optionally generates test files and mock structures. It is categorised as a Read tool in the TypeScript Tools MCP MCP Server, which means it retrieves data without modifying state.
Register the TypeScript Tools MCP server in PolicyLayer and add a rule for check_deletable: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches TypeScript Tools MCP. Nothing to install.
check_deletable is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the check_deletable rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for check_deletable. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
check_deletable is provided by the TypeScript Tools MCP server (trkbt10/mcp-typescript-tools). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →