Skip to main content
Glama

find_client

Read-onlyIdempotent

Locate a connected device on a TP-Link router or modem by matching part of its hostname, IP address, or MAC address. MAC searches accept '-' or ':' separators.

Instructions

Devices whose hostname, IP or MAC contains the query (case-insensitive; '-' and ':' both work in MACs).

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": {
      "query": "<query>"
    },
    "name": "find_client"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
deviceNoName of a device from devices.toml (see the 'devices' command); omit for the default device.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • addedInput schema / properties / device
      Added value: +{
      +  "default": "",
      +  "description": "Name of a device from devices.toml (see the 'devices' command); omit for the default device.",
      +  "title": "Device",
      +  "type": "string"
      +}
  2. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so safety is covered. The description usefully adds case-insensitive matching and that '-' and ':' both work in MACs, but it does not disclose scope limits such as whether it searches only the default device or all devices, nor how multiple matches are handled.

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?

The description is a single front-loaded sentence with no wasted wording. It packs the resource, matching fields, case-insensitivity, and MAC formatting rule into a compact form.

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?

The presence of an output schema means return values need not be described, and annotations cover safety behavior. However, for a search tool with siblings such as list_clients, the definition lacks routing guidance and does not clarify search scope across devices.

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 50%, so the description needs to compensate for the undocumented query parameter. It does so well by clarifying that the query is substring-matched against hostname, IP, and MAC, with case-insensitivity and MAC separator flexibility. The device parameter is already documented in the schema, so the remaining gap is minor.

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?

The description states the specific resource and match criteria: devices whose hostname, IP, or MAC contains the query. That makes the operation clear enough to distinguish matching search from broader listing, though it does not explicitly name or route against sibling tools such as list_clients.

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?

The description explains what the query matches but gives no when-to-use guidance, no exclusions, and no comparison to alternatives like list_clients or client_history. The agent can infer that it is for lookup, but the definition does not say when this is preferable to another tool.

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