Skip to main content
Glama
sydasif
by sydasif

web_search

Read-onlyIdempotent

Search the web or news articles with filters for time, region, and safe search. Returns results in markdown or JSON.

Instructions

Unified search tool for web content and news.

Args: query: Search query string search_type: Type of search ('text' or 'news') max_results: Max number of results to return (default 5) time_range: Time filter ('d', 'w', 'm', 'y') or None region: Geographic region (e.g. 'us-en', 'uk-en') or None safesearch: Safe search level ('moderate', 'off', 'on') page: Page number for pagination (default 1) backend: Backend to use ('auto', 'legacy', 'api') response_format: Output format - 'markdown' for human-readable, 'json' for structured data

Returns: str: Markdown-formatted search results (when response_format="markdown") SearchResponse: Raw search results (when response_format="json") ErrorResponse: Error response if applicable

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
search_typeNotext
max_resultsNo
time_rangeNo
regionNo
safesearchNomoderate
pageNo
backendNoauto
response_formatNomarkdown

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already confirm readOnly, idempotent, openWorld. The description adds useful behavioral context: it explains the response format depends on the 'response_format' parameter, and lists possible outputs. This goes beyond the 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?

The description is well-structured with 'Args' and 'Returns' sections. It is succinct yet covers all parameters. Slightly verbose due to listing all parameters, but appropriate for a complex tool.

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?

Given 9 parameters, 0% schema coverage, and an output schema, the description is fairly complete. It explains return formats and all parameters. Minor gaps: pagination behavior beyond the 'page' parameter and error handling are not elaborated.

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?

With 0% schema coverage, the description compensates by providing a one-line explanation for each of the 9 parameters. While concise, it adds meaningful context over the bare 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?

The description clearly states it is a 'Unified search tool for web content and news,' which is a specific verb and resource. It implicitly distinguishes from siblings like fetch_page (single page fetching) and search_docs (internal docs) by being a general web and news search.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives such as fetch_page or search_docs. The description lacks context for tool selection.

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/sydasif/web-search-mcp'

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