Skip to main content
Glama

set_wireless_tx_power

Adjust a MikroTik wireless interface's tx power (dBm) to avoid receiver saturation and improve CCQ, with a preview-before-apply confirm workflow.

Instructions

Set a /interface/wireless interface's tx_power (dBm), forcing tx-power-mode=all-rates-fixed.

CONFIRMED AGAINST REAL HARDWARE TODAY: on a short link, the default (maximum) tx-power SATURATES the receiver and PRODUCES A WORSE CCQ than a lower power (measured: -27dBm/CCQ 34 at default, -47dBm/CCQ 94 at ~8dBm). There is no single "right" power for every link - use get_wireless_link_quality before/after to judge the effect.

LOCKOUT-RISK for the same reason as set_wireless_channel - same arm_deadman/deadman_minutes dead-man behavior (default armed), restoring BOTH tx-power-mode and tx-power on revert.

The returned preview's warning always notes that CCQ/rate briefly re-adapt (a few seconds) right after a power change - expected, not a failure.

WRITE tool, guarded: blocked entirely unless the server is running with MIKROTIK_ALLOW_WRITE=true. Call with confirm=False (the default) to get a before/after preview without changing anything; call again with confirm=True to actually apply it. Errors if interface_name doesn't exist on /interface/wireless - never creates one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNo
tx_powerYes
arm_deadmanNo
device_nameYes
interface_nameYes
deadman_minutesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.11.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so richly: it discloses the write guard (blocked unless MIKROTIK_ALLOW_WRITE=true), the dead-man lockout risk and that revert restores BOTH tx-power-mode and tx-power, the preview-vs-apply confirm semantics, and that it errors rather than creating a missing interface. The counterintuitive saturation behavior is also explained.

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?

Front-loaded with the action and its forced side effect, and the length is justified by the tool's complexity and lack of annotations. It is slightly verbose, with the saturation example and the CCQ re-adaptation note occupying more space than strictly needed.

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 guarded mutation tool with no annotations, 6 parameters, and 0% schema coverage, the description covers the safety profile, the preview/apply flow, the write gate, the dead-man revert, and the error behavior. An output schema exists, so its note on the preview warning is supplementary rather than a gap.

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 coverage is 0%, so the description must compensate, and it largely does: tx_power (dBm), confirm (preview vs apply), arm_deadman/deadman_minutes (armed by default, revert behavior), and interface_name (errors if absent, never created) are all given meaning. Only device_name is left to inference, which is minor.

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?

States a precise verb+resource ('Set a /interface/wireless interface's tx_power (dBm)') and adds the critical side effect ('forcing tx-power-mode=all-rates-fixed'), which distinguishes it from siblings like set_wireless_channel and set_wireless_tuning. An agent can identify the operation and its scope without opening the schema.

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?

Explicitly routes the agent: use get_wireless_link_quality before/after to judge effect, and there is no universally correct power. It also spells out the confirm=False preview → confirm=True apply workflow, and names set_wireless_channel as the sibling with the same dead-man lockout behavior. When-to-use and alternatives are both covered.

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

Deploy Server

Other Tools