Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Run Tests

run_tests
Destructive

Execute project test suites in a sandbox using auto-detected runners or a custom command, with pass/fail counts parsed from output.

Instructions

Run the test suite inside the sandbox. The runner is auto-detected (vitest, jest, pytest, cargo test, go test, maven test, gradle test) and pass/fail counts are parsed from the output.

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

Input Schema

NameRequiredDescriptionDefault
argsNoArguments for the explicit command.
pathNoProject directory relative to the workspace root (default ".").
commandNoExplicit test command (overrides auto-detection).
timeoutMsNoTimeout in milliseconds.

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 destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is known. The description usefully adds that the runner is auto-detected across seven frameworks and that pass/fail counts are parsed, but it never explains what makes the call destructive (e.g. generated artifacts, build output being overwritten) or how timeouts behave.

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, zero filler, with the core action front-loaded and the auto-detection detail placed in a compact parenthetical. Every clause carries information an agent would otherwise lack.

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 tool with four optional parameters, no output schema, and destructive annotations, the description covers detection and result parsing but omits destructive side effects, timeout semantics, and failure reporting. It is adequate to invoke correctly but not complete for a destructive operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description goes slightly beyond by implying the auto-detection behavior that the optional `command` parameter overrides. It still does not clarify that `args` only applies alongside an explicit `command` or how `path` interacts with detection, which keeps it short of a 5.

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?

"Run the test suite inside the sandbox" states a specific verb and resource, and the parenthetical enumeration of supported runners makes the scope concrete. It does not explicitly contrast itself with nearby siblings such as build_project, debug_project, or static_analysis_run, so differentiation is left to the agent.

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

Usage Guidelines2/5

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

There is no when-to-use / when-not-to-use guidance and no mention of alternatives like static_analysis_run or build_project when a test run fails. The only contextual hint is "inside the sandbox," which describes location, not selection criteria.

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