> ## Documentation Index
> Fetch the complete documentation index at: https://docs.the40thieves.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# graph_communities

> Community detection over the persisted link graph (Louvain).

Community detection over the persisted link graph (Louvain). Partitions notes into clusters that link to each other more than to the rest of the vault. Deterministic: the same vault and seed always yield the same partition. ALWAYS read `meaningful` — a modularity below 0.3 means the partition is not distinguishable from chance, and presenting those clusters as 'your vault's topics' would be inventing structure. ANALYTICS ONLY, never used for retrieval ranking.

| | |
| - | - |
| **Domain** | links |
| **Scopes** | `read:notes` |
| **Access** | read |
| **Tags** | `read-only`, `domain:links`, `links`, `graph` |
| **Profile** | full only |

## Annotations

| Annotation | Value |
| - | - |
| Read-only | yes |
| Destructive | no |
| Idempotent | no |
| Accepts an idempotency key | no |

`Idempotent` is the advisory MCP `idempotentHint`. `Destructive` is also `yes` for a tool that
asks for confirmation only on some calls.

## Confirmation (human in the loop)

No human confirmation is required to call this tool.

## Input

| Parameter | Type | Required | Default | Description |
| - | - | - | - | - |
| `vault` | `string` | | — | Vault id. May be omitted when only one vault is available. length 1–64; pattern `^[a-z0-9_-]+$` |
| `seed` | `integer` | | `42` | range ≥ -9007199254740991 |
| `min_size` | `integer` | | `1` | range 1–100 |
| `limit` | `integer` | | `20` | range 1–100 |

## Output

| Field | Type | Always present | Description |
| - | - | - | - |
| `vault` | `string` | yes | — |
| `nodes` | `number` | yes | — |
| `modularity` | `number` | yes | — |
| `meaningful` | `boolean` | yes | — |
| `note` | `string` | | — |
| `community_count` | `number` | yes | — |
| `communities` | `object[]` | yes | — |
| `communities[].id` | `number` | yes | — |
| `communities[].paths` | `string[]` | yes | — |

## Related tools

Other tools in the `links` domain: [`find_link_cycles`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/find_link_cycles/), [`find_orphans`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/find_orphans/), [`find_unresolved_links`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/find_unresolved_links/), [`get_backlinks`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/get_backlinks/), [`get_link_strength`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/get_link_strength/), [`get_outgoing_links`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/get_outgoing_links/), [`graph_centrality`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/graph_centrality/), [`graph_path_between`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/graph_path_between/), [`prune_hub_links`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/prune_hub_links/), [`rewrite_link`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/rewrite_link/), [`suggest_links`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/suggest_links/), [`vault_health_score`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/vault_health_score/).

Back to the [tool catalog](https://docs.the40thieves.dev/reliquary-tc/tools/tool-catalog.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.