Skip to main content
Glama

assign_switch

Map a multi-position switch's detents to flight modes in one call. Computes µs ranges and writes AUX assignments, with dry-run and safety checks.

Instructions

Map a multi-position switch's detents to flight modes in one call.

Computes the µs range for each detent and writes one 'aux' assignment per mode. Dry-run by default. Gates: connected, not armed, auto-backup before write.

Args: switch_channel: 1-based AUX number the switch is on (1 = AUX1 = RC channel 5). switch_positions: Number of detents on the switch: 2, 3, or 6. mode_per_position: Map of position → mode name. Position keys may be "low"/"mid"/"high" (for 2/3-pos) or "1".."N" / "pos1".., e.g. {"low": "ANGLE", "mid": "HORIZON", "high": "MANUAL"}. confirm: True to apply. Default False = dry-run.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNo
switch_channelYes
switch_positionsYes
mode_per_positionYes
Behavior5/5

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

It discloses that the tool computes µs ranges, writes one aux assignment per mode, and defaults to dry-run, plus critical gates. With no annotations, this description carries the full burden and meets it well.

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 structured and front-loaded: first sentence states purpose, then behavioral notes, then a clear Args list. No filler sentences.

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?

It covers purpose, behavior, preconditions, and parameters comprehensively. It omits return value/error handling, but the absence is not critical for a tool that is primarily an action. Overall, it's near-complete.

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 has no descriptions (coverage 0%), so the description compensates by detailing each parameter: switch_channel's 1-based AUX numbering, switch_positions' allowed values (2, 3, 6), mode_per_position's key formats and example, and confirm's default. This is high-value addition.

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 and resource: 'Map a multi-position switch's detents to flight modes in one call.' It clearly distinguishes from siblings like set_flight_mode by focusing on multi-position mapping and mass assignment.

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?

It states the context: 'Dry-run by default' and 'Gates: connected, not armed, auto-backup before write,' which inform when it's safe to run. It does not explicitly name alternative tools, but the one-call mapping purpose is clear.

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