Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

validate_brain_region_hierarchy

Read-only

Checks live FEAGI brain-region hierarchy for a single root, missing parents, and cycles, returning validity, root ID, and parent maps for debugging Brain Visualizer issues.

Instructions

Validate FEAGI brain-region hierarchy invariants used by Brain Visualizer.

Runs a lightweight consistency check against live region/regions_members and reports whether the hierarchy satisfies BV expectations:

  • exactly one root (parent_region_id is null)

  • no missing parent references

  • no cycles in parent links

  • optional cross-check against exported brain_regions_root metadata

Returns: Summary dict with valid flag, derived root_region_id, issue lists, and per-region parent_map details for debugging.

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": "validate_brain_region_hierarchy"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.14

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries the rest and does well: it discloses the data source (live region/regions_members), the exact consistency rules enforced, and a cycle/missing-parent failure model. It stops short of saying whether stale or partially-loaded live state can produce false failures, which matters for a validation tool.

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?

Front-loaded purpose sentence followed by a tight bulleted invariant list; easy to scan. The 'Returns:' block partially restates what the output schema already declares, so it is slightly redundant rather than harmful.

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 zero-parameter, read-only check with an output schema, the description covers the checks performed and the failure modes, which is what an agent needs to decide to call it. The unaddressed gap is the dangling 'optional cross-check' that has no corresponding input.

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?

There are zero parameters, so the baseline is 4. The only wrinkle is the mention of an 'optional cross-check against exported brain_regions_root metadata', which implies a toggle that the empty input schema does not expose, leaving the caller unsure how that option is activated.

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?

States a specific verb ('Validate') plus a precisely scoped resource ('FEAGI brain-region hierarchy invariants') and immediately enumerates the four invariants being checked. This clearly separates it from siblings such as create_brain_region or validate_genome, which target different objects.

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?

It gives context (used by Brain Visualizer, checks live region/regions_members) but never states when an agent should choose this over validate_genome or get_brain_regions, nor any preconditions. Usage is implied by the invariant list rather than explicitly guided.

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