Skip to main content
Glama
omarchy-desktop

omarchy-desktop

by martoast

Focus a form field

focus_field

Sets keyboard focus to a form field identified by its reference and reports whether focus succeeded, so agents can reliably interact with specific inputs.

Instructions

Give a form field (by ref) keyboard focus. Returns whether it is focused.

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": {
      "ref": "<ref>"
    },
    "name": "focus_field"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes
window_addressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it only discloses that a boolean focused-state is returned. It omits whether focusing requires an already-focused window, what happens with a stale or invalid ref, whether the element is scrolled into view, and whether the call mutates page state in any other way.

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?

Two short, front-loaded sentences with zero filler: the action first, then the return value. Nothing is wasted or buried.

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

Completeness2/5

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

For a two-parameter, unannotated, no-output-schema tool, this is thin: one parameter is undocumented, the return contract is only a single clause, and there is no failure or prerequisite context. The description is accurate but not sufficient for reliable invocation.

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% for two parameters. The description mentions 'ref' in passing but never explains what a ref is, where it comes from, or its format, and the 'window_address' parameter is not mentioned at all. It therefore does not compensate for the empty schema.

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 ('give ... keyboard focus') and a specific resource ('a form field (by ref)'), plus the return value. It implicitly distinguishes itself from focus_window by naming 'form field', though it never states that distinction explicitly.

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?

There is no guidance on when this tool should be used instead of alternatives such as click_element, press_element, tab-order navigation, or focus_window, nor any prerequisites (e.g., that a valid ref must first come from a page read or snapshot). The reader is left to infer all of that.

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