Skip to main content
Glama

Connect related-but-unlinked brain cards (densify the graph)

brain_connect

Repair orphaned decision and milestone cards by proposing genuinely related unlinked card pairs. Optionally draw the suggested connections to reconnect isolated cards in the canvas.

Instructions

Repairs orphaned decision/milestone cards first (scope:"orphans", the default) by proposing genuinely related unlinked pairs — semantic similarity at a conservative 0.55 threshold when the on-device model is installed, else shared tags + [[mentions]]. The dry run includes a before→projected orphan receipt; apply:true draws only additive, removable arrows and reports the measured after count. It NEVER archives or rewrites cards. Use scope:"all" for deliberate whole-graph densification. To DISMISS a brain_reconcile false-positive contradiction, pass pairs:[{fromId,toId}] with relationship:"not_contradiction".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxNoMax connections to propose/draw (default 24).
applyNofalse (default) = suggest only; true = draw the connections.
pairsNoExplicit card-id pairs to connect (bypasses auto-proposal). Use to dismiss a reconcile false-positive: pass the two card ids with relationship:"not_contradiction".
scopeNo"orphans" (default) repairs isolated decision/milestone cards; "all" proposes across every live card.
canvasNoCanvas filename/path. Defaults to the project brain ("brain").
thresholdNoMin semantic similarity 0–1. Default 0.55 for orphan repair; 0.45 for scope:"all". Higher = fewer, tighter links.
relationshipNoRelationship for explicit `pairs` (e.g. "not_contradiction" to permanently dismiss a contradiction candidate, or "relates_to", "depends_on", "supports").

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so strongly. It discloses that the tool never archives or rewrites cards, that apply:true draws only additive and removable arrows, and that dry runs produce a before→projected receipt. This gives an agent a clear safety and side-effect profile beyond the schema.

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?

The description is dense but every sentence earns its place. It front-loads the default behavior, then explains the dry-run/apply effect, safety guarantees, scope alternative, and the reconciliation dismissal workflow. The structure is logical and efficient with no filler.

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?

Given 7 parameters, no output schema, and no annotations, the description is remarkably complete. It covers the primary workflow, the apply behavior, the safety boundary, the special scope option, and the cross-tool integration with brain_reconcile. The only minor gap is the exact response structure beyond the mentioned receipt and count, but this is not critical for correct invocation.

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 coverage is 100%, so the baseline is 3. The description adds meaningful beyond-schema semantics: the 0.55 vs 0.45 threshold distinction, scope behavior, and the specific use of pairs/relationship to dismiss a reconciliation false positive. This elevates it above baseline, though some params like canvas and max rely on schema descriptions.

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?

The description clearly states a specific verb and resource: it repairs orphaned decision/milestone cards by proposing and drawing connections between related-unlinked brain cards. It also distinguishes itself by explaining the default scope, the whole-graph densification mode, and its relationship to brain_reconcile false positives. This makes its purpose unambiguous and separates it from sibling tools.

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?

The description gives explicit usage context: default orphan repair, scope:"all" for whole-graph densification, and pairs with relationship:"not_contradiction" to dismiss reconcile false positives. It does not explicitly state when to avoid this tool in favor of sibling tools, but the provided use cases are clear enough for an agent to decide.

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

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/dahshanlabs/klypix-mcp'

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