Skip to main content
Glama

Initialize and Reset Rack Enclosure

init_rack
DestructiveIdempotent

Initialize a new rack project and destructively reset the active rack.yaml state to an empty enclosure with the specified width standard, U height, and rail depth. Overwrites the current enclosure and clears all mounted devices, child sub-modules, cables, and external endpoints, while pushing the previous project state onto the in-memory undo stack for recovery via undo_redo. 'project_name' sets the title used in exported schematics and BOMs, 'rail_depth_mm' plus 'rear_clearance_mm' bounds total +Z chassis and rear plug depth before wall collision, and 'front_door_clearance_mm' is enforced only when 'enclosure_type' has a closed front door. Use when starting a rack design from scratch or changing enclosure dimensions; use validate_rack to inspect the current rack, or modify_equipment to move or remove individual devices.

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": {
      "standard": "<standard>",
      "u_height": "<u_height>",
      "rail_depth_mm": "<rail_depth_mm>"
    },
    "name": "init_rack"
  }
}

Input Schema

NameRequiredDescriptionDefault
standardYesMechanical rack width standard ("19inch" = 482.6mm, "10inch" = 254.0mm, "6inch" = 152.4mm).
u_heightYesTotal usable vertical rack height in Rack Units (1U = 44.45mm, 1..60U).
project_nameNoHuman-readable project name stored in rack.yaml.Rack Project
rail_depth_mmYesFront-to-rear mounting rail depth in millimeters along the Z-axis (max 2000mm).
enclosure_typeNoEnclosure door style ("open-frame", "closed-glass-front", or "closed-vented-front").open-frame
rear_clearance_mmNoAvailable clearance in millimeters behind the rear mounting rails (Z=rail_depth_mm) for power plugs and bending radii.
front_door_clearance_mmNoAvailable clearance in millimeters between front mounting rails (Z=0) and a closed front door.

Output Schema

NameRequiredDescriptionDefault
dataYesRack initialization payload.
issuesYesStructured diagnostic findings (ERROR, WARNING, INFO) with actionable remediation_suggestions.
statusYesDeterministic execution outcome: "VALID" when the operation succeeded with 0 validation errors; "INVALID" when precondition or engineering validation errors are present in issues[].
summaryYesConcise human- and agent-readable summary of the tool result and validation status.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description goes further by enumerating exactly what is destroyed (mounted devices, child sub-modules, cables, external endpoints) and disclosing the undo-stack recovery path via undo_redo. Minor tension with idempotentHint=true: repeated calls converge on the same enclosure but each call pushes another undo frame, which the description implies without reconciling — not a contradiction, but a gap.

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 with the destructive reset, then parameters, then usage routing — a sensible order with no filler sentences. The middle sentence is a long multi-clause run-on that could be split for faster scanning, but every clause carries substantive information.

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?

For a destructive, multi-parameter initialization tool with an output schema and full annotations, the description covers destruction scope, recovery path, parameter interactions, and alternative routing. An agent has everything needed to decide and invoke correctly.

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, yet the description adds real cross-parameter meaning: rail_depth_mm plus rear_clearance_mm bound total +Z chassis and rear plug depth before wall collision, front_door_clearance_mm is only enforced for closed-door enclosure types, and project_name propagates to exported schematics and BOMs. These conditional interactions are not expressible in the flat schema, though 'standard' and 'u_height' get no elaboration beyond what the schema already says.

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 and resource ('Initialize a new rack project', 'destructively reset the active rack.yaml state to an empty enclosure') plus the scope of the reset. It is clearly distinguishable from siblings like validate_rack and modify_equipment, which the description names as the non-destructive alternatives.

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

Usage Guidelines5/5

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

Explicitly names the triggering conditions ('starting a rack design from scratch or changing enclosure dimensions') and routes to two concrete alternatives with their distinct purposes ('use validate_rack to inspect the current rack, or modify_equipment to move or remove individual devices'). Nothing is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources