Skip to main content
Glama
dwgx

SmartCLI

by dwgx

wait_visual_change

Read-onlyIdempotent

Wait for the terminal display to change (text, selection styling, or cursor) after navigation keys. Use a baseline hash or current state; timeout returns the latest snapshot without error.

Instructions

Wait for text, selection styling, or cursor position to change.

Prefer this after arrow/navigation keys in full-screen TUIs. Pass a prior visual_hash, or omit it to use the current rendered state as the baseline. Timeout is not an error: the call returns ok=true with changed=false plus the final screen snapshot.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sidYes
timeout_msNo
baseline_hashNo
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true. The description adds valuable behavioral details: timeout is not an error, returns ok=true with changed=false plus the final screen snapshot, and explains how the baseline is chosen. This goes beyond the annotations without contradicting them.

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?

Three sentences, front-loaded with the core purpose, then usage guidance, then timeout behavior. Every sentence earns its place, with no redundancy or fluff.

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?

The description covers purpose, usage context, baseline behavior, and timeout semantics. Since there is no output schema, it reasonably explains the return contract. Minor gap: 'visual_hash' is not formally defined, but the meaning is clear from context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description must compensate. It explains baseline_hash (referred to as 'visual_hash') and how to use it, but it does not explain sid at all. Timeout_ms is self-explanatory from its name and default. This is partial compensation, not complete.

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 clearly states the tool's action: waiting for visual changes in text, selection styling, or cursor position. This specific verb+resource phrasing distinguishes it from siblings like wait_regex, which focuses on textual patterns.

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?

It gives explicit context: 'Prefer this after arrow/navigation keys in full-screen TUIs,' telling the agent when to use this tool. It doesn't explicitly name alternatives, but the preference direction is clear and helpful.

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/dwgx/SmartCLI'

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