Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Source Review

source_review
Read-onlyIdempotent

Statically reviews source files read-only to flag memory-safety smells, injection sinks, weak cryptography, hardcoded secrets, empty catch blocks, unsafe typing, TODOs, and oversized functions.

Instructions

Static review heuristics over source files: memory-safety smells, injection sinks, weak crypto, hardcoded secrets, empty catch blocks, unsafe typing, TODOs and oversized functions. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
pathNoDirectory relative to the workspace root (default ".").
maxFindingsNoMaximum findings (default 200).
relativePathNoReview a single file instead of a directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the trailing 'Read-only.' adds little beyond restating structured data. The description does add the valuable behavioral caveat that results are heuristic ('smells'), implying possible false positives without exploitability confirmation, but it omits scanning limits, runtime/performance characteristics, and how findings are ordered or capped.

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?

A single dense sentence, front-loaded with the action and scope, followed by the check inventory. Every clause identifies a concrete check rather than padding, though the final 'Read-only.' is redundant with the annotations and the long comma list is dense to parse.

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?

For a read-only heuristic scanner with three optional parameters and no output schema, the description covers what is scanned but not what comes back — no indication of findings shape, severity, file/line location, or whether results are ordered. Since there is no output schema, some statement about the return payload would materially help an agent decide whether to call it and how to consume results.

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 path (workspace-relative directory), relativePath (single-file mode), and maxFindings (1-2000, default 200). The description adds no meaning to any of these — notably it never explains directory-vs-single-file mode or that maxFindings caps output. Baseline 3 applies since the schema carries the load.

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 ('static review heuristics') and resource ('source files') and enumerates the exact categories checked (memory-safety smells, injection sinks, weak crypto, secrets, empty catch blocks, unsafe typing, TODOs, oversized functions), so an agent knows precisely what it produces. It does not, however, differentiate itself from close siblings such as source_vulnerability_analyze or code_quality_report, whose names suggest overlapping scope.

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: 'static review heuristics' hints at a lightweight, pattern-based pass as opposed to deeper analysis, but the description never says when to pick this over source_vulnerability_analyze or code_quality_report, and it gives no exclusions or prerequisites. An agent must infer the trade-off from the word 'heuristics' alone.

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