Skip to main content
Glama

cortex_list_analyzers

List all enabled analyzers for observable analysis, filterable by data type like IP, domain, or hash.

Instructions

List all enabled analyzers, optionally filtered by data type

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataTypeNoFilter by supported data type (ip, domain, hash, url, file, mail, fqdn, etc.)

Implementation Reference

  • The handler function for cortex_list_analyzers: fetches all enabled analyzers via client.listAnalyzers(), optionally filters by dataType, maps to a summary (id, name, version, description, dataTypes), and returns JSON.
      async ({ dataType }) => {
        try {
          let analyzers = await client.listAnalyzers();
    
          if (dataType) {
            analyzers = analyzers.filter((a) =>
              a.dataTypeList.includes(dataType),
            );
          }
    
          const summary = analyzers.map((a) => ({
            id: a.id,
            name: a.name,
            version: a.version,
            description: a.description,
            dataTypes: a.dataTypeList,
          }));
    
          return {
            content: [
              {
                type: "text" as const,
                text: JSON.stringify(summary, null, 2),
              },
            ],
          };
        } catch (error) {
          return {
            content: [
              {
                type: "text" as const,
                text: `Error listing analyzers: ${error instanceof Error ? error.message : String(error)}`,
              },
            ],
            isError: true,
          };
        }
      },
    );
  • Input schema for cortex_list_analyzers: accepts an optional dataType string parameter to filter analyzers by supported data type.
    {
      dataType: z
        .string()
        .optional()
        .describe(
          "Filter by supported data type (ip, domain, hash, url, file, mail, fqdn, etc.)",
        ),
    },
  • Registration of the cortex_list_analyzers tool on the MCP server via server.tool() within the registerAnalyzerTools function.
    server.tool(
      "cortex_list_analyzers",
      "List all enabled analyzers, optionally filtered by data type",
      {
        dataType: z
          .string()
          .optional()
          .describe(
            "Filter by supported data type (ip, domain, hash, url, file, mail, fqdn, etc.)",
          ),
      },
      async ({ dataType }) => {
        try {
          let analyzers = await client.listAnalyzers();
    
          if (dataType) {
            analyzers = analyzers.filter((a) =>
              a.dataTypeList.includes(dataType),
            );
          }
    
          const summary = analyzers.map((a) => ({
            id: a.id,
            name: a.name,
            version: a.version,
            description: a.description,
            dataTypes: a.dataTypeList,
          }));
    
          return {
            content: [
              {
                type: "text" as const,
                text: JSON.stringify(summary, null, 2),
              },
            ],
          };
        } catch (error) {
          return {
            content: [
              {
                type: "text" as const,
                text: `Error listing analyzers: ${error instanceof Error ? error.message : String(error)}`,
              },
            ],
            isError: true,
          };
        }
      },
    );
  • src/index.ts:34-34 (registration)
    Top-level entry point where registerAnalyzerTools (which registers cortex_list_analyzers) is called in the application main().
    registerAnalyzerTools(server, client);
  • CortexClient helper method that makes an HTTP GET request to /api/analyzer to fetch the list of enabled analyzers from the Cortex API.
    async listAnalyzers(): Promise<Analyzer[]> {
      return this.request<Analyzer[]>("/analyzer");
    }
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavior. It only states 'list all enabled analyzers' without mentioning pagination, ordering, or any limits. The agent cannot determine if the list is complete or paginated.

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 sentence with no wasted words. It is front-loaded with the core action and resource, then adds the optional filter. Perfectly concise for a simple list tool.

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?

Despite low complexity, the description lacks information about the output format. No output schema is provided, and the description does not explain what fields each analyzer object contains, leaving the agent to guess the response structure.

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% for the single parameter, so baseline is 3. The tool description only reiterates the parameter's purpose ('optional filter by data type'), adding no new semantic information 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 'List', the resource 'enabled analyzers', and the optional filter 'by data type'. This distinguishes it from sibling tools like cortex_get_analyzer (single) and cortex_list_analyzer_definitions (definitions).

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 for enumeration but provides no explicit guidance on when to use this tool versus alternatives like cortex_get_analyzer or cortex_list_analyzer_definitions. No when-not-to-use information is given.

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