Skip to main content
Glama

query

Read-only

Inspect a connected computer without changing it—windows as controls, screenshots, text/files, timelines, progress, disk usage, or skills—only when needed facts cannot be inferred.

Instructions

Look at the computer that connect connected to, without changing anything on it: what: the kind of look, args: its arguments (* = needed), help: true for a kind's full description and every argument. Look only when the next step needs something you can't guess (what a page lists, why a plan failed): a plan (act { do: "run" }) and every action already report what changed. Reading the screen as controls (observe) is cheaper and more exact than a screenshot; take a screenshot for layout, images and programs that draw their own UI. Doing things, and skills import and forget, is act's.

  • observe: Read a window as text: its controls (buttons, text boxes, checkboxes, menus, list items, links, text) as a tree, each with a reference like [e12], its state and value, and its centre @(x,y). Args: window, query, role, image, ocr, offscreen, max

  • screenshot: Capture the screen as an image. Args: window, marks, display, x0, y0, x1, y1, maxWidth

  • read_text: Read text. Args: target, window, role, nth, x0, y0, x1, y1, display, source

  • wait_for: Wait until something happens, and return the moment it does. Args: appears, text, stable, seconds, gone, window, ocr, until, x0, y0, x1, y1, everyMs, confirm, timeoutSec, after

  • timeline: What happened to the windows lately, from the computer's own timeline (no looking needed): what came up, went away, came to the front, was minimized or restored, with how long ago. Args: seconds, window

  • progress: How queued plans went: a report for each that finished since last asked (✓/✗ per step, and where things stand after a failure), and where the running one is. Args: waitSec

  • skills: Find skills for a task or window, show a saved skill, or export skills. Args: query, window, show, export, max

  • list_files: A folder's contents (modified time, size, name). Args: path, pattern, maxResults

  • read_file: Read a text file on the computer, with line numbers. Args: path*, offset, limit

  • search_files: Search file contents in a file or folder (regular expression). Args: path*, pattern*, glob, ignoreCase, context, maxResults

  • disk_usage: Show where disk space goes under a folder: the largest subfolders as a tree (size and share of the parent) and the largest files. Args: path, depth, perFolder, topFiles

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": {
      "what": "<what>"
    },
    "name": "query"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoIts arguments
helpNoOnly say what this kind does and takes
whatYesThe kind of look

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

readOnlyHint already declares the safety profile, so the 'without changing anything' line is partly redundant, but the description adds real value: the cost/efficiency guidance ('observe is cheaper and more exact than a screenshot'), the per-kind behavior of all 11 sub-operations, and the hint that plans/actions already report changes. It stops short of permissions, rate limits, or per-kind return payloads.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The rule is front-loaded and the kind list is scannable, but the opening is a dense run-on sentence with awkward grammar, and the 'look only when...' clause overlaps with the later 'reading the screen as controls is cheaper' guidance. Tightening the prose would improve it without losing content.

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 dispatcher fronting 11 sub-operations with no output schema, the description covers what each kind does, what arguments it takes, and roughly what it returns (control tree, captured image, timeline events, per-plan reports). That is sufficient for an agent to choose a kind and call it.

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% and the enum is documented, but the description goes well beyond it by enumerating each kind's accepted arguments and what each kind does — information the schema's bare enum values do not carry. The '*' needed-argument convention is also explained.

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?

The opening states the verb and resource — look at the computer without changing anything — and explicitly routes mutations to the sibling act. The core intent is unmistakable, though the phrasing is garbled ('the computer that connect connected to') and the tool name 'query' is too generic to help on its own.

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 when-to-use ('only when the next step needs something you can't guess'), when-not ('a plan and every action already report what changed'), and named alternatives within the tool (observe vs screenshot, with the cost/exactness tradeoff spelled out) plus a boundary against act for doing things.

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