Skip to main content
Glama

emergency_stop

Instantly stop a locomotive using JMRI's decoder emergency-stop command for safety-critical situations such as derailment risk or imminent collision. Cuts power abruptly, unlike a normal stop.

Instructions

Emergency-stop a locomotive immediately (JMRI's decoder e-stop command).

Args: address: The locomotive's DCC address. Acquires the throttle automatically if this session doesn't already hold it.

Use this ONLY for safety-critical stops: derailment risk, imminent collision, or any situation calling for an immediate halt rather than a smooth deceleration. This is JMRI's actual decoder emergency-stop command (speed -1.0 on the wire, distinct from a normal speed command) — it cuts power abruptly rather than ramping down, which is rougher on the mechanism/cargo, so don't use it as a synonym for a routine stop.

Returns stopped: true once JMRI confirms the e-stop speed. Safe to call repeatedly: like stop, a redundant emergency_stop on an already-e-stopped loco is a silent no-op on JMRI's side, and this tool's local throttle-state cache (kept fresh from JMRI's broadcasts, including e-stops triggered by any OTHER client) reports the correct current status instead of hanging.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYes
Behavior5/5

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

With no annotations provided, the description fully discloses behavioral traits: it explains the command is JMRI's actual decoder emergency-stop (speed -1.0), cuts power abruptly (rougher on mechanism/cargo), safe to call repeatedly, and mentions the local throttle-state cache, which covers all necessary transparency.

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?

The description is well-structured with clear paragraphs and front-loaded key information. Every sentence adds value, though it could be slightly more concise without losing necessary detail. Still, it is efficient for its complexity.

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 a single parameter, no output schema, and sibling tools that include 'stop', the description is complete: it explains input (address with auto-acquisition), output (returns stopped: true), and behavioral details (redundant calls are no-ops, cache syncing). No gaps remain.

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?

The single parameter 'address' is described in detail: 'DCC address' and that it 'acquires the throttle automatically if this session doesn't already hold it'. This adds significant meaning beyond the schema's bare type and required status, though format constraints are not mentioned.

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 uses a specific verb ('emergency-stop') and resource ('locomotive') in the first sentence, and explicitly distinguishes itself from the sibling 'stop' tool by emphasizing it is for safety-critical situations only, avoiding any ambiguity.

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?

The description explicitly states when to use ('safety-critical stops: derailment risk, imminent collision') and when not to use ('not a synonym for routine stop'), and contrasts with 'stop' for smooth deceleration, leaving no doubt about appropriate usage.

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/HO44-PROJECT/MrJ-JMRI-MCP'

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