Skip to main content
Glama

Web search

web_search
Read-only

Search the web with parallel queries, filter by freshness, and use operators like 'site:' or 'filetype:' to get targeted snippets and links for time-sensitive or specific content.

Instructions

Searches the web for one or more queries and returns snippets with links. Queries run in parallel. IMPORTANT: Always write search queries in English for best results and relevance. For images use the 'web_search_images' tool; both tools can be called in the same turn when a query needs text and images.

Freshness: set the 'date' field to restrict results by recency — 'd' (past day), 'w' (past week), 'm' (past month), 'y' (past year). Use it to prefer the most recent pages when the user asks about news or anything time-sensitive; leave it empty for all time.

Query operators (put them inside the query string itself): 'site:example.com term' limits the search to one site; 'filetype:pdf term' restricts to a file type; double quotes "exact phrase" force an exact match; a leading '-' excludes a word (term -foo); 'intitle:term' requires the word in the page title. Operators can be combined, e.g. 'site:arxiv.org filetype:pdf transformers'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNofilter results by freshness: 'd' past day, 'w' past week, 'm' past month, 'y' past year; empty means all time
queriesYessearch queries in English, executed in parallel
timeout_msNotimeout for the whole call in milliseconds
max_resultsNomaximum number of snippets per query

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultsYes
metadataYes
Behavior4/5

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

Annotations already mark readOnlyHint=true, and the description adds meaningful behavioral context: parallel query execution, the English-language requirement, freshness filter semantics, and query operator behavior. No contradiction with annotations.

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

Conciseness4/5

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

Purpose is front-loaded and the alternative tool is named early. The later operator list is dense but each element earns its place; only mild redundancy with the schema's date descriptions.

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 an output schema present, return values need no explanation. The description covers purpose, alternative tools, language guidance, recency filtering, and operator syntax, making it complete for correct invocation.

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. The description adds real value beyond the schema by explaining query operators (site:, filetype:, quotes, minus, intitle:) and giving usage rationale for the 'date' parameter.

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: 'Searches the web for one or more queries and returns snippets with links.' Explicitly differentiates from web_search_images, so an agent can distinguish this tool without inspecting schemas.

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?

Provides explicit guidance on when to use web_search_images instead, and notes both tools can be called in the same turn. Also gives clear direction on when to set the 'date' field for time-sensitive queries.

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/Role1776/mcp-retrieval'

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