Skip to main content
Glama

Set lockkey

hdhomerun_set_lockkey

Locks or releases a specified tuner by setting its lock key, returning a generated key when locking so you can release it later.

Instructions

/tuner<n>/lockkey lock or release a tuner.

The device lock is taken by setting the item to the caller's own 32-bit key (a random key is generated when none is given and returned as the result, so the caller can release it). Releasing sets the item to none while presenting the same key.

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": {
      "tuner": "<tuner>",
      "lock": "<lock>"
    },
    "name": "hdhomerun_set_lockkey"
  }
}

Input Schema

NameRequiredDescriptionDefault
lockYes
tunerYes
lockkeyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.6

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false, openWorldHint=true, destructiveHint=false; the description adds real behavioral detail: the device lock is held until released with the matching key, and a random key is generated and returned as the result when none is supplied. That return-value disclosure is valuable given there is no output schema. It does not cover failure behavior (e.g., wrong or missing key on release) or what happens to a tuner already locked by another caller.

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?

Two short paragraphs that lead with the endpoint and the core action, then explain the key mechanics. Every sentence carries information; only minor friction from the endpoint-style formatting and the parenthetical nested inside a longer sentence.

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 three-parameter mutation tool with no output schema but clear annotations, the definition covers what the call changes, how the lock is acquired, and how the generated key comes back — everything needed to invoke it correctly. Remaining gaps (error paths, concurrent-lock contention) are edge cases rather than invocation blockers.

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?

With 0% schema description coverage the description must carry the parameters, and it explains the hard part well: lockkey is a 32-bit key, omitted keys are randomly generated and returned, and release requires presenting the same key. The `lock` boolean's true/false meaning is only implied by the lock/release phrasing, and `tuner` is conveyed only via the '/tuner<n>/' path notation rather than explicitly.

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 — 'lock or release a tuner' — plus the underlying endpoint, so the operation is unambiguous. It is implicitly distinct from the sibling hdhomerun_get_lockkey (read) and hdhomerun_stop_tuner, but the description never names those siblings 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 two modes (lock vs release) are explained mechanically, but there is no explicit statement of when an agent should lock a tuner at all (e.g., before tuning/streaming to exclude other clients) or why one would choose this over hdhomerun_stop_tuner or hdhomerun_set_item. Usage is inferable from the mechanism rather than stated.

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