Skip to main content
Glama

glass_type

Type text as individual keystrokes into the focused window, letting apps respond to each key. Click the field first; the tool does not move focus.

Instructions

Type a string of text into the focused window. Does not focus anything itself — click the field first (glass_click_element, or glass_click), or the text goes wherever focus already was. Sent as individual keystrokes, not a paste, so per-key handlers, autocomplete and validation all run; a newline in text does not press Return, so send that as a separate glass_key. Prefer glass_set_value for a field the a11y tree exposes: it addresses the field directly and reports whether the value landed, where this types wherever the cursor already sits and cannot tell you what it hit. Optional return: "snapshot" settles the UI then folds a fresh a11y tree into the result (and refreshes the snapshot cache); "settle" waits for the UI to stop changing (text-only); omit or "none" for no observe (default).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText to type into whatever currently has keyboard focus — this tool does not focus a field, so click or `glass_click_element` one first. Sent as synthetic key events, not pasted, so an app's per-keystroke handlers run.
returnNoOptional observe folded into the result: "snapshot" (wait for the UI to settle, then fold a fresh a11y tree, also refreshing the snapshot cache), "settle" (wait for the UI to stop changing, text-only), or "none" (default). Not accepted inside a `glass_do` `type` action — use a `settle` action or the terminal `then` observe there.
Behavior5/5

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

With no annotations provided, the description carries the full burden and fully delivers. It discloses that keystrokes are sent individually (not pasted), that per-key handlers run, that a newline does not press Return, that it cannot report what it hit, and details the behavior of the `return` options.

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 dense but every sentence contributes: purpose, prerequisite, behavioral mode, limitation, alternative, and observe options. It is front-loaded with the core action, and the length is justified by the nuanced behavior.

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 two-parameter tool with no output schema or annotations, the description is comprehensive. It covers what the tool does, what it cannot do, when to use an alternative, and how the optional observe parameter behaves. No critical operational detail appears missing.

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?

The schema already covers both parameters at 100%, so the baseline is 3. The description adds the crucial edge-case that a newline in `text` does not press Return and should be sent via glass_key, which goes beyond the schema. It also reinforces the focus prerequisite.

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 opens with a specific verb+resource: 'Type a string of text into the focused window.' It clearly distinguishes the tool from siblings like glass_set_value and glass_key, and the scope is explicit (focused window).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit guidance is given: click a field first (glass_click_element or glass_click) because the tool does not focus anything. It also says to prefer glass_set_value for a11y-exposed fields, directly naming the alternative and explaining why. The note about sending a newline as a separate glass_key is a clear usage instruction.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fixed-width/glass'

If you have feedback or need assistance with the MCP directory API, please join our Discord server