Skip to main content
Glama

Web Search

web_search
Read-onlyIdempotent

Search the web with Google Grounding, focusing results by topic and controlling output length with response style (concise, detailed, bullets, or code).

Instructions

Google Search with Grounding. Set topic to scope results; responseStyle controls output length.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query.
topicNoDomain focus (e.g. "TypeScript", "Docker"). Set to avoid irrelevant results.
responseStyleNoconcise: 2-4 sentences. detailed: full explanation. bullets: list. code_focused: code snippets.concise
maxCharsNoTruncate response text to this many characters. Default: no truncation.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesWhether the tool completed successfully.
resultNoSuccessful result payload.
errorNoError payload when ok is false.
Behavior3/5

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

Annotations already declare readOnly, idempotent, and non-destructive, so the description adds minimal behavioral insight beyond the grounding mention. 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.

Conciseness5/5

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

Two short, front-loaded sentences with no fluff. Every phrase is meaningful, making it efficient for an AI to parse quickly.

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 rich schema and output schema existence, the description adequately conveys the tool's purpose and key features. Missing details like grounding explanation are minor given the tool's simplicity.

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 description coverage is 100%, so the baseline is 3. The description adds useful context: 'Set topic to scope results' and 'responseStyle controls output length', which clarifies usage beyond the schema's parameter descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Google Search with Grounding' clearly identifies the tool as a web search engine, and the sibling tools are code-oriented, so it distinguishes well. However, 'Grounding' is not explained, slightly reducing clarity.

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?

Gives basic guidance on using topic and responseStyle, but does not specify when to use this search tool versus any alternative (though no other search tool exists among siblings). Lacks explicit context for when not to use.

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/j0hanz/code-lens'

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