Skip to main content
Glama

Web search for agents (paid, $0.005)

web_search
Read-only

PAID over x402 inside this tool call ($0.005 USDC on Base, Polygon or Arc): web search with ranked results and LLM-ready excerpts. Pair with web_extract for full-page Markdown, then link_check to scan what you found. Call once without payment to get the x402 PaymentRequired, then call again with the signed payment in _meta["x402/payment"].

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": {
      "q": "<q>"
    },
    "name": "web_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesSearch query, e.g. 'pulsechain validator price'.

Output Schema

NameRequiredDescriptionDefault
_paidNox402 receipt
queryNoThe search query
resultsNoRanked results: title, url, publish date, excerpts

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare readOnly/openWorld/non-idempotent/non-destructive, but say nothing about cost or payment. The description adds the price ($0.005 USDC), the accepted chains (Base, Polygon, Arc), the payment transport (x402, _meta key), and the required retry handshake — exactly the behavioral context annotations cannot express.

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?

Three sentences, front-loaded with the cost and payment rails, then the workflow, then the mechanics. Every sentence carries operational weight; the payment sentence is dense but its detail is necessary for a correct call.

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?

An output schema exists, so return values need not be explained, and the payment/auth flow plus sibling chaining are covered. What remains unstated is result-count limits, rate limiting, and failure modes beyond payment (e.g., what a failed second call returns), which is a minor but real gap for a paid external search.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Only one parameter, and the schema already documents it fully at 100% coverage with an example query. The description adds no per-parameter detail, but none is needed; with a single well-described parameter the baseline is satisfied rather than deficient.

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?

The description states a specific verb and resource ('web search with ranked results and LLM-ready excerpts') and explicitly positions it against siblings by naming what web_extract and link_check do instead. An agent can distinguish this tool's output shape from web_extract's full-page Markdown without opening either 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?

It gives an explicit chaining sequence (search -> web_extract -> link_check) and an unusual but mandatory two-call protocol: first call to receive the x402 PaymentRequired, second call with the signed payment in _meta["x402/payment"]. Without that instruction an agent would likely treat the first failure as an error and abandon the tool.

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.