Skip to main content
Glama

misp_list_sharing_groups

List MISP sharing groups to control event distribution and manage access permissions.

Instructions

List MISP sharing groups for controlled event distribution

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The MCP tool handler for 'misp_list_sharing_groups' - calls client.listSharingGroups() and formats the response as JSON text.
    server.tool(
      "misp_list_sharing_groups",
      "List MISP sharing groups for controlled event distribution",
      {},
      async () => {
        try {
          const groups = await client.listSharingGroups();
    
          if (groups.length === 0) {
            return {
              content: [
                {
                  type: "text",
                  text: "No sharing groups configured.",
                },
              ],
            };
          }
    
          const summary = groups.map((g) => ({
            id: g.id,
            name: g.name,
            description: g.description,
            uuid: g.uuid,
            releasability: g.releasability,
            active: g.active,
            org_count: g.org_count,
          }));
    
          return {
            content: [{ type: "text", text: JSON.stringify(summary, null, 2) }],
          };
        } catch (err) {
          return {
            content: [
              {
                type: "text",
                text: `Error listing sharing groups: ${err instanceof Error ? err.message : String(err)}`,
              },
            ],
            isError: true,
          };
        }
      }
    );
  • TypeScript interface MispSharingGroup defining the shape of sharing group objects (id, name, description, uuid, releasability, active, org_count).
    export interface MispSharingGroup {
      id: string;
      name: string;
      description: string;
      uuid: string;
      releasability: string;
      active: boolean;
      org_count: number;
    }
  • Registration of the tool on the McpServer via server.tool() with name 'misp_list_sharing_groups', description, empty schema input, and async handler.
    // List sharing groups
    server.tool(
      "misp_list_sharing_groups",
      "List MISP sharing groups for controlled event distribution",
      {},
      async () => {
        try {
          const groups = await client.listSharingGroups();
    
          if (groups.length === 0) {
            return {
              content: [
                {
                  type: "text",
                  text: "No sharing groups configured.",
                },
              ],
            };
          }
    
          const summary = groups.map((g) => ({
            id: g.id,
            name: g.name,
            description: g.description,
            uuid: g.uuid,
            releasability: g.releasability,
            active: g.active,
            org_count: g.org_count,
          }));
    
          return {
            content: [{ type: "text", text: JSON.stringify(summary, null, 2) }],
          };
        } catch (err) {
          return {
            content: [
              {
                type: "text",
                text: `Error listing sharing groups: ${err instanceof Error ? err.message : String(err)}`,
              },
            ],
            isError: true,
          };
        }
      }
    );
  • The client method listSharingGroups() that performs the GET request to /sharing_groups API endpoint and maps the response to MispSharingGroup[].
    async listSharingGroups(): Promise<MispSharingGroup[]> {
      const data = await this.request<{
        response: Array<{ SharingGroup: MispSharingGroup }>;
      }>("GET", "/sharing_groups");
      return (data.response || []).map((g) => g.SharingGroup);
    }
Behavior3/5

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

No annotations provided, so description carries burden. It indicates a read operation ('list') but lacks details on permissions, return format, or pagination. For a tool with no parameters, basic transparency is adequate.

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

Conciseness4/5

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

Single sentence, no wasted words. Could be improved with structure (e.g., bullet points) but is appropriately concise.

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?

No output schema, so description should explain return values or behavior. It does not. However, for a simple list tool with no parameters, the description is minimally complete.

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?

No parameters defined, so baseline for zero parameters is 4. The description adds context ('for controlled event distribution') that clarifies the parameter-less nature.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description states 'List MISP sharing groups for controlled event distribution', which clearly identifies the action and resource. It adds context about the purpose, but does not explicitly differentiate from other list tools like 'misp_list_tags' or 'misp_list_feeds'.

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 guidance on when to use this tool versus alternatives or any prerequisites. The description is purely functional with no context on when listing sharing groups is appropriate.

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