Skip to main content
Glama

Web search

web_search
Read-onlyIdempotent

General web search. mode=index searches AgentWeb's own indexed pages with a short time budget; mode=hybrid also queries external sources (the default). Returns the top web results (title, URL, snippet) for a query as a short numbered list: general web pages, not just businesses. Use for research, finding pages, and current info. Add site:docs.python.org to the query to search one site. Pair with web_fetch to read a result.

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

Input Schema

NameRequiredDescriptionDefault
qYesSearch query
numNoNumber of results (default 10, max 20)
modeNohybrid
formatNotext (default) is short and readable. json is the full API response.text
snippet_charsNoLength of each snippet in mode=index (default 240). A longer snippet often answers the question without a fetch

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / format
      Added value: +{
      +  "default": "text",
      +  "description": "text (default) is short and readable. json is the full API response.",
      +  "enum": [
      +    "text",
      +    "json"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / snippet_chars
      Added value: +{
      +  "default": 240,
      +  "description": "Length of each snippet in mode=index (default 240). A longer snippet often answers the question without a fetch",
      +  "maximum": 1000,
      +  "minimum": 120,
      +  "type": "integer"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, so the safety profile is covered. The description adds real behavioral context beyond that: mode=index uses a short time budget against AgentWeb's own index, hybrid (the default) also hits external sources, and longer snippets can replace a fetch — useful cost/latency information.

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?

Five dense sentences, each carrying distinct information: purpose, mode semantics, return shape, use cases, and the fetch pairing. Purpose and mode are front-loaded; nothing is repeated from the schema verbatim.

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?

With no output schema and five parameters, the description appropriately describes the return value (numbered list of title/URL/snippet) and the index/hybrid distinction. Minor gaps remain — no mention of how errors or empty results are reported, and no rate-limit context for the open-world hybrid mode.

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 80%, but the one undescribed parameter is the important one — mode — and the description explains exactly what index vs hybrid do and which is the default. It also implies snippet_chars' tradeoff ('often answers the question without a fetch'), adding motivation the schema lacks. q, num and format are left to the schema.

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 ('General web search') plus scope: 'general web pages, not just businesses,' which directly separates it from search_businesses, local_search and search_attractions. The mode breakdown and return shape (title, URL, snippet) make the tool's identity unmistakable.

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

Usage Guidelines4/5

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

Gives concrete usage contexts ('research, finding pages, and current info'), a follow-up pattern ('Pair with web_fetch to read a result'), and a query trick (site:docs.python.org). It stops short of an explicit when-not-to-use clause, relying on the 'not just businesses' phrasing to steer agents away from the vertical search siblings.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources