Skip to main content
Glama

proxy_remove_rule

Delete an interception rule from the proxy-mcp server to stop capturing, modifying, or mocking specific network traffic.

Instructions

Delete an interception rule.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rule_idYesRule ID to delete

Implementation Reference

  • The implementation of the `proxy_remove_rule` tool handler within `registerRuleTools`. It uses `proxyManager.removeRule` to delete the rule.
    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.` }),
          }],
        };
      },
    );

Tool Definition Quality

Score is being calculated. Check back soon.

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