Skip to main content
Glama

misp_check_warninglists

Identify if an observable value appears on MISP warninglists of known benign indicators to prevent false positives.

Instructions

Check if an observable value appears on any MISP warninglists (known benign/false positive lists)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYesValue to check against warninglists (IP, domain, hash, etc.)

Implementation Reference

  • The async handler function that executes the tool logic. It calls client.checkWarninglists(value), processes the response, and returns formatted output about whether the value appears on any warninglists.
      async ({ value }) => {
        try {
          const results = await client.checkWarninglists(value);
    
          // The API returns a map of value -> matching warninglists
          const matches = results[value] || [];
    
          if (matches.length === 0) {
            return {
              content: [
                {
                  type: "text",
                  text: `"${value}" does not appear on any warninglists. This does not confirm it is malicious, but it is not a known benign indicator.`,
                },
              ],
            };
          }
    
          const summary = matches.map((w) => ({
            name: w.name,
            category: w.category,
            description: w.description,
            type: w.type,
          }));
    
          return {
            content: [
              {
                type: "text",
                text: JSON.stringify(
                  {
                    value,
                    on_warninglists: true,
                    match_count: matches.length,
                    warninglists: summary,
                    note: "This value appears on known benign/false positive lists. Exercise caution before treating it as malicious.",
                  },
                  null,
                  2
                ),
              },
            ],
          };
        } catch (err) {
          return {
            content: [
              { type: "text", text: `Error checking warninglists: ${err instanceof Error ? err.message : String(err)}` },
            ],
            isError: true,
          };
        }
      }
    );
  • Zod schema defining the input: a 'value' string (IP, domain, hash, etc.) to check against warninglists.
    {
      value: z.string().describe("Value to check against warninglists (IP, domain, hash, etc.)"),
  • The registration function registerWarninglistTools that registers the tool via server.tool() with name 'misp_check_warninglists'. Called from src/index.ts line 37.
    export function registerWarninglistTools(server: McpServer, client: MispClient): void {
      server.tool(
        "misp_check_warninglists",
        "Check if an observable value appears on any MISP warninglists (known benign/false positive lists)",
        {
          value: z.string().describe("Value to check against warninglists (IP, domain, hash, etc.)"),
        },
        async ({ value }) => {
          try {
            const results = await client.checkWarninglists(value);
    
            // The API returns a map of value -> matching warninglists
            const matches = results[value] || [];
    
            if (matches.length === 0) {
              return {
                content: [
                  {
                    type: "text",
                    text: `"${value}" does not appear on any warninglists. This does not confirm it is malicious, but it is not a known benign indicator.`,
                  },
                ],
              };
            }
    
            const summary = matches.map((w) => ({
              name: w.name,
              category: w.category,
              description: w.description,
              type: w.type,
            }));
    
            return {
              content: [
                {
                  type: "text",
                  text: JSON.stringify(
                    {
                      value,
                      on_warninglists: true,
                      match_count: matches.length,
                      warninglists: summary,
                      note: "This value appears on known benign/false positive lists. Exercise caution before treating it as malicious.",
                    },
                    null,
                    2
                  ),
                },
              ],
            };
          } catch (err) {
            return {
              content: [
                { type: "text", text: `Error checking warninglists: ${err instanceof Error ? err.message : String(err)}` },
              ],
              isError: true,
            };
          }
        }
      );
  • The client helper method checkWarninglists() that sends a POST request to /warninglists/checkValue with the value to check.
    async checkWarninglists(value: string): Promise<WarninglistCheckResponse> {
      return this.request<WarninglistCheckResponse>(
        "POST",
        "/warninglists/checkValue",
        [value]
      );
    }
  • The MispWarninglistMatch interface defining the structure of a warninglist match, and the WarninglistCheckResponse type (line 235-237) mapping values to arrays of matches.
    export interface MispWarninglistMatch {
      id: string;
      name: string;
      type: string;
      description: string;
      category: string;
      warninglist_entry_count: string;
    }
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It only states the tool checks warninglists but does not mention return format, error handling, or whether it is a read-only operation. The description leaves the agent uninformed about key behaviors.

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, front-loaded sentence with no wasted words. Every word contributes to understanding the tool's purpose.

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?

For a simple tool with one parameter and no output schema, the description is relatively complete. It explains warninglists and the action. However, it omits details on output format, which would be helpful for an agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, providing a baseline of 3. The description adds value by giving example types for the 'value' parameter (IP, domain, hash, etc.), which enriches the schema's generic 'Value to check against warninglists' description.

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 tool's purpose: checking an observable value against MISP warninglists (known benign/false positives). It uses a specific verb ('check') and resource ('warninglists'), and the mention of warninglists distinguishes it from sibling tools that add or search attributes.

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 (checking known benign lists), but does not explicitly state when to use this tool versus alternatives like misp_search_attributes or misp_add_sighting. No when-not-to-use or alternative guidance is provided.

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/misp-mcp'

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