Skip to main content
Glama

Search the Web

search_web
Read-only

Search the web and return titles, URLs, and snippets.

Use to discover pages on a topic when you do not already have a specific URL. Returns ranked result summaries only — to read the full text of one result page, pass its URL to fetch_url.

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

Input Schema

NameRequiredDescriptionDefault
countNoMaximum results to return (1-10, default 5).
queryYesThe search query.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, destructiveHint=false and idempotentHint=false, so the safety and network profile is covered. The description still adds genuinely useful behavioral context beyond that: results are ranked summaries only, not page text, and full content requires a follow-up call. It stops short of mentioning rate limits, result caching, or how ranking is determined, so it is strong but not exhaustive.

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?

Three short sentences, front-loaded with what the tool does and its return shape, then the usage condition, then the handoff to fetch_url. Every sentence carries distinct information with no repetition of the title.

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

Completeness5/5

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

For a two-parameter open-web search with rich annotations and an output schema, this covers everything the agent needs: what it does, what it returns, when to use it, and where to go for the full page. Return-value detail is already handled by the output schema, so the description is complete without expanding further.

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%, including the 1-10 range and default of count, so the description is not required to document parameters. It adds no meaning beyond the schema for query or count — no guidance on crafting queries or when to raise the result count. Baseline 3 applies.

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 web') and specifies exactly what comes back ('titles, URLs, and snippets'). It also distinguishes itself from the sibling fetch_url by declaring that it returns ranked result summaries only, so an agent can tell the two apart without opening a schema.

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

Usage Guidelines5/5

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

Gives an explicit when: 'discover pages on a topic when you do not already have a specific URL.' Gives an explicit when-not plus the alternative: pass the URL to fetch_url to read full text. Nothing about tool selection is left to inference.

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.