Skip to main content
Glama

Set Channel Url

set_channel_url
DestructiveIdempotent

Replace a device's channel set by importing the channels encoded in a Meshtastic channel URL; applying the same URL again leaves identical channel state.

Instructions

Import channels from a Meshtastic channel URL.

Replaces the device's channel set with the channels encoded in url. Idempotent: applying the same URL twice leaves identical channel state.

Returns {ok, channels_imported}.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "set_channel_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesA Meshtastic channel URL, such as `get_channel_url` returns.
portNoSerial port or `tcp://host[:port]`; omit to auto-select the one likely Meshtastic device.

Output Schema

NameRequiredDescriptionDefault
okYes
channels_importedYeschannels not DISABLED after the import

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds the crucial missing detail: what is destroyed is the entire existing channel set, replaced wholesale. It also concretizes idempotency as 'identical channel state' after a second application. What it omits is the non-recoverability of the overwritten channels and any confirmation/backup expectation for a destructive write.

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?

Three compact lines with the action and the destructive scope front-loaded, followed by the idempotency guarantee. The final 'Returns {ok, channels_imported}' sentence is partly redundant with the existing output schema, which is the only waste.

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 destructive two-parameter write tool with full schema coverage, annotations, and an output schema, the description supplies exactly the missing piece — that the whole channel set is overwritten — plus retry semantics. Nothing an agent needs to invoke it correctly is absent.

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%, so both parameters are already documented, including that port can be a serial path or tcp://host and may be omitted for auto-select. The description only adds that the URL encodes the channels to be applied; the port parameter is not discussed at all, so it adds marginal meaning beyond the schema — baseline 3.

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?

States a specific verb and resource ('Import channels from a Meshtastic channel URL') and immediately clarifies scope with 'Replaces the device's channel set'. An agent can distinguish this from read-side siblings like get_channel_url by the word 'Import' plus the replacement semantics, though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the use case (restore/migrate a channel set from an exported URL) and the idempotency note helps an agent decide it is safe to retry. However, it never states when NOT to use it, whether a backup should be taken first, or that get_channel_url is the counterpart export step — that link appears only in the schema text.

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