Skip to main content
Glama

search

Find content on the current site or web by auto-detecting the page's own input field; fall back to Google when none exists.

Instructions

Search for content on the current site or web. When to use: to find content on the current site or web. Automatically detects the site's search input (Amazon, YouTube, GitHub, etc.) via DOM heuristics -- only falls back to Google when no site search exists. Returns search results status. Related: read_page (read search results after searching), click (click a specific search result). Multi-agent: agent-scoped tabs; cross-agent reject with TAB_NOT_OWNED; cap configurable (default 8, 1-64). Pass tab_id only when this agent owns multiple tabs; auto-resolves otherwise.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query text
clientYesAllowlisted client label. Validated against the shared v0.9.36 server/extension allowlist (see mcp/src/tools/visual-session.ts -- MCP_VISUAL_CLIENT_LABELS). Required.
tab_idNoOptional. Tab id this action targets. Omit when the calling agent owns exactly one tab; pass to disambiguate when the agent owns multiple. Single-tab agents and legacy popup/sidepanel/autopilot do not need to pass this.
is_finalNoWhen true, the visual session clears immediately after this tool resolves. Optional (default false).
visual_reasonYesShort human-readable reason shown in the overlay (for example, "Logging in to GitHub"). Required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and mostly succeeds: it discloses automatic site-search detection vs. Google fallback, that it returns a results status, multi-agent tab scoping, the TAB_NOT_OWNED cross-agent rejection, and a concurrency cap (default 8, range 1-64). It does not cover permissions/auth or whether the search mutates page state.

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

Conciseness3/5

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

The opening two sentences are redundant, with the "When to use" clause re-stating the purpose verbatim. The remaining content (detection heuristics, related tools, multi-agent semantics) is dense and earns its place, but the front-loaded duplication wastes the most prominent position.

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?

No output schema exists, and the description gives only "Returns search results status" as a return-value hint, which is thin. However, it compensates with rich operational context: detection behavior, sibling tool routing, and multi-agent tab ownership rules. For a 5-param browser-automation tool with zero annotations, this is close to complete but leaves return format and failure modes underspecified.

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%, so the schema already documents query, client, tab_id, is_final, and visual_reason in detail. The description's tab_id guidance (pass only when the agent owns multiple tabs; auto-resolves otherwise) largely duplicates the schema text. Baseline 3 is appropriate when the schema does the heavy lifting.

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 ("Search for content on the current site or web") and adds mechanism detail (DOM heuristic detection of site search inputs, Google fallback). An agent can distinguish this from sibling search tools like search_memory and search_capabilities, though that differentiation is left implicit.

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?

The "When to use" clause merely restates the purpose ("to find content on the current site or web"), which is circular rather than directive. It does, however, name follow-on tools (read_page, click) and describe the search-then-read-then-click flow, giving implied sequencing. No explicit when-not or alternative selection criteria are given.

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