Skip to main content
Glama

discover_devices

Discovers TP-Link Kasa smart devices on the local network via UDP broadcast, with a configurable timeout, to identify available plugs, bulbs, light strips, and switches before control.

Instructions

Discover Kasa smart home devices on the local network via UDP broadcast

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "discover_devices"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutNoDiscovery timeout in milliseconds (default: 5000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the mechanism (UDP broadcast) and local-network scope, which meaningfully implies devices on other subnets will not be found. It does not say the call blocks for the timeout window, whether an empty result is normal, or that it is a safe non-destructive read.

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?

One sentence, front-loaded with the verb and resource, with the mechanism as a trailing qualifier. There is no filler and nothing to remove.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple one-optional-parameter tool this is nearly sufficient, but with no output schema the description should at least hint at what discovery returns (e.g., a list of devices with addresses) and that it is the prerequisite step for the sibling tools. Those gaps are modest but real.

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 coverage is 100% — the single optional 'timeout' parameter is fully documented in the schema, including its millisecond unit and 5000ms default. The description adds no meaning beyond that, so the baseline of 3 applies.

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 specific verb ('Discover'), resource ('Kasa smart home devices'), and mechanism ('via UDP broadcast') with a clear network scope. It is unmistakably distinct from the sibling tools, which are all per-device operations (get_device_info, set_brightness, set_power_state) requiring an already-known device.

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

Usage Guidelines2/5

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

No explicit when-to-use guidance, no prerequisites, and no alternatives named. The agent must infer that this is the entry-point tool that must run before the per-device siblings can be called, and nothing warns that discovery only works when devices are on the same broadcast domain.

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