Skip to main content
Glama

iafri x402 APIs

web_search

Read-only

Multi-source pure-API web search aggregating Wikipedia Full-Text, Hacker News Algolia, GitHub Public Search, and optional DuckDuckGo HTML (?q=query&scope=all). Returns ranked deduplicated results with title, url, snippet, domain & source. Price $0.005 per call via x402, USDC on Base.

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 string (e.g. 'x402 protocol' or 'python zoneinfo').
limitNoOptional max ranked results to return (default 10, max 25).
scopeNoOptional source filter: 'all' (default), 'wikipedia', 'hn', 'github', or 'ddg'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true, and the description adds useful behavior: it aggregates multiple APIs, optionally includes DuckDuckGo HTML, returns ranked deduplicated fields, and charges $0.005 per call via x402/USDC on Base. It does not cover rate limits, error behavior, or response structure beyond listing fields.

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 tightly packed sentences front-load the tool's purpose, then give source and return details, then the pricing constraint. Every sentence adds relevant information without redundancy.

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 three-parameter search tool with full schema coverage and no output schema, the description supplies the missing context: aggregation sources, optional DDG behavior, ranked deduplicated return fields, and per-call pricing. An agent has enough information to decide whether and how to invoke it.

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%, so the schema already documents q, limit, and scope. The description maps source abbreviations to full services and mentions the DDG query form, which adds some meaning, but it does not explain limit semantics beyond what the schema already says.

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' aggregating named sources. It also specifies the result shape and source set, so an agent can identify the tool without opening the schema.

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 the tool is for multi-source web search and names the available sources and scope filter. It does not explicitly state when to use this versus alternatives, nor does it describe exclusions or prerequisites beyond the x402 payment note.

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.

Resources