Skip to main content
Glama
@aifirelab/mcp-pinchtab

@aifirelab/mcp-pinchtab

Official
by Ai-firelab

wait_for_selector

Waits for a CSS selector to appear on the page, polling every 500ms until it is found or the timeout is reached.

Instructions

Wait for a CSS selector to appear on the page. Polls every 500ms up to the timeout.

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": {
      "selector": "<selector>"
    },
    "name": "wait_for_selector"
  }
}

Input Schema

NameRequiredDescriptionDefault
selectorYesCSS selector to wait for (e.g. '#login-form', '.loaded')
timeoutMsNoMaximum wait time in ms (default: 5000, max: 15000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses the 500ms polling cadence and bounded wait, but omits key behavior: what happens on timeout (throw, return false, null), whether it waits for visibility or mere DOM presence, and whether hidden elements match.

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?

Two short front-loaded sentences with no wasted words. The core action comes first, followed by the polling detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter polling tool with no output schema, the description covers the basic mechanics but leaves out the result and timeout-failure semantics that an agent needs in order to handle the call correctly.

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 description coverage is 100%, with selector examples and timeout default/max already documented. The description adds the polling interval, which is not in the schema, but otherwise does not enrich parameter meaning beyond what the schema provides.

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?

States a specific verb and resource: 'Wait for a CSS selector to appear on the page.' That is clear and distinct from sibling actions like click or fill, though it does not explicitly contrast with them.

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

Usage Guidelines3/5

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

Usage is implied by 'wait for ... to appear' for dynamic pages, but there is no explicit guidance on when to use this versus snapshot or get_text, nor any prerequisites or failure-handling advice.

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