Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Discover candidate vulnerabilities

zero_day_discovery_analyze
Read-onlyIdempotent

Scan workspace source code for vulnerability-class patterns like memory safety, injection, weak crypto, secrets, path traversal, and race conditions; return ranked candidate findings as hypotheses.

Instructions

Scan a workspace source tree for vulnerability-class patterns (memory safety, injection, weak crypto, secrets, path traversal, deserialization, race conditions). Returns ranked candidate findings. Pattern hits are hypotheses, not confirmed vulnerabilities.

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": "zero_day_discovery_analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return.
languageNoRestrict to a language key (c, c++, javascript, python, go, rust, java, php, shell).
directoryPathNoDirectory to scan, relative to the workspace root..

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 establish readOnly, idempotent, non-destructive, closed-world behavior, so the description's real contribution is the false-positive disclosure and the fact that output is ranked candidates rather than verified findings — a genuinely useful calibration cue. It stops short of noting cost, scan duration, or how patterns are matched, which would have raised it further.

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?

Two tight sentences with zero filler: the scan scope and pattern classes come first, and the epistemic caveat lands last where it is most likely to be read. Every clause carries information.

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 read-only tool with full schema coverage, the definition covers purpose, scope, and the reliability of results. Since no output schema exists, a brief indication of what a 'candidate finding' contains (file, line, class, rank) would have made it fully self-contained.

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%, with limit, language, and directoryPath all documented inline including bounds and the default '.'. The description adds no additional parameter meaning (e.g., how ranking interacts with limit, or whether ignored/VCS directories are skipped), so the baseline 3 applies.

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?

States a specific verb ('Scan') and resource ('a workspace source tree') plus the concrete vulnerability classes it looks for (memory safety, injection, weak crypto, secrets, path traversal, deserialization, race conditions). An agent can tell this is broad pattern-based discovery rather than deep single-artifact analysis, though it never names a sibling such as source_vulnerability_analyze to sharpen 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 only implied: the closing caveat that 'Pattern hits are hypotheses, not confirmed vulnerabilities' suggests this is a triage/discovery step feeding deeper analysis, but the description never states when to prefer it over sibling analyzers or what to do with the results. No preconditions, exclusions, or alternative routing are given.

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