Skip to main content
Glama

cortex_disable_analyzer

Remove an enabled analyzer from your organization to deactivate its use in security investigations.

Instructions

Disable (remove) an enabled analyzer from the current organization

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
analyzerIdYesThe enabled analyzer's ID (the internal ID from cortex_list_analyzers, not the definition ID)

Implementation Reference

  • Registration of the 'cortex_disable_analyzer' tool with the McpServer, defining its name, description, and input schema.
    server.tool(
      "cortex_disable_analyzer",
      "Disable (remove) an enabled analyzer from the current organization",
      {
        analyzerId: z
          .string()
          .describe("The enabled analyzer's ID (the internal ID from cortex_list_analyzers, not the definition ID)"),
      },
      async ({ analyzerId }) => {
        try {
          await client.deleteAnalyzer(analyzerId);
          return {
            content: [
              {
                type: "text" as const,
                text: `Analyzer "${analyzerId}" has been disabled and removed from the organization.`,
              },
            ],
          };
        } catch (error) {
          return {
            content: [
              {
                type: "text" as const,
                text: `Error disabling analyzer: ${error instanceof Error ? error.message : String(error)}`,
              },
            ],
            isError: true,
          };
        }
      },
    );
  • Handler for 'cortex_disable_analyzer'. Calls client.deleteAnalyzer(analyzerId) and returns success/error content.
    async ({ analyzerId }) => {
      try {
        await client.deleteAnalyzer(analyzerId);
        return {
          content: [
            {
              type: "text" as const,
              text: `Analyzer "${analyzerId}" has been disabled and removed from the organization.`,
            },
          ],
        };
      } catch (error) {
        return {
          content: [
            {
              type: "text" as const,
              text: `Error disabling analyzer: ${error instanceof Error ? error.message : String(error)}`,
            },
          ],
          isError: true,
        };
      }
    },
  • Input schema for 'cortex_disable_analyzer': requires analyzerId (string) describing the enabled analyzer's internal ID.
    "Disable (remove) an enabled analyzer from the current organization",
    {
      analyzerId: z
        .string()
        .describe("The enabled analyzer's ID (the internal ID from cortex_list_analyzers, not the definition ID)"),
    },
  • Client method deleteAnalyzer that sends a DELETE request to /analyzer/{analyzerId}.
    async deleteAnalyzer(analyzerId: string): Promise<void> {
      await this.request<void>(
        `/analyzer/${encodeURIComponent(analyzerId)}`,
        { method: "DELETE" },
      );
    }
  • src/index.ts:40-44 (registration)
    Top-level registration call registerAnalyzerDefinitionTools(server, client) which registers the tool.
    registerAnalyzerDefinitionTools(server, client);
    registerResponderDefinitionTools(server, client);
    registerStatusTools(server, client);
    registerOrganizationTools(server, client);
    registerUserTools(server, client);
Behavior3/5

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

With no annotations, the description carries the transparency burden. It clarifies the action (disable/remove) and scope, but lacks details on side effects or required state (e.g., analyzer must be enabled).

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?

Single sentence with no wasted words, perfectly front-loaded with the core action.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (one required parameter, no output schema), the description adequately covers the purpose and scope. Minor gap: no mention of error scenarios or prerequisites, but sufficient for a single-param mutation.

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% and already explains the parameter fully. The tool description adds no additional meaning beyond the schema.

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 verb 'disable (remove)' and the resource 'enabled analyzer' with scope 'current organization', distinguishing it from siblings like cortex_enable_analyzer and cortex_list_analyzers.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage (disable an enabled analyzer) but does not explicitly state when to use vs alternatives, nor does it mention prerequisites or exclusions.

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/solomonneas/cortex-mcp'

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