Skip to main content
Glama
Comet MCP Server

Comet MCP Server

by AdilShaikh1

comet_wait

Waits for a specific CSS selector to appear or a fixed delay (0-120 seconds) after navigation or clicks, handling asynchronously loaded content before reading the page.

Instructions

Wait for a specific element to appear or a fixed duration.

Use after comet_click or comet_navigate when content loads asynchronously. Provide either selector OR seconds, not both. comet_search returns before the answer is ready, so wait with comet_wait or a fixed delay, then call comet_read_page.

Args: selector: CSS selector to wait for (e.g. 'div.results'). seconds: Fixed seconds to wait (0-120).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "comet_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
secondsNo
selectorNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It does disclose the mutual-exclusion constraint and the 0-120 second bound, which are real behavioral facts not in the schema, but it says nothing about what happens on selector timeout, whether the call errors or returns a falsy result, or what the default is when neither argument is supplied.

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?

Front-loaded with the one-line purpose, then usage rules, then an Args block — a sensible order for an agent deciding whether to call. A few words are redundant ('Wait for a specific element to appear' repeats the title line, and 'or a fixed delay' restates the seconds option), but nothing meaningfully wasteful.

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 tool is simple (two optional params, output schema present so return values need no explanation), and the description covers purpose, sequencing, exclusivity, and the seconds range. The only material omission is timeout/failure semantics, which matters for a wait primitive.

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 description coverage is 0%, so the description must compensate, and it mostly does: selector is explained as a CSS selector with a concrete example ('div.results'), and seconds gets a range (0-120) that the bare schema does not express. The either/or relationship between the two parameters is also clarified, though neither parameter is marked as optional-by-default in prose.

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?

States a specific verb and resource ('wait for a specific element to appear or a fixed duration') and immediately distinguishes itself from the polling-adjacent siblings by explaining that comet_search returns before the answer is ready. An agent can tell exactly what this tool accomplishes without opening the schema.

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?

Gives explicit when-to-use guidance ('use after comet_click or comet_navigate when content loads asynchronously'), a hard exclusion rule ('provide either selector OR seconds, not both'), and a follow-up sequence ('wait ... then call comet_read_page'). It names the sibling (comet_search) whose behavior motivates the call instead of leaving that inference to the agent.

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