Skip to main content
Glama
reflex-search

Reflex

Official

find_islands

Find groups of files that are isolated from the rest of the codebase to identify disconnected subsystems and potential code splitting opportunities.

Instructions

Find disconnected components (islands) in the dependency graph.

Purpose: Identify groups of files that are isolated from the rest of the codebase (no dependencies between groups).

Pagination: Default limit of 200 results per page. Check response.pagination.has_more to fetch more pages.

Sorting: Default order is descending (largest islands first). Use sort parameter to change.

Returns: Object with pagination metadata and array of islands, where each island contains multiple file paths that depend on each other.

Use this when:

  • Identifying isolated subsystems

  • Understanding codebase modularity

  • Finding potential code splitting opportunities

  • Detecting disconnected feature modules

IMPORTANT: Only considers static imports (string literals). Dynamic imports are filtered. See CLAUDE.md section "Dependency/Import Extraction" for details.

Size filtering: Use min_island_size and max_island_size to filter by component size. Default: 2-500 files (or 50% of total files).

Example output: {"pagination": {...}, "results": [{"island_id": 1, "size": 5, "paths": ["a.rs", "b.rs", "c.rs", "d.rs", "e.rs"]}]}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of islands per page (default: 200)
max_island_sizeNoMaximum files in an island to include (default: 500 or 50% of total files)
min_island_sizeNoMinimum files in an island to include (default: 2)
offsetNoPagination offset (skip first N islands). Use with limit for pagination.
sortNoSort order: 'asc' (smallest islands first) or 'desc' (largest islands first, default)
Behavior4/5

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

No annotations exist, so description carries full burden. Discloses pagination (default 200, has_more), sorting, size filtering defaults, static-import limitation, and example output. Does not cover permissions or rate limits, but sufficient for the tool's nature.

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?

Well-structured with clear header, bullet lists, bolded notes, and an example. Every sentence adds value; no fluff. Purpose and key details are front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite no output schema, description includes an explicit example output and explains response structure. Covers pagination, sorting, filtering, and an important constraint. For a 5-param tool, this is thorough and self-contained.

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 covers 100% of parameters with descriptions. Description adds value by explaining defaults (limit=200, min=2, max=500/50%), sort order, and offset usage contextually, exceeding baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states 'Find disconnected components (islands) in the dependency graph' with a specific verb and resource. It distinguishes from sibling tools like find_circular or find_hotspots by focusing on isolation.

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

Usage Guidelines4/5

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

Provides a dedicated 'Use this when:' section listing four specific scenarios. Lacks explicit 'when not to use' or direct comparisons to alternatives, but the listed use cases are clear and actionable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/reflex-search/reflex'

If you have feedback or need assistance with the MCP directory API, please join our Discord server