Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Search CWE weaknesses

cwe_search
Read-onlyIdempotent

Search a curated CWE table and local knowledge base for IoT/embedded weaknesses like hard-coded credentials, auth bypass, command injection, memory-safety flaws; yields descriptions, defensive themes.

Instructions

Search a curated CWE table of weaknesses relevant to IoT/embedded targets (hard-coded credentials, auth bypass, command injection, memory-safety overflows, traversal and resource exhaustion) and the local knowledge base. Returns descriptions, IoT relevance and defensive themes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cwe_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
cweIdNoExact CWE id, e.g. "CWE-798" or "798".
limitNoMaximum number of results to return.
keywordNoFree-text keyword (name/description/relevance).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this read-only, idempotent, closed-world and non-destructive, so the safety profile is covered. The description adds meaningful behavior beyond that: it queries two corpora (a curated CWE table plus the local knowledge base) and previews the returned fields (descriptions, IoT relevance, defensive themes), which matters since no output schema exists.

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?

Two tight sentences with the search target and scope front-loaded before the return-value clause. The parenthetical example list is long but each item conveys the weakness taxonomy and earns its space; nothing is redundant with the title.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-optional-parameter read tool with no output schema, the description covers the source corpora, the target domain, and the shape of the results, which is what an agent needs to call it correctly and interpret the response. The remaining details (pagination defaults, keyword matching rules) are minor given full schema coverage.

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%, so cweId, keyword and limit are already fully documented; the description adds nothing about precedence when combining cweId with keyword, or how limit interacts with the two data sources. The listed weakness categories loosely illustrate what keyword matches against, but that only marginally exceeds the schema's own 'name/description/relevance' note.

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?

The description names a specific verb and resource ('Search a curated CWE table of weaknesses') and narrows scope to IoT/embedded targets with concrete weakness examples (hard-coded credentials, command injection, memory-safety overflows). It stops short of distinguishing this from sibling search tools such as cve_search or knowledge_search, so an agent must infer the boundary.

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?

Usage is implied by the scope statement 'relevant to IoT/embedded targets' and the enumerated weakness categories, which signal when a CWE lookup is appropriate. There is no explicit when-not guidance and no naming of the alternative search tools (cve_search, advisory_search, knowledge_search) that could be confused with it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools