Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Debug Project

debug_project
Destructive

Builds a project then runs it only if the build succeeds, returning both phases plus a likely root cause from the first error line to speed troubleshooting.

Instructions

Two-phase diagnostics: build the project, and if the build succeeds run the program. Returns both phases plus a heuristic likely-root-cause derived from the first error line.

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

Input Schema

NameRequiredDescriptionDefault
argsNoArguments passed to the run command.
pathNoProject directory relative to the workspace root (default ".").
timeoutMsNoTimeout in milliseconds per phase.
runCommandNoCommand used to run the program after a successful build.
buildCommandNoExplicit build command (defaults to auto-detection).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/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 covered; the description adds genuinely new behavior in the conditional second phase and the 'heuristic likely-root-cause' output. It does not, however, warn that executing the program can have side effects or that the build may write artifacts, which is the one behavioral fact an agent most needs here beyond the flag.

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 with the two-phase structure front-loaded and no filler. It packs phase gating and return contents efficiently; only minor density (three clauses chained) keeps it from being maximally scannable.

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 carries the return-value burden and does so: both phases plus a heuristic root cause derived from the first error line. It also clarifies the failure path implicitly (phase 2 only on success). Missing is any statement of what is written or altered on disk, which matters given destructiveHint=true.

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% and every parameter (path, buildCommand, runCommand, args, timeoutMs) is documented in the schema. The description only alludes to buildCommand/runCommand through 'build the project' and 'run the program', adding no format, precedence, or auto-detection detail beyond the schema — baseline 3.

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 and resource ('build the project, and if the build succeeds run the program') and frames it as 'Two-phase diagnostics', which distinguishes it from a plain build-only sibling without naming one. The scope is unambiguous, though it never states the diagnostic domain it targets beyond build/run failures.

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: the phase-gating sentence suggests it is the tool to reach for when you want to both compile and execute in one call. There is no explicit 'use this when...' nor any guidance on when to prefer build_project or another diagnostics tool instead.

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