Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Repository Analyze

repository_analyze
Read-onlyIdempotent

Statically summarize a repository: languages by extension, build systems, entry points, file and byte totals, largest files, and TODO/FIXME markers. Read-only; use it to map unfamiliar codebases quickly.

Instructions

Statically summarize a repository: languages by extension, build systems, entry points, file/byte totals, largest files and TODO/FIXME markers. 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": "repository_analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoDirectory relative to the workspace root (default ".").
maxFilesNoMaximum files to walk.

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 readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the trailing 'Read-only' adds nothing. What the description does add is that analysis is static (no build/execution), which is genuinely useful. It omits relevant cost/behavior facts for a tool that may walk up to 200,000 files: no note on latency, and no note on whether results are truncated when maxFiles is hit.

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?

One front-loaded sentence with a colon-delimited enumeration that is easy to scan; every element describes a real output category. The only wasted fragment is the trailing 'Read-only', which merely repeats the annotations.

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 read-only analysis tool with no output schema, enumerating the result categories in the description does the work the missing output schema would have done. Remaining gaps are modest: no note on truncation when maxFiles is exceeded and no structured description of how results are laid out.

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 both parameters (path, maxFiles) are already fully documented with defaults and bounds. The description adds no syntax or semantics for either, though 'largest files' and 'file/byte totals' hint that maxFiles affects the completeness of the summary. Baseline 3 applies.

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?

States a specific verb ('Statically summarize') and resource ('a repository'), then enumerates exactly what is produced: languages by extension, build systems, entry points, file/byte totals, largest files, TODO/FIXME markers. An agent knows precisely what it gets back. It does not distinguish itself from the closest sibling, repository_search, which leaves some ambiguity about which to pick.

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 enumerated summary contents signal 'use this to get an overview of a repo' and 'Statically' signals no code is executed. There is no explicit when-to-use statement, no mention of when to prefer repository_search for targeted lookups instead of a whole-repo summary, and no stated prerequisites.

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