Skip to main content
Glama

Web search

web_search
Read-only

Search Google via your local Chrome and read the top results as clean Markdown within a set token budget, so you get current external information without API keys.

Instructions

Search the web and read the best results. Searches Google in the user's local Chrome (falls back to DuckDuckGo or Bing if Google is unavailable), opens the top results, and returns clean Markdown: Google's answer box if there is one, the most relevant sections of each page read (with its URL), and a short list of other results. Use it for anything that needs current or external information. If you already have a URL, call web_fetch instead (a URL given here is fetched directly).

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": {
      "query": "<query>"
    },
    "name": "web_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
readNoHow many of the top results to open and read. 0 returns only titles, URLs and snippets.
siteNoOnly return results from this domain, e.g. "docs.python.org".
queryYesWhat to search for, in plain words. Google operators like site: and "quotes" work.
freshnessNoOnly return results published within this period.any
max_tokensNoApproximate size limit for the whole answer, in tokens.
max_resultsNoHow many search results to consider.
return_imagesNoAlso return the main images of the pages read (for vision models).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint, so the description adds real value by naming the backend (local Chrome Google, DuckDuckGo/Bing fallback) and spelling out what is returned: answer box, read page sections with URLs, and a residual result list. It stops short of stating failure modes or rate limits, but the return-shape disclosure is substantial.

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 front-loaded with purpose, then backend and return format, then the routing rule. Every clause carries distinct information and nothing is repeated from the schema or annotations.

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

Completeness5/5

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

With no output schema, the description compensates by describing the returned Markdown structure in detail. All seven parameters are fully documented in the schema, and the tool's open-world behavior and backend fallback are disclosed.

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 coverage is 100%, so the baseline is 3, and the description earns an extra point by explaining that "read" corresponds to opening/reading top results and that a URL supplied as the query is fetched directly. Those are behavioral meanings not captured in the schema text.

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 leads with a specific verb and resource ("Search the web and read the best results") and explicitly contrasts itself with the sibling: "If you already have a URL, call web_fetch instead." An agent can distinguish web_search from web_fetch without opening either 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?

It states the positive condition ("anything that needs current or external information") and the exclusion with the named alternative (a URL in hand routes to web_fetch). It even clarifies the edge case that a URL passed to this tool is fetched directly rather than treated as a query.

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

Deploy Server

Other Tools