Skip to main content
Glama

glass_do

Execute ordered UI actions (clicks, typing, waits, scrolls) in one batch with a shared timeout; returns per-action outcomes and fails fast on errors.

Instructions

Prefer glass_do whenever at least two upcoming actions or verification waits are already known. Typical form flow: take one fresh glass_a11y_snapshot, retain the needed ids, then run set_value, wait_for_element, click_element, and wait_for_element here in one ordered call. Use standalone tools only when the next step depends on newly observed state. Inspect the structured outcomes before recovery. Run fixed static ordered actions in one call: click, move, drag, scroll, type, key, settle, click_element, set_value, wait_for_element, scroll_to_element. At most 64 actions and 65536 compact argument bytes. Optional absolute sequence timeout_ms defaults to 30000ms, is valid from 1 through 120000ms, and uses one absolute deadline shared by all actions and terminal settle/diff/screenshot. Fail-fast on action errors, sequence deadline, and unmatched batched wait_for_element/scroll_to_element predicates; standalone predicates remain soft. Successful calls return a structured completed outcome for every action. Once execution starts, action failures return completed, failed, and unexecuted action outcomes in the MCP error; terminal-observation failures return completed action outcomes plus terminal_steps. Preflight validation failures return an invalid_sequence error without step outcomes. Optional terminal settle, diff, screenshot adds corresponding terminal_steps outcomes. type retains return:"none|settle|snapshot" support. No variables, result bindings, interpolation, branching, loops, retries, or dynamic action generation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
thenNoOptional observe run once after the last action, in the order settle → diff → screenshot.
actionsYesActions to run in order; must be non-empty. Fail-fast — the first failing action aborts the rest and reports its index, so a partial sequence may already have landed.
timeout_msNoOverall sequence budget in milliseconds. Omit for 30000; valid range 1..=120000. One absolute deadline is shared by all actions and terminal observations.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed17 schema fields changedv1.5.1
    • changedInput schema / $defs / Action / oneOf
      Previous value: -[
      -  {
      -    "$ref": "#/$defs/ClickArgs",
      -    "properties": {
      -      "action": {
      -        "const": "click",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "action"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "$ref": "#/$defs/MoveArgs",
      -    "properties": {
      -      "action": {
      -        "const": "move",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "action"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "$ref": "#/$defs/DragArgs",
      -    "properties": {
      -      "action": {
      -        "const": "drag",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "action"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "$ref": "#/$defs/ScrollArgs",
      -    "properties": {
      -      "action": {
      -        "const": "scroll",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "action"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "$ref": "#/$defs/TypeArgs",
      -    "properties": {
      -      "action": {
      -        "const": "type",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "action"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "$ref": "#/$defs/KeyArgs",
      -    "properties": {
      -      "action": {
      -        "const": "key",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "action"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "$ref": "#/$defs/SettleArgs",
      -    "properties": {
      -      "action": {
      -        "const": "settle",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "action"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/$defs/ClickArgs",
      +    "properties": {
      +      "action": {
      +        "const": "click",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "$ref": "#/$defs/MoveArgs",
      +    "properties": {
      +      "action": {
      +        "const": "move",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "$ref": "#/$defs/DragArgs",
      +    "properties": {
      +      "action": {
      +        "const": "drag",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "$ref": "#/$defs/ScrollArgs",
      +    "properties": {
      +      "action": {
      +        "const": "scroll",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "$ref": "#/$defs/TypeArgs",
      +    "properties": {
      +      "action": {
      +        "const": "type",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "$ref": "#/$defs/KeyArgs",
      +    "properties": {
      +      "action": {
      +        "const": "key",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "$ref": "#/$defs/SettleArgs",
      +    "properties": {
      +      "action": {
      +        "const": "settle",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "$ref": "#/$defs/ClickElementArgs",
      +    "properties": {
      +      "action": {
      +        "const": "click_element",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "$ref": "#/$defs/SetValueArgs",
      +    "properties": {
      +      "action": {
      +        "const": "set_value",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "$ref": "#/$defs/WaitForElementArgs",
      +    "properties": {
      +      "action": {
      +        "const": "wait_for_element",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "$ref": "#/$defs/ScrollToElementArgs",
      +    "properties": {
      +      "action": {
      +        "const": "scroll_to_element",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedInput schema / $defs / ClickArgs / properties / count / description
      Previous value: -"Consecutive clicks at this point (default 1); pass 2 for a double-click."New value: +"Consecutive clicks at this point (default 1, valid range 1 through 10); pass 2 for a\ndouble-click."
    • addedInput schema / $defs / ClickArgs / properties / count / maximum
      Added value: +10
    • changedInput schema / $defs / ClickArgs / properties / count / minimum
      Previous value: -0New value: +1
    • addedInput schema / $defs / ClickElementArgs
      Added value: +{
      +  "properties": {
      +    "id": {
      +      "description": "Element `#id` from the latest `glass_a11y_snapshot`.\nRe-snapshot after UI changes.\nPopover-owned targets route to their window and restore the prior active window.\nThe role-appropriate native accessibility operation handles occluded or off-screen targets\nand separate labels through their enclosing control.\nUnavailable native operations fall back to a pointer click at the target center.\nText editors may receive focus without activation.\n`method:\"native-action\"` labels any native path.\n`native_fallback` explains pointer fallback.\n`actuated_id` identifies a substituted enclosing control.",
      +      "format": "uint32",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "return": {
      +      "description": "Terminal observation: \"snapshot\" settles and refreshes/folds a11y, \"settle\" waits for\nvisual stability and returns text-only metadata, and \"none\" skips observation (default).",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "id"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / $defs / ScrollArgs / properties / dx / description
      Previous value: -"Horizontal scroll in **wheel notches** (discrete clicks — small integers like 1–5, NOT\npixels). Positive `dx` sends wheel-right, negative wheel-left; glass clicks `|dx|` times."New value: +"Horizontal wheel notches from -100 through 100, not pixels.\nPositive is right and negative is left, repeated `|dx|` times.\nTypical values are 1–5."
    • addedInput schema / $defs / ScrollArgs / properties / dx / maximum
      Added value: +100
    • addedInput schema / $defs / ScrollArgs / properties / dx / minimum
      Added value: +-100
    • changedInput schema / $defs / ScrollArgs / properties / dy / description
      Previous value: -"Vertical scroll in **wheel notches** (discrete clicks — small integers like 1–5, NOT\npixels). Positive `dy` sends wheel-down, negative wheel-up; glass clicks `|dy|` times. How\nan app maps a wheel notch to its view (lines, pixels, zoom) is the app's choice."New value: +"Vertical wheel notches from -100 through 100, not pixels.\nPositive is down and negative is up, repeated `|dy|` times.\nTypical values are 1–5.\nApps choose how a notch maps to lines, pixels, or zoom."
    • addedInput schema / $defs / ScrollArgs / properties / dy / maximum
      Added value: +100
    • addedInput schema / $defs / ScrollArgs / properties / dy / minimum
      Added value: +-100
    • addedInput schema / $defs / ScrollToElementArgs
      Added value: +{
      +  "properties": {
      +    "description": {
      +      "description": "Substring of the target element's accessible description (selector). This can select\nan unnamed control, including an Android text field labelled only by its hint.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "direction": {
      +      "description": "Sweep direction: \"up\"/\"down\" (vertical) or \"left\"/\"right\" (horizontal).\nOmit to infer it from the target's off-screen position (falls back to a\nvertical down→up sweep when the target isn't in the a11y tree yet). The\nsearch reverses to the other end if the target isn't found first.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "name": {
      +      "description": "Substring of the target element's accessible name (selector).",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "role": {
      +      "description": "Element role filter, e.g. \"ListItem\", \"Button\", \"Document\" (selector).",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "step": {
      +      "description": "Wheel notches per scroll step (default 3). A calibration escape hatch — larger\ncovers distance faster but risks stepping past a row's/column's realized band.",
      +      "format": "uint32",
      +      "minimum": 0,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "timeout_ms": {
      +      "description": "Give up after this long (default 20000ms); returns `{matched:false}`.",
      +      "format": "uint64",
      +      "minimum": 0,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "value_contains": {
      +      "description": "Additionally require the matched element's `value` to contain this substring.\nNot a standalone selector — `name`, `description`, and/or `role` is still required.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "x": {
      +      "description": "Scroll anchor x (window-relative). By default the swipe anchors on the target's\nown row/column (falling back to the window center if it isn't in the a11y tree\nyet); set both `x` and `y` to point the wheel at a specific container instead.",
      +      "format": "int32",
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "y": {
      +      "description": "Scroll anchor y (window-relative). See `x`.",
      +      "format": "int32",
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / $defs / SetValueArgs
      Added value: +{
      +  "properties": {
      +    "id": {
      +      "description": "The element `#id` from `glass_a11y_snapshot`.",
      +      "format": "uint32",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "return": {
      +      "description": "Optional observe folded into the result: \"snapshot\" (wait for the UI to settle, then\nfold a fresh a11y tree, also refreshing the snapshot cache), \"settle\" (waits for visual\nstability and returns text-only metadata), or \"none\" (default).",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "text": {
      +      "description": "The value to set. For a text field, the text. For a spin/slider, a number.\nFor a switch/checkbox/toggle, a boolean (`\"true\"`/`\"false\"`/`\"on\"`/`\"off\"`/\n`\"1\"`/`\"0\"`) — idempotent. For a dropdown/combo box, an option label\n(case-insensitive); glass opens it and picks that option.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "text"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / $defs / SettleArgs / properties / timeout_ms / description
      Previous value: -"Give up after this long (default 5000ms); the sequence continues rather than\nfailing."New value: +"Give up after this long (default 5000ms).\nThis settle's timeout returns settled:false and completes the step.\nThe enclosing glass_do deadline fails the sequence."
    • changedInput schema / $defs / TypeArgs / properties / return / description
      Previous value: -"Optional observe folded into the result: \"snapshot\" (wait for the UI to settle, then\nfold a fresh a11y tree, also refreshing the snapshot cache), \"settle\" (wait for the UI\nto stop changing, text-only), or \"none\" (default). Not accepted inside a `glass_do`\n`type` action — use a `settle` action or the terminal `then` observe there."New value: +"Terminal observation: \"snapshot\" settles and refreshes/folds a11y, \"settle\" waits for\nvisual stability and returns text-only metadata, and \"none\" skips observation (default)."
    • addedInput schema / $defs / WaitForElementArgs
      Added value: +{
      +  "properties": {
      +    "condition": {
      +      "description": "What to wait for (default \"appears\"): appears|disappears|enabled|disabled|\nchecked|unchecked|selected|unselected|expanded|collapsed|focused|visible|hidden.\n`checked`/`unchecked` only match a checkable element (one exposing a real toggle\nstate) — a non-toggle element matches neither.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "description": {
      +      "description": "Substring of the element's accessible description (selector). Useful for unnamed\ncontrols whose platform label is exposed as a hint, help text, or description.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "interval_ms": {
      +      "description": "Poll interval (default 200ms — an a11y snapshot per tick).",
      +      "format": "uint64",
      +      "minimum": 0,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "name": {
      +      "description": "Substring of the element's accessible name (selector).",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "role": {
      +      "description": "Element role filter, e.g. \"Button\", \"ProgressBar\", \"Document\" (selector).",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "timeout_ms": {
      +      "description": "Give up after this long (default 10000ms); returns `{matched:false}`.",
      +      "format": "uint64",
      +      "minimum": 0,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "value": {
      +      "description": "Exact case-sensitive accessible value, requiring another selector and excluding `value_contains`.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "value_contains": {
      +      "description": "Additionally require the matched element's `value` to contain this substring.\nNot a standalone selector — `name`, `description`, and/or `role` is still required.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / timeout_ms
      Added value: +{
      +  "description": "Overall sequence budget in milliseconds. Omit for 30000; valid range\n1..=120000. One absolute deadline is shared by all actions and terminal\nobservations.",
      +  "format": "uint64",
      +  "minimum": 0,
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
  2. Changed31 schema fields changedv1.2.0
    • addedInput schema / $defs / ClickArgs / properties / count / description
      Added value: +"Consecutive clicks at this point (default 1); pass 2 for a double-click."
    • addedInput schema / $defs / ClickArgs / properties / x / description
      Added value: +"Click point x, window-relative — 0 is the window's left edge, not the screen's."
    • addedInput schema / $defs / ClickArgs / properties / y / description
      Added value: +"Click point y, window-relative — 0 is the window's top edge, not the screen's."
    • addedInput schema / $defs / DiffArgs / properties / name / description
      Added value: +"Name of a baseline saved by `glass_baseline_save`; an unsaved name errors\nrather than reporting no change."
    • addedInput schema / $defs / DragArgs / properties / button / description
      Added value: +"Button held for the drag: \"left\" (default), \"right\", or \"middle\"."
    • addedInput schema / $defs / DragArgs / properties / x1 / description
      Added value: +"Press-point x, window-relative — 0 is the window's left edge, not the screen's."
    • addedInput schema / $defs / DragArgs / properties / x2 / description
      Added value: +"Release-point x, window-relative."
    • addedInput schema / $defs / DragArgs / properties / y1 / description
      Added value: +"Press-point y, window-relative — 0 is the window's top edge, not the screen's."
    • addedInput schema / $defs / DragArgs / properties / y2 / description
      Added value: +"Release-point y, window-relative."
    • addedInput schema / $defs / MoveArgs / properties / x / description
      Added value: +"Destination x, window-relative — 0 is the window's left edge, not the screen's."
    • addedInput schema / $defs / MoveArgs / properties / y / description
      Added value: +"Destination y, window-relative — 0 is the window's top edge, not the screen's."
    • addedInput schema / $defs / RegionArgs / properties / height / description
      Added value: +"Height in pixels, extending down from `y`."
    • addedInput schema / $defs / RegionArgs / properties / width / description
      Added value: +"Width in pixels, extending right from `x`."
    • addedInput schema / $defs / RegionArgs / properties / x / description
      Added value: +"Left edge in pixels, window-relative — 0 is the window's left edge, not the screen's."
    • addedInput schema / $defs / RegionArgs / properties / y / description
      Added value: +"Top edge in pixels, window-relative — 0 is the window's top edge, not the screen's."
    • addedInput schema / $defs / ScrollArgs / properties / x / description
      Added value: +"Pointer x the wheel is aimed at, window-relative — apps scroll the container\nunder this point, so it selects which pane moves."
    • addedInput schema / $defs / ScrollArgs / properties / y / description
      Added value: +"Pointer y the wheel is aimed at, window-relative. See `x`."
    • addedInput schema / $defs / SettleArgs / properties / interval_ms / description
      Added value: +"How long to wait between capture ticks (default 100ms)."
    • addedInput schema / $defs / SettleArgs / properties / settle_frames / description
      Added value: +"Consecutive unchanged frames required before the UI counts as settled (default 3)."
    • addedInput schema / $defs / SettleArgs / properties / stability_region / description
      Added value: +"Window-relative sub-rectangle to watch for settling; when set, changes outside\nit are ignored."
    • addedInput schema / $defs / SettleArgs / properties / timeout_ms / description
      Added value: +"Give up after this long (default 5000ms); the sequence continues rather than\nfailing."
    • addedInput schema / $defs / SettleArgs / properties / tolerance / description
      Added value: +"Per-channel difference (0–255) two frames may have and still count as\nunchanged (default 0, exact match)."
    • addedInput schema / $defs / ThenArgs / properties / diff / description
      Added value: +"Compare against a saved baseline and return change stats as text."
    • addedInput schema / $defs / ThenArgs / properties / screenshot / description
      Added value: +"Capture the window as an image — the only field here that always spends image\ntokens; prefer `diff` when you just need to know whether something changed."
    • addedInput schema / $defs / ThenArgs / properties / settle / description
      Added value: +"Wait for the UI to stop changing first. Set this whenever `diff` or\n`screenshot` follows, or they observe a half-drawn frame."
    • addedInput schema / $defs / TypeArgs / properties / return
      Added value: +{
      +  "description": "Optional observe folded into the result: \"snapshot\" (wait for the UI to settle, then\nfold a fresh a11y tree, also refreshing the snapshot cache), \"settle\" (wait for the UI\nto stop changing, text-only), or \"none\" (default). Not accepted inside a `glass_do`\n`type` action — use a `settle` action or the terminal `then` observe there.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / $defs / TypeArgs / properties / text / description
      Added value: +"Text to type into whatever currently has keyboard focus — this tool does not\nfocus a field, so click or `glass_click_element` one first. Sent as synthetic\nkey events, not pasted, so an app's per-keystroke handlers run."
    • removedInput schema / description
      Removed value: -"Arguments for `glass_do`: an ordered, non-empty action sequence + optional observe."
    • addedInput schema / properties / actions / description
      Added value: +"Actions to run in order; must be non-empty. Fail-fast — the first failing\naction aborts the rest and reports its index, so a partial sequence may\nalready have landed."
    • addedInput schema / properties / then / description
      Added value: +"Optional observe run once after the last action, in the order settle → diff\n→ screenshot."
    • removedInput schema / title
      Removed value: -"DoArgs"
  3. Addedv1.1.0
  4. Removedv1.0.3
  5. Addedv1.0.2

TDQS

A4.8/5.0
Behavior5/5

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

Annotations are minimal (three negative hints), so the description carries the full burden and delivers: fail-fast semantics on action errors, sequence deadline, and unmatched batched predicates; the exact error outcome shapes (completed/failed/unexecuted in the MCP error); the preflight invalid_sequence path; terminal_steps additions; and hard limits (64 actions, 65536 bytes). The explicit 'No variables, result bindings, interpolation…' dislosure prevents false expectations. No contradiction with annotations.

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?

Dense but every sentence carries distinct information, and the most actionable guidance (when to prefer, canonical flow, when not to) is front-loaded. A mild structural ding for presenting this much detail as one unbroken wall of text without bullets or paragraph breaks.

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?

With no output schema, the description documents result shapes: structured completed outcomes per action on success, and the completed/failed/unexecuted split in MCP errors on mid-sequence failure. Combined with a schema that fully documents every action variant and the then-args, nothing an agent needs to invoke it correctly or recover from failures is 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?

Schema coverage is 100%, so the baseline is 3. The description earns above baseline by adding constraints the schema omits — max 64 actions, 65536 compact argument bytes, and the one shared absolute deadline for timeout_ms — plus fail-fast ordering for the actions array.

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?

Neames a specific operation — running multiple fixed ordered UI actions (click, set_value, wait_for_element, etc.) in one call — and explicitly contrasts itself with the standalone siblings. The phrase 'Run fixed static ordered actions in one call' plus the enumerated action list make the resource and scope unmistakable.

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?

Explicitly states when to prefer this tool: 'Prefer glass_do whenever at least two upcoming actions or verification waits are already known.' It also gives the canonical form flow and the exclusion condition — 'Use standalone tools only when the next step depends on newly observed state.' This is textbook when/when-not guidance with alternatives named.

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

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