Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Hunt for vulnerability variants

vulnerability_variant_hunt
Read-onlyIdempotent

Search a source tree for literal or regex pattern matches to locate candidate variants of a known vulnerability and return matching file and line locations.

Instructions

Search a source tree for literal (or optional regex) occurrences of a pattern to find candidate variants of a known vulnerability. Returns matching file/line locations.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "pattern": "<pattern>"
    },
    "name": "vulnerability_variant_hunt"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return.
patternYesLiteral string or regex to hunt for.
patternTypeNoMatch mode. Defaults to literal.
directoryPathNoDirectory to search..

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world scope, so the safety profile is fully covered elsewhere. The description adds the return shape ('matching file/line locations'), which is useful given no output schema, but says nothing about traversal rules, skipping binaries or large trees, or how the limit interacts with results.

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 compact sentences with zero filler; the operation and its purpose are front-loaded, and the return-shape note follows immediately. Nothing is repeated from the schema or annotations.

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?

With no output schema, the description usefully closes the gap by naming what is returned, and the fully documented four-parameter schema plus rich annotations cover the rest. Only search-behavior details (recursion depth, ignored files, how pattern matches are anchored) are left unaddressed.

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%: pattern, patternType (with a literal/regex enum), directoryPath with a default, and limit with bounds are all documented in the schema. The description only echoes the literal-or-regex choice already encoded in the enum, adding no syntax examples or matching semantics beyond the schema.

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 and resource ('Search a source tree') plus the intent ('find candidate variants of a known vulnerability'), so an agent knows exactly what operation this performs. It never distinguishes itself from adjacent siblings such as source_vulnerability_analyze or advisory_search, leaving the boundary implicit.

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 rather than stated: the phrase 'candidate variants of a known vulnerability' suggests this is a follow-up step after a vulnerability is identified. There is no explicit when-to-use, when-not-to-use, or named alternative, so an agent must infer the sequencing.

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