Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Analyze source for a hypothesis

source_vulnerability_analyze
Read-onlyIdempotent

Analyzes a single source file using static pattern matching to identify potential vulnerabilities, optionally focusing on a recorded hypothesis's vulnerability class; findings are heuristic and labelled.

Instructions

Static, pattern-based analysis of a single source file. Optionally narrows to the vulnerability class of a previously recorded hypothesis. Findings are heuristic and clearly labelled.

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": {
      "filePath": "<filePath>"
    },
    "name": "source_vulnerability_analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathYesPath to the artifact, relative to the authorized workspace root.
maxBytesNoMaximum bytes to read from the artifact.
hypothesisIdNoOptional hypothesis id to focus the analysis on its vulnerability class.

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 that this is a read-only, idempotent, non-destructive operation. The description adds useful behavioral context by stating that the analysis is static, pattern-based, heuristic, and that findings are clearly labelled.

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 compact and front-loaded, identifying the analysis type first and then the optional hypothesis behavior and heuristic nature. Every sentence contributes relevant information without repetition.

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 simple single-file analysis tool with full schema coverage and annotations describing its safety profile, the description is largely complete. It does not describe the result format, but no output schema is present and the heuristic/labelling caveat gives sufficient expectation.

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 schema already documents filePath, maxBytes, and hypothesisId. The description reinforces that hypothesisId narrows analysis to a previously recorded hypothesis's vulnerability class, but adds little beyond the schema's own wording.

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 states a specific verb and resource: static, pattern-based analysis of a single source file. It clearly implies a source-code scope versus binary or firmware siblings, but does not explicitly distinguish itself from related tools such as source_review or other vulnerability analyzers.

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 through the phrase 'single source file' and the optional hypothesis narrowing, but there is no explicit guidance on when to choose this tool over alternatives. No when-not-to-use conditions or prerequisites are stated.

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