Skip to main content
Glama
InDate
by InDate

detectModals

Identify modal dialog elements in a browser tab, with options to filter by z-index and viewport coverage.

Instructions

Detect modals

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
minZIndexNoMin z-index to consider
connectionReasonYesConnection reference (use the reference from launchChrome output, e.g., "unnamed-connection-default" or your renamed tab)
includeBackdropsNoInclude backdrop/overlay elements
minViewportCoverageNoMin viewport coverage (0-1, default: 0.25)
Behavior1/5

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

No annotations are provided, and the description omits any behavioral traits. It does not disclose whether the tool reads the DOM, modifies state, returns results, or requires specific connection setup. The agent has no insight into side effects or limitations.

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

Conciseness2/5

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

The description is extremely concise (two words), but this brevity sacrifices clarity and completeness. While front-loaded, it fails to convey any useful information beyond the tool name, making it under-specified rather than efficiently concise.

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

Completeness1/5

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

Given the lack of output schema and annotations, the description should explain the return value, the interpretation of 'detect modals', and how the parameters affect behavior. It provides none of this, leaving the tool's complete behavior ambiguous for a moderate-complexity tool with 4 parameters.

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% with individual parameter descriptions. However, the tool description adds no extra meaning to the parameters. The baseline of 3 is appropriate as the schema already documents each field adequately.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Detect modals' is vague. It states a verb and resource but does not clarify what detection entails (e.g., finding modals in the DOM, checking for an open modal). Without context, the agent may confuse this with inspection or sibling tool 'dismissModal'.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives like 'dismissModal' or 'inspect'. The agent receives no hints about prerequisites, expected state, or appropriate scenarios.

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/InDate/cdp-tools-mcp'

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