Skip to main content
Glama

misp_list_object_templates

Browse MISP object templates (file, domain-ip, email, etc.) with optional name filter and result limit.

Instructions

List available MISP object templates (file, domain-ip, email, network-connection, etc.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
searchNoFilter templates by name
limitNoMax results (default 50)

Implementation Reference

  • Handler function for the 'misp_list_object_templates' tool. Takes optional 'search' and 'limit' parameters, calls client.listObjectTemplates(), filters/slices results, and returns formatted JSON.
    server.tool(
      "misp_list_object_templates",
      "List available MISP object templates (file, domain-ip, email, network-connection, etc.)",
      {
        search: z.string().optional().describe("Filter templates by name"),
        limit: z.number().optional().describe("Max results (default 50)"),
      },
      async ({ search, limit }) => {
        try {
          const templates = await client.listObjectTemplates();
          let filtered = templates;
          if (search) {
            const q = search.toLowerCase();
            filtered = templates.filter(
              (t) =>
                t.name.toLowerCase().includes(q) ||
                t.description.toLowerCase().includes(q)
            );
          }
          if (limit && limit > 0) {
            filtered = filtered.slice(0, limit);
          }
    
          if (filtered.length === 0) {
            return {
              content: [{ type: "text", text: "No object templates found." }],
            };
          }
    
          const summary = filtered.map((t) => ({
            id: t.id,
            uuid: t.uuid,
            name: t.name,
            description: t.description,
            version: t.version,
            meta_category: t.meta_category,
          }));
    
          return {
            content: [{ type: "text", text: JSON.stringify(summary, null, 2) }],
          };
        } catch (err) {
          return {
            content: [
              {
                type: "text",
                text: `Error listing object templates: ${err instanceof Error ? err.message : String(err)}`,
              },
            ],
            isError: true,
          };
        }
      }
    );
  • Zod schema for the tool's input parameters: optional 'search' string and optional 'limit' number.
    {
      search: z.string().optional().describe("Filter templates by name"),
      limit: z.number().optional().describe("Max results (default 50)"),
    },
  • src/index.ts:12-12 (registration)
    Import of registerObjectTools in the main server entry point.
    import { registerObjectTools } from "./tools/objects.js";
  • src/index.ts:38-38 (registration)
    Registration call that wires the tools into the MCP server.
    registerObjectTools(server, client);
  • Client helper method that makes the HTTP GET request to /objectTemplates endpoint and maps the response.
    async listObjectTemplates(): Promise<MispObjectTemplate[]> {
      const data = await this.request<
        Array<{ ObjectTemplate: MispObjectTemplate }>
      >("GET", "/objectTemplates");
      return (data || []).map((t) => t.ObjectTemplate);
    }
Behavior2/5

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

With no annotations provided, the description must fully convey behavioral traits. It does not disclose important details such as whether the operation is read-only, what the response format is (e.g., list of template names with IDs), whether pagination is supported beyond the 'limit' parameter, or any authentication requirements. The examples hint at the types of templates but leave many behavioral aspects undefined.

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 that is direct and free of superfluous information. It includes useful examples without becoming verbose. Every word earns its place, making it highly concise and easy to parse.

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?

Given no annotations and no output schema, the description should provide a more complete picture of the tool's behavior. It lacks information about the response structure, default limit of 50, error handling, or any usage constraints. For a list tool, understanding the output format is critical for the agent to properly process results.

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?

The input schema has 100% coverage: both 'search' and 'limit' are described. The description does not add new parameter details but the examples of template types indirectly aid understanding of the 'search' filter. Since schema coverage is high, the baseline is 3, and the description does not significantly enhance parameter semantics.

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 uses the verb 'List' to clearly indicate the action, specifies the resource as 'available MISP object templates', and provides concrete examples (file, domain-ip, email, network-connection) that help the agent understand the scope. This distinguishes it from sibling tools like misp_get_object_template, which retrieves a single template.

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 is given on when to use this tool versus alternatives. For instance, it does not mention that for a specific template, misp_get_object_template should be used instead. The description implicitly suggests using this tool to browse available templates, but lacks explicit context or exclusion criteria.

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