Skip to main content
Glama

select_device

Read-only

Set a client target to a listed device ID, returning readiness so you can run device-specific actions without changing the device's power state.

Instructions

Set this client's target to a device ID from list_devices. Selection returns readiness and leaves the device in its current power state.

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": {
      "device_id": "<device_id>"
    },
    "name": "select_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
device_idYes
timeout_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare read-only, non-destructive, open-world, and non-idempotent behavior. The description adds useful context beyond that by saying selection returns readiness and leaves the device in its current power state, though it does not explain reselection or target-switching behavior.

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 two tight sentences with the core action and prerequisite front-loaded. Every sentence adds relevant information without restating the tool name.

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 simple two-parameter selection tool with no output schema, it covers the key action, source of the device ID, return readiness, and power-state behavior. The main omission is any explanation of timeout_ms, which matters because the schema does not describe it.

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

Parameters2/5

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

Schema description coverage is 0%, so the description needs to explain both parameters. It adds some meaning for device_id by saying it comes from list_devices, but timeout_ms is not mentioned at all, leaving its purpose and units undocumented.

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?

The description states a specific verb and resource: it sets this client's target to a device ID. It also names the source tool list_devices, which clearly distinguishes this selection step from listing or inspecting devices.

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?

The definition makes the prerequisite clear by saying the device ID comes from list_devices. It does not explicitly say when not to use this tool or name alternatives, but the selection workflow is understandable without that.

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