Skip to main content
Glama

proxy_remove_rule

Delete an interception rule by its ID to stop capturing or modifying specific network traffic.

Instructions

Delete an interception rule.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rule_idYesRule ID to delete

Implementation Reference

  • MCP tool handler for 'proxy_remove_rule' — deletes an interception rule by rule_id via proxyManager.removeRule(). Returns success/error JSON.
    server.tool(
      "proxy_remove_rule",
      "Delete an interception rule.",
      {
        rule_id: z.string().describe("Rule ID to delete"),
      },
      async ({ rule_id }) => {
        const removed = await proxyManager.removeRule(rule_id);
        if (!removed) {
          return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: `Rule '${rule_id}' not found` }) }] };
        }
        return {
          content: [{
            type: "text",
            text: JSON.stringify({ status: "success", message: `Rule '${rule_id}' removed.` }),
          }],
        };
      },
    );
  • Input schema for proxy_remove_rule: requires a single 'rule_id' string parameter.
    {
      rule_id: z.string().describe("Rule ID to delete"),
    },
  • Tool registration via server.tool('proxy_remove_rule', ...) inside registerRuleTools() which is called from src/index.ts line 64.
    server.tool(
      "proxy_remove_rule",
      "Delete an interception rule.",
      {
        rule_id: z.string().describe("Rule ID to delete"),
      },
      async ({ rule_id }) => {
        const removed = await proxyManager.removeRule(rule_id);
        if (!removed) {
          return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: `Rule '${rule_id}' not found` }) }] };
        }
        return {
          content: [{
            type: "text",
            text: JSON.stringify({ status: "success", message: `Rule '${rule_id}' removed.` }),
          }],
        };
      },
    );
  • ProxyManager.removeRule() — removes rule from internal Map, triggers rebuildMockttpRules() if proxy is running.
    async removeRule(id: string): Promise<boolean> {
      const removed = this.rules.delete(id);
      if (removed && this._running) await this.rebuildMockttpRules();
      return removed;
    }
Behavior1/5

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

With no annotations provided, the description carries full burden but only states 'Delete an interception rule.' It does not disclose that deletion is permanent, whether the rule must be disabled first, or any side effects. This is insufficient for an agent to understand the tool's behavior.

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

Conciseness4/5

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

The description is a single sentence, concise, and free of waste. However, it may be too brief to provide complete context, but for conciseness it is nearly optimal.

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 simple tool with one parameter and no output schema, the description does not mention the result of deletion (e.g., success confirmation, effect on ongoing interceptions). It lacks completeness for an agent to fully understand the tool's behavior.

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% with parameter 'rule_id' described as 'Rule ID to delete'. The tool description adds no additional semantic value; it simply restates the action. Baseline score of 3 is appropriate.

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 'Delete an interception rule' clearly states the verb 'Delete' and the resource 'interception rule'. It distinguishes from siblings like proxy_add_rule, proxy_disable_rule, and proxy_enable_rule by specifying a distinct action.

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?

No guidance on when to use this tool versus alternatives such as proxy_disable_rule. There is no mention of prerequisites, context, or when not to use it.

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/yfe404/proxy-mcp'

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