Skip to main content
Glama
AlanOgic

Betaflight MCP Server

by AlanOgic

set_filter_config

DestructiveIdempotent

Update Betaflight filter settings by providing only the fields to change; returns the read-back values and requires saving configuration afterward.

Instructions

Modifie des filtres (noms CLI, voir get_filter_config). Seuls les champs fournis changent. Filtres gyro globaux ; D-term et yaw_lowpass_hz du profil PID actif. Le firmware peut corriger des valeurs incohérentes : la réponse contient les valeurs relues. Betaflight 2025.12+ (API >= 1.47). Refusé si FC armé. Appeler save_config ensuite.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
settingsYesRéglages à modifier, noms CLI Betaflight 2025.12+ → valeur (entier, ou libellé pour les énumérations). Champs : gyro_lpf1_static_hz (plage firmware [0–1000]); dterm_lpf1_static_hz (plage firmware [0–1000]); yaw_lowpass_hz (plage firmware [0–500]); gyro_notch1_hz (plage firmware [0–1000]); gyro_notch1_cutoff (plage firmware [0–1000]); dterm_notch_hz (plage firmware [0–1000]); dterm_notch_cutoff (plage firmware [0–1000]); gyro_notch2_hz (plage firmware [0–1000]); gyro_notch2_cutoff (plage firmware [0–1000]); dterm_lpf1_type (valeurs acceptées : PT1, BIQUAD, PT2, PT3); gyro_hardware_lpf (valeurs acceptées : NORMAL, OPTION_1, OPTION_2); gyro_lpf2_static_hz (plage firmware [0–1000]); gyro_lpf1_type (valeurs acceptées : PT1, BIQUAD, PT2, PT3); gyro_lpf2_type (valeurs acceptées : PT1, BIQUAD, PT2, PT3); dterm_lpf2_static_hz (plage firmware [0–1000]); dterm_lpf2_type (valeurs acceptées : PT1, BIQUAD, PT2, PT3); gyro_lpf1_dyn_min_hz (plage firmware [0–1000]); gyro_lpf1_dyn_max_hz (plage firmware [0–1000]); dterm_lpf1_dyn_min_hz (plage firmware [0–1000]); dterm_lpf1_dyn_max_hz (plage firmware [0–1000]); dyn_notch_q (plage firmware [1–1000]); dyn_notch_min_hz (plage firmware [20–250]); rpm_filter_harmonics (plage firmware [0–3]); rpm_filter_min_hz (plage firmware [30–200]); dyn_notch_max_hz (plage firmware [200–1000]); dterm_lpf1_dyn_expo (plage firmware [0–10]); dyn_notch_count (plage firmware [0–7]); rpm_filter_fade_range_hz (plage firmware [0–1000]); rpm_filter_q (plage firmware [250–3000]); rpm_filter_weights (3 valeurs 'a,b,c', chacune [0–100])

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare the safety profile (destructive, idempotent, non-read-only), yet the description adds substantial behavior: partial-update semantics, the firmware may silently correct inconsistent values and the response returns re-read values, the armed refusal, a firmware/API version gate, and a required follow-up call. This is well beyond what structured fields convey.

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?

Six compact sentences, front-loaded with the mutation action followed by scope, behavior, constraints, and the next step. Dense but every sentence carries distinct information; minor cramping from packing version, armed gate, and follow-up into one block.

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 mutation tool with a single nested object parameter, full schema coverage, and no output schema, the definition covers everything an agent needs: what changes, version prerequisite, armed guard, silent firmware correction with re-read confirmation, and the required save_config follow-up.

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 description coverage is 100% and the schema already enumerates every accepted setting, its firmware range, and enum literals, so the baseline is 3. The description adds that keys use Betaflight CLI names and points to get_filter_config as the naming source, which is a modest but real gain over the schema.

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 ('Modifie des filtres') and immediately scopes it: global gyro filters plus D-term and yaw_lowpass_hz of the active PID profile. It references the sibling get_filter_config for CLI naming, so an agent can distinguish this from the read-only counterpart and from set_pid_values without opening any schema.

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 gives clear operational context: only supplied fields change, the FC must not be armed, the tool requires Betaflight 2025.12+ / API >= 1.47, and save_config must be called afterwards. It does not name competing setters (e.g. set_pid_values) or state when-not-to-use beyond the armed refusal, so it falls short of full routing guidance.

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