Skip to main content
Glama

Web Search

webSearch
Read-only

Search the web and return ranked results with titles, URLs, descriptions, and sources.

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": "webSearch"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesSearch query text, trimmed before sending, containing 1 to 1000 characters.
countryNoTwo-letter country code to search from, sent in lowercase.us
numResultsNoNumber of search results to request, as an integer from 10 to 100. Fewer results may be returned.

Output Schema

NameRequiredDescriptionDefault
dataYesParsed response JSON or text.
errorNo
headersYesResponse headers with credentials removed.
status_codeYesUpstream HTTP status, or null for a network failure.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false, so the safety and open-world profile is covered structurally. The description adds the composition of a result (titles, URLs, descriptions, sources), which is useful, but says nothing about freshness, rate limits, pagination, or ranking behavior beyond the word 'ranked'.

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?

A single front-loaded sentence with zero filler: verb, resource, and return shape in one pass. Nothing is repeated from the title or annotations and no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema plus rich annotations and full schema coverage mean the structured fields carry most of the burden, and the description covers purpose and result shape. What is missing is any positioning against the scrape siblings or note on result variability ('fewer results may be returned' appears only in the schema).

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 100%, with query length bounds, country code format/default, and the 10-100 result range all documented in the schema itself. The description adds no parameter meaning beyond that, which is the expected baseline when the schema carries the semantics.

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?

Names a specific verb (Search) and resource (the web) and states exactly what comes back: ranked results with titles, URLs, descriptions, and sources. It is clear on its own, but it never contrasts itself with the scrapers in its sibling set (scrapeHtml, scrapeMarkdown, etc.), leaving the search-vs-scrape distinction implicit.

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?

There is no explicit when-to-use or when-not-to-use guidance and no alternative tool is named. An agent must infer from 'ranked results' that this is for discovery rather than retrieving a known URL, which is thin guidance for a tool sitting next to several scrapers.

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.