Skip to main content
Glama

query

Queries DOM elements via CSS selector. Automatically waits for Angular and element to exist. Supports children, text, and skip wait options.

Instructions

Query DOM elements by CSS selector. Automatically waits for Angular and element to exist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYesTarget tab: index (0=first, -1=last) or WebSocket URL from list_targets
selectorYesCSS selector to query
include_childrenNoInclude children preview (first 10, with tagName, id, className)
include_textNoInclude textContent (truncated to 200 chars)
skip_waitNoSkip Angular/element wait (use when element definitely exists)
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses automatic waiting behavior, but does not mention error handling, return value format, or what happens if the element is not found. This leaves notable gaps in transparency.

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 two sentences long, front-loading the purpose and adding key behavioral info without any fluff. Every sentence earns its place.

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?

Given no output schema, the description should explain the return value and structure, but it does not. It also lacks error handling details and guidance among siblings, making it incomplete for a tool with 5 parameters and no annotations.

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?

Schema coverage is 100%, so baseline is 3. The description adds no extra meaning beyond the parameter descriptions already in the schema, providing no additional semantic value.

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 'Query DOM elements by CSS selector,' specifying the verb (query), resource (DOM elements), and mechanism (CSS selector). This distinguishes it from sibling tools like execute_js (execute arbitrary JS), list_targets (list available targets), and screenshot (capture image).

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?

The description says 'Automatically waits for Angular and element to exist,' which implies it is ideal when elements may load asynchronously. However, it does not explicitly state when not to use it or compare it to siblings, missing explicit exclusion guidance.

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/halilc4/tabby-mcp'

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