Skip to main content
Glama

web_search

Read-onlyIdempotent

Search the public web from an AI agent and return source titles, URLs, and snippets via DuckDuckGo or Brave; provider errors are reported clearly.

Instructions

Search the public web and return source titles, URLs and snippets. Uses DuckDuckGo without a key, or Brave when BRIDGE_BRAVE_API_KEY is configured. Provider errors are reported explicitly. [v1.0.0; permissions: none]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
queryYesWeb search query
providerNoDefault auto chooses Brave when its API key is configured, otherwise DuckDuckGo.
timeoutMsNoTotal timeout in milliseconds, including DNS and redirects; default 15000.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
toolYestool name
errorYes
statusYes
versionYessemantic version

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, openWorld, non-destructive), but the description adds genuinely new behavioral facts: keyless DuckDuckGo fallback, Brave activation when BRIDGE_BRAVE_API_KEY is set, explicit provider-error reporting, and 'permissions: none'. It does not discuss rate limits or result freshness, keeping it short of a 5.

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?

Front-loaded with purpose and return format, followed by provider and error behavior in tight sentences. The trailing '[v1.0.0; permissions: none]' tag is mildly noisy but carries the useful 'no permissions required' signal.

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?

With an output schema present and rich annotations, the description needn't explain return values, and it is complete enough to call correctly, including provider fallback behavior. The only real omission is guidance on choosing this tool over web_fetch.

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 75% and the provider enum already documents auto-selection, but the description reinforces the exact key-configured logic that determines Brave vs DuckDuckGo, which is the trickiest parameter to reason about. limit and timeoutMs still get no treatment in the description, so it stops short of a 5.

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 public web') and even declares the return shape (titles, URLs, snippets). This cleanly separates it from the sibling web_fetch, which retrieves a known URL rather than discovering one.

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 implies when it applies (finding web sources) and explains provider selection, but never states when NOT to use it or routes to web_fetch for known URLs. Usage is implied rather than explicit.

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