Skip to main content
Glama

proxy_disable_rule

Disable an interception rule to temporarily stop it from affecting network traffic without deleting the rule configuration.

Instructions

Disable an interception rule without removing it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rule_idYesRule ID to disable

Implementation Reference

  • The handler for the proxy_disable_rule tool, which calls proxyManager.disableRule.
    server.tool(
      "proxy_disable_rule",
      "Disable an interception rule without removing it.",
      {
        rule_id: z.string().describe("Rule ID to disable"),
      },
      async ({ rule_id }) => {
        try {
          await proxyManager.disableRule(rule_id);
          return {
            content: [{
              type: "text",
              text: JSON.stringify({ status: "success", message: `Rule '${rule_id}' disabled.` }),
            }],
          };
        } catch (e) {
          return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: String(e) }) }] };
        }
      },
    );
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