Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Generate a non-destructive validation test

safe_validation_generate
Destructive

Generates non-destructive validation tests for a vulnerability class and writes a workspace regression test that exercises local functions with boundary or malformed inputs to assert defensive behavior.

Instructions

Generate a NON-destructive validation/regression test for a vulnerability CLASS (e.g. buffer-overflow, command-injection, auth-bypass) in python/c/typescript/bash, and write it into the workspace. The test exercises a LOCAL function with boundary/malformed inputs and asserts defensive behaviour. It never produces a weaponised exploit or a network launcher.

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": {
      "outputPath": "<outputPath>",
      "vulnClass": "<vulnClass>",
      "targetDescription": "<targetDescription>"
    },
    "name": "safe_validation_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
languageNoDefaults to the outputPath extension.
vulnClassYesVulnerability class, e.g. "buffer-overflow", "command-injection", "auth-bypass".
outputPathYesWorkspace-relative path to write the test to.
targetDescriptionYesHuman description of the local function/component under test.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, and the description corroborates the write by saying the test is written into the workspace, so there is no contradiction despite the 'NON-destructive' phrasing (which refers to the generated test, not the file write). It adds real substance beyond the annotations: the local-only scope, the defensive-assertion nature of the output, and an explicit prohibition on weaponised exploits or network launchers. It stops short of saying whether an existing file at outputPath is overwritten or how failures are reported.

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 sentences, both earning their place. The primary purpose and artifact are front-loaded, followed immediately by the safety boundary, with no restatement of the tool name or filler.

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?

The definition covers intent, scope, and safety limits well, but there is no output schema and the description never says what a successful call returns (file path? generated test body? counts?) or how it behaves when the path already exists. For a write-producing tool with four parameters, that leaves a meaningful hole in what an agent needs before invoking it.

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 the four parameters and the language enum are already documented in structured form, setting the baseline at 3. The description reinforces the vulnClass notion (naming example classes and the supported language set) and stresses that targetDescription concerns a LOCAL function, but it adds no syntax, format, or constraint detail beyond what the schema states.

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 gives a specific verb and artifact ("Generate a NON-destructive validation/regression test"), the input it works from (a vulnerability CLASS such as buffer-overflow or command-injection), the supported languages, and the effect ("write it into the workspace"). An agent can tell this produces a defensive local test rather than an exploit, which separates it conceptually from siblings like fuzz_harness_generate, but no sibling is named to make the boundary explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the applicable context clearly: a local function under test, boundary/malformed inputs, assertions on defensive behaviour. It also carves out a negative boundary by saying it 'never produces a weaponised exploit or a network launcher', which effectively tells the agent when this tool is the wrong choice. The gap is that it does not route the agent to a named alternative (e.g. fuzz_harness_generate or regression_test) when a harness or plain regression test is actually wanted.

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