Skip to main content
Glama

Search the web

web_search
Read-only

Search the web and get the top results (title, URL, snippet). Set read (1-5) to also get the full text of the top results as Markdown, so you can answer from the pages themselves. Use it for current events, facts you are unsure about, documentation and anything after your training data.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "web_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
readNoHow many top results to read in full (0-5). Default 0.
timeNoOnly results from this recent period.
queryYesSearch query, e.g. "docker compose healthcheck example"
countryNoTwo-letter country code for local results, e.g. us, gb, de, vn. Default worldwide.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety and open-world scope are covered. The description adds non-annotation context: what a result record contains, and that setting read fetches full pages as Markdown, which implicitly signals extra cost/latency when read > 0. Rate limits, result counts, and freshness behavior are still unstated.

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?

Two sentences, front-loaded with what the tool returns before the usage guidance and the read-mode behavior. The clause "so you can answer from the pages themselves" is justificatory but does useful work in explaining why to raise read; minor verbosity only.

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 no output schema, the description carries the burden of describing returns and does so for both modes (result stubs vs. full Markdown text). It is nearly complete for a four-parameter read-only search tool; how many results are returned and whether full-text reads apply only to the top N are details an agent might still want.

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, and the description earns an increment by explaining the purpose and consequence of read (1-5) — full text as Markdown so the agent can answer from the pages — which is rationale the schema does not convey. The time and country parameters are left entirely to the schema.

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 first sentence states a specific verb and resource ("Search the web") and immediately discloses the return shape (title, URL, snippet), so an agent knows exactly what it gets back. It does not distinguish itself from nearby siblings like news_search or read_webpage, leaving the boundary to be inferred.

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

Usage Guidelines4/5

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

It gives concrete when-to-use triggers: current events, uncertain facts, documentation, and anything after the training cutoff. It offers no explicit exclusions or named alternatives (e.g., news_search for dated news, read_webpage for a URL you already have), so an agent must infer those routing decisions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.