Skip to main content
Glama

web_search

Find answers to your questions using Gemini's automatic web search, which provides responses with potential web sources.

Instructions

Ask Gemini queries with web search context.

Note: This uses Gemini CLI's automatic web search capability. The model determines when to search based on query context. Best-effort web search - not guaranteed for every query.

Args: query: Search query or question to look up on the web directory: Working directory for command execution model: Optional model alias (flash, pro, or custom) timeout_seconds: Optional per-call timeout override in seconds

Returns: Gemini's response with potential web sources

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
directoryNo.
modelNo
timeout_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the burden. It discloses the best-effort and model-determined web search behavior. However, it does not mention safety, authentication, or other behavioral traits beyond the core functionality.

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 concise and well-structured. It front-loads the purpose, includes a note for important caveats, and clearly separates args and returns. Every sentence adds value.

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 the presence of an output schema and the tool's moderate complexity, the description sufficiently covers the tool's behavior and parameters. It could add more detail on when web search is triggered, but overall it is complete enough for an agent to use the tool correctly.

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 0%, so the description must compensate. It provides brief explanations for all four parameters, adding meaning beyond the schema's type and default info. However, explanations are minimal, e.g., 'directory' is not clearly contextualized.

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 the tool asks Gemini queries with web search context, using a specific verb and resource. It distinguishes from siblings by emphasizing web search capability, which consult_gemini likely lacks.

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

Usage Guidelines3/5

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

The description notes that web search is best-effort and model-determined, providing some usage context. However, it does not explicitly compare with sibling tools or state when to use this vs alternatives.

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/FojleRabbiRabib/gemini-bridge'

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