Skip to main content
Glama

web_search

Read-onlyIdempotent

Search the web for current information, news, or docs beyond your knowledge cutoff; returns titles, URLs, dates, and snippets, and supports multiple queries to research a topic from different angles.

Instructions

Search the web for current/recent information, news, documentation, or anything beyond your knowledge cutoff. Returns titles, URLs, dates and snippets. Pass several 'queries' to research a topic from different angles in one call (results merged and deduplicated). Uses Exa and/or Tavily depending on 'provider'.

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": "web_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoLimit results to these domains (e.g. 'docs.python.org', or comma-separated 'a.com,b.org')
freshNoBypass the result cache and force a new request
queryNoSearch query — be specific for best results
endDateNoOnly results published on/before this date (YYYY-MM-DD)
queriesNoSeveral queries at once (max 5), run in parallel and merged — use instead of, or in addition to, 'query'
recencyNoOnly results published within this period (ignored when startDate is set)
categoryNoExa content category: 'news', 'publication' (papers/articles), 'company', 'personal site' (blogs), 'financial report', 'people'. Note: with 'company'/'people', site and date filters are ignored by Exa.
providerNo'auto' (default: Exa first, Tavily on error), 'exa', 'tavily', or 'both' (Exa + Tavily in parallel, merged with rank fusion and deduplicated — broader coverage for research, uses credits on both). Defaults to the configured provider.
livecrawlNoExa freshness: 'always' (fetch live), 'fallback' (default), 'never' (cache only)
startDateNoOnly results published on/after this date (YYYY-MM-DD)
numResultsNoResults per query (1–10, default 5)
excludeSiteNoDomains to leave out of the results, e.g. ['pinterest.com', 'quora.com']
maxPerDomainNoMax results from one domain (default 3; 0 = unlimited; not applied when 'site' is set)
includeAnswerNoAlso return a short AI-generated answer (Tavily answer and/or Exa /answer — needs a key for that provider). In 'both' mode answers from both are shown for cross-checking.
maxCharsPerResultNoMax characters of text per result (default 1200, 100–10000). Lower it for compact overviews, raise it when snippets need more detail

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (read-only, open-world, idempotent, non-destructive), yet the description still adds real behavior: multi-query results are merged and deduplicated, 'both' mode uses rank fusion and consumes credits on both providers, and provider fallback occurs on error. This is context an agent cannot get from the annotations or schema alone.

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?

Four sentences, front-loaded with purpose, then return shape, then the multi-query tactic, then provider routing. No filler, and each sentence carries information the agent needs.

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?

For a 15-parameter, no-output-schema tool, the description covers purpose, return shape, multi-query merging and provider/caching behavior well. Minor gaps remain: no note on empty/failed results or on the API-key requirement, which is only implied in the schema's 'includeAnswer' text.

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 all 15 parameters, including enums for provider, recency, category and livecrawl. The description only gestures at 'provider' and the merging of 'queries', largely restating what the schema explains in more detail, so baseline 3 applies.

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 ("Search the web") plus the exact use case (current/recent info, news, docs, beyond knowledge cutoff) and the return shape (titles, URLs, dates, snippets). It also distinguishes itself from the provider-specific siblings by explaining it routes through Exa and/or Tavily depending on 'provider'.

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 clear trigger conditions (current info, news, docs, anything past the cutoff) and a usage tactic — pass several 'queries' to cover a topic from different angles in one call. It lacks explicit when-not guidance or named alternatives (e.g., use web_get_contents to read a specific page, or web_search_exa for a single provider).

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