Skip to main content
Glama

vm_layout

Re-detect a guest VM's keyboard layout to refresh cached settings and ensure correct key mapping when cached input becomes stale.

Instructions

Re-detects the guest's keyboard layout (vm_type caches it for a minute).

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": {
      "vm": "<vm>"
    },
    "name": "vm_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/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 behavioral burden. It usefully discloses the re-detection behavior and vm_type's one-minute caching, but leaves prerequisites, failure conditions, and any guest or session side effects unstated.

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 compact sentence front-loads the operation and target. The parenthetical adds non-obvious, useful cache information without redundancy or unnecessary wording.

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 one-parameter tool with an output schema, the action, target, and caching relationship cover most selection needs. The undocumented vm identifier and lack of explicit prerequisites or refresh triggers prevent full completeness.

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?

The sole required vm string has no schema description, and the description does not explain whether it expects a VM name, ID, or another identifier. The mention of the guest provides only weak contextual help and does not adequately compensate for the 0% schema coverage.

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 specifies the action ("Re-detects") and resource ("the guest's keyboard layout"). It also distinguishes the tool's role from vm_type by explaining that vm_type relies on a one-minute cache.

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 cache note provides useful selection context: this tool is appropriate when a fresh detection is needed rather than vm_type's cached result. It does not explicitly identify triggers such as a guest layout change or state when re-detection is unnecessary.

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