Skip to main content
Glama

set_failsafe

Set the core failsafe behaviour (RC-loss action, throttle, delays) on iNAV flight controllers. Dry-run by default; confirm to apply atomically with backup and reboot.

Instructions

Set the core failsafe behaviour (atomic CLI write: backup → apply → save+reboot).

Only the arguments you pass are changed; dry-run by default. For other failsafe_* knobs (distances, angles) use cli('set failsafe_... = N', confirm_for_writes=True).

Args: procedure: RC-loss action — one of DROP | LAND | SET-THR | RTH | NONE. The exact accepted tokens depend on firmware; an invalid value is rejected by the FC and the whole write is rolled back. throttle_us: failsafe_throttle in µs (used by SET-THR / LAND). Clamped 1000–2000. delay_s: Guard time after RC loss before failsafe triggers (failsafe_delay). iNAV stores this in 0.1 s units, so this is converted ×10. off_delay_s: Time the failsafe stage runs before the motor is killed (failsafe_off_delay), also 0.1 s units (×10). confirm: True to apply (saves + reboots). Dry-run otherwise.

Gates: connected, not armed, auto-backup. RTH without GPS will not work — use DROP/LAND.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNo
delay_sNo
procedureNo
off_delay_sNo
throttle_usNo
Behavior5/5

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

With no annotations, the description fully carries the transparency burden. It discloses atomic write behavior (backup → apply → save+reboot), dry-run default, partial-argument changes, rollback on invalid values, and unit conversion (×10 for iNAV). This is exemplary behavioral disclosure.

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 well-structured with a front-loaded summary, an Args list, and a Gates section. Every sentence adds essential information; there is no redundancy or filler. The length is appropriate for the tool's 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 the 5 parameters, no output schema, and no annotations, the description is remarkably complete. It covers purpose, all parameter semantics, gates, failure behavior, conversion details, and alternatives to sibling tools. The agent has everything needed to invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description compensates completely. Each parameter is explained with meaning, constraints, and units: procedure (firmware-dependent tokens, rollback), throttle_us (clamped 1000–2000), delay_s (guard time, ×10 conversion), off_delay_s (stage time, ×10), confirm (apply vs dry-run).

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 opens with a specific verb+resource: "Set the core failsafe behaviour," and immediately clarifies the atomic CLI write mechanism. It distinguishes itself from sibling failsafe knobs by pointing to cli('set failsafe_...') for distances/angles, and from check_failsafe which is for checking.

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?

Explicit guidance is given: "dry-run by default" and when to use confirm=True. It states alternatives for other failsafe knobs (use cli), conditions under which RTH fails ('RTH without GPS will not work — use DROP/LAND'), and preconditions ('Gates: connected, not armed, auto-backup').

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/starlordz12/inav-mcp'

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