Skip to main content
Glama
AlanOgic

Betaflight MCP Server

by AlanOgic

set_battery_profile

DestructiveIdempotent

Modifies a Betaflight battery profile by index, changing only supplied fields, enforcing min<=warning<=full<=max; refused if FC armed—call save_config after.

Instructions

Modifie un profil batterie par index (Betaflight 2026.6+), actif ou non. Seuls les champs fournis changent ; ordre min <= warning <= full <= max obligatoire. Refusé si FC armé. Appeler save_config ensuite.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexYesIndex du profil batterie
settingsYesRéglages à modifier, noms CLI Betaflight 2025.12+ → valeur (entier, ou libellé pour les énumérations). Champs : vbat_min_cell_voltage (plage firmware [100–500]); vbat_max_cell_voltage (plage firmware [100–500]); vbat_warning_cell_voltage (plage firmware [100–500]); vbat_full_cell_voltage (plage firmware [100–500]); bat_capacity (plage firmware [0–20000]); force_battery_cell_count (plage firmware [0–24]); cbat_alert_percent (plage firmware [0–100]). Tensions en centièmes de volt ; ordre min <= warning <= full <= max.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, readOnlyHint=false, so the safety bar is lower. The description still adds real value beyond them: partial-update semantics ('only provided fields change'), the min<=warning<=full<=max validation rule, the armed-state refusal, and the fact that persistence requires a follow-up save_config call.

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?

Four tight clauses, front-loaded with the action and target, then validation, precondition, and required follow-up. 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?

For a mutation tool with no output schema, it covers the key gaps an agent needs: partial update semantics, validation ordering, state precondition, and the persistence step. What it lacks is guidance on failure modes (invalid index, rejected values) beyond the armed case.

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

Parameters3/5

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

Schema description coverage is 100%, with index range and per-field firmware ranges already documented in the schema. The description restates the ordering constraint that the schema already states, adding no new parameter-level detail beyond the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb+resource+targeting key: modifies a battery profile by index. An agent can tell it apart from get_battery_profiles and set_battery_config by the index-based profile scope, though the description never explicitly contrasts itself with the similarly named set_battery_config sibling.

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?

Gives concrete operational context: requires Betaflight 2026.6+, is refused when the FC is armed, and instructs to call save_config afterwards. It stops short of naming alternatives or stating when-not-to-use beyond the armed precondition.

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