Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Repository Search

repository_search
Read-onlyIdempotent

Search file contents recursively across a repository to locate matching file, line, and column hits using literal or regex queries, with path and glob filters. Read-only.

Instructions

Recursively search file contents across the repository and return matching file/line/column hits. Read-only.

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": {
      "query": "<query>"
    },
    "name": "repository_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
globNoGlob filter on relative paths, e.g. "src/**/*.ts".
pathNoDirectory relative to the workspace root (default ".").
limitNoMaximum matches (default 50).
queryYesLiteral text or regular expression to search for.
regexNoTreat query as a regular expression.
caseSensitiveNoCase-sensitive matching (default false).

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 'Read-only' merely restates structured data. The description does add useful behavior beyond that: recursion across the repo and the file/line/column result granularity. It omits ordering, truncation/limit behavior when many hits exist, and whether ignore files are respected.

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 short sentences with zero waste; the core action and scope are front-loaded and the read-only note trails as a secondary qualifier.

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 6-parameter, fully documented search tool with no output schema, the definition covers action, scope and result granularity. Minor gaps remain around limit/truncation behavior and how the filters compose, but nothing blocks a correct call.

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 coverage is 100%, with per-parameter descriptions for glob, path, limit, query, regex and caseSensitive, so the baseline is 3. The description adds no extra semantics (e.g. whether regex and query interact, or how glob and path combine) beyond what the schema states.

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 ('Recursively search') and resource ('file contents across the repository') plus the return shape (file/line/column hits). It implicitly separates itself from content-agnostic siblings like symbol_search by scoping to file contents, though it never names an alternative explicitly.

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 or when-not-to-use guidance and no mention of alternative tools such as symbol_search or knowledge_search. 'Recursively ... across the repository' hints at scope, but an agent gets no criteria for choosing this tool over its many search siblings.

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