Skip to main content
Glama

misp_fetch_feed

Fetch threat intelligence from a specified MISP feed by providing its feed ID to update local data.

Instructions

Trigger a fetch/pull of data from a specific MISP feed

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
feedIdYesFeed ID to fetch

Implementation Reference

  • Tool handler for 'misp_fetch_feed' - triggers a fetch/pull of data from a specific MISP feed by calling client.fetchFeed(feedId)
    server.tool(
      "misp_fetch_feed",
      "Trigger a fetch/pull of data from a specific MISP feed",
      {
        feedId: z.string().describe("Feed ID to fetch"),
      },
      async ({ feedId }) => {
        try {
          const result = await client.fetchFeed(feedId);
          return {
            content: [
              {
                type: "text",
                text: result.message || `Feed ${feedId} fetch initiated.`,
              },
            ],
          };
        } catch (err) {
          return {
            content: [
              {
                type: "text",
                text: `Error fetching feed: ${err instanceof Error ? err.message : String(err)}`,
              },
            ],
            isError: true,
          };
        }
      }
    );
  • Input schema for misp_fetch_feed: requires a feedId string parameter
      {
        feedId: z.string().describe("Feed ID to fetch"),
      },
      async ({ feedId }) => {
        try {
          const result = await client.fetchFeed(feedId);
          return {
            content: [
              {
                type: "text",
                text: result.message || `Feed ${feedId} fetch initiated.`,
              },
            ],
          };
        } catch (err) {
          return {
            content: [
              {
                type: "text",
                text: `Error fetching feed: ${err instanceof Error ? err.message : String(err)}`,
              },
            ],
            isError: true,
          };
        }
      }
    );
  • Tool registration via server.tool() inside registerFeedTools(), which is called from src/index.ts:40
    server.tool(
      "misp_fetch_feed",
      "Trigger a fetch/pull of data from a specific MISP feed",
      {
        feedId: z.string().describe("Feed ID to fetch"),
      },
      async ({ feedId }) => {
        try {
          const result = await client.fetchFeed(feedId);
          return {
            content: [
              {
                type: "text",
                text: result.message || `Feed ${feedId} fetch initiated.`,
              },
            ],
          };
        } catch (err) {
          return {
            content: [
              {
                type: "text",
                text: `Error fetching feed: ${err instanceof Error ? err.message : String(err)}`,
              },
            ],
            isError: true,
          };
        }
      }
    );
  • MispClient.fetchFeed() - Makes a GET request to /feeds/fetchFromFeed/{feedId} on the MISP API
    async fetchFeed(feedId: string): Promise<{ message: string }> {
      return this.request<{ message: string }>(
        "GET",
        `/feeds/fetchFromFeed/${encodeId(feedId, "feedId")}`
      );
    }
  • Helper function encodeId that sanitizes the feed ID before including it in the URL path, preventing URL manipulation attacks
    function encodeId(id: string, kind = "id"): string {
      if (!ID_PATTERN.test(id)) {
        throw new Error(`Invalid ${kind}: ${JSON.stringify(id)}`);
      }
      return encodeURIComponent(id);
    }
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It only says 'fetch/pull of data' without indicating whether it is read-only or destructive, required permissions, side effects (e.g., network calls), or return behavior. This is insufficient for an agent to understand implications.

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, well-structured sentence (12 words) that is front-loaded with the action. No extraneous information.

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

Completeness3/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 is minimally adequate. However, it lacks context on what the fetch entails (e.g., immediate effect, synchronous vs. asynchronous) and how it differs from sibling tools like misp_cache_feed. Slightly more detail would be beneficial.

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 coverage is 100% for the single parameter feedId, and the schema already describes it as 'Feed ID to fetch'. The tool description adds no additional meaning beyond what the schema provides, meeting the baseline for high coverage.

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 ('Trigger a fetch/pull') and the resource ('data from a specific MISP feed'). It distinguishes itself from siblings like misp_list_feeds (list), misp_cache_feed (cache), and misp_toggle_feed (toggle).

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 (to fetch data from a feed) but provides no explicit guidance on when to use this versus alternatives, nor any prerequisites or exclusions. It is functional but lacks comparative context.

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