Skip to main content
Glama

Deactivate Interceptor

deactivate_interceptor

Stop capturing HTTP(S) traffic by deactivating a running interceptor in HTTP Toolkit. Use this tool to end traffic inspection and debugging sessions.

Instructions

Deactivate a running interceptor and stop capturing its traffic

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesInterceptor ID to deactivate
proxyPortYesProxy port the interceptor is active on

Implementation Reference

  • The MCP tool handler for 'deactivate_interceptor', which calls the client method.
    async ({ id, proxyPort }) => {
      const result = await client.deactivateInterceptor(id, proxyPort);
      return jsonResult({ success: result });
    }
  • The client method 'deactivateInterceptor' which executes the GraphQL mutation.
    async deactivateInterceptor(
      id: string,
      proxyPort: number
    ): Promise<boolean> {
      const data = await this.graphql<{ deactivateInterceptor: boolean }>(
        `mutation DeactivateInterceptor($id: ID!, $proxyPort: Int!) {
          deactivateInterceptor(id: $id, proxyPort: $proxyPort)
        }`,
        { id, proxyPort }
      );
      return data.deactivateInterceptor;
    }
  • src/index.ts:116-125 (registration)
    The registration of the 'deactivate_interceptor' tool.
    server.registerTool(
      'deactivate_interceptor',
      {
        title: 'Deactivate Interceptor',
        description: 'Deactivate a running interceptor and stop capturing its traffic',
        inputSchema: z.object({
          id: z.string().describe('Interceptor ID to deactivate'),
          proxyPort: z.number().describe('Proxy port the interceptor is active on'),
        }),
      },
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states the action and outcome but lacks details on permissions, side effects (e.g., if deactivation is reversible), error handling, or rate limits. For a mutation tool with zero annotation coverage, this is insufficient.

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

Conciseness5/5

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

The description is a single, efficient sentence with zero waste. It's front-loaded with the core action and outcome, making it easy to parse quickly.

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?

For a mutation tool with no annotations and no output schema, the description is incomplete. It lacks behavioral context (e.g., what happens on success/failure, return values), and while parameters are covered by the schema, overall guidance for safe use is minimal.

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 clear descriptions for both parameters ('id' and 'proxyPort'). The description doesn't add meaning beyond the schema, such as format examples or interdependencies. Baseline 3 is appropriate as the schema does the heavy lifting.

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 clearly states the action ('Deactivate') and the resource ('a running interceptor'), specifying the outcome ('stop capturing its traffic'). It distinguishes from siblings like 'activate_interceptor' (opposite action) and 'list_interceptors' (read-only).

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 explicit guidance on when to use this tool versus alternatives is provided. It doesn't mention prerequisites (e.g., interceptor must be active), exclusions, or compare to related tools like 'shutdown_server' or 'capture_traffic'. Usage is implied but not articulated.

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/fdciabdul/httptoolkit-mcp'

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