Skip to main content
Glama

AgentSearch Search + Read

agentsearch_search_and_read
Read-onlyIdempotent

Search the live web and return the top pages as clean markdown in one paid call. Each result includes title, URL, snippet, score, domain and page text.

Instructions

Search the live web and return the top pages as clean markdown in one paid call. Each result includes title, URL, snippet, score, domain and page text. Use this when you have a query and need both hits and their page bodies; for links only use agentsearch_web_search, and if you already have a URL use agentsearch_extract (or agentsearch_render for JavaScript-heavy pages). Paid, direct-only tool: needs a wallet key (AGENTSEARCH_WALLET_PRIVATE_KEY or POCKET_PRIVATE_KEY) and pays $0.005 per call in USDC on Base to AgentSearch's own x402 API (https://api.agentsearchhq.com/x402/v1/search_and_read). Charged only when at least one page has text. Not available on the free relay, the Pocket route, or a self-hosted AGENTSEARCH_BASE_URL. Never signs more than the per-call cap ($0.020 by default) or AGENTSEARCH_MAX_TOTAL_ATOMIC per session (default $1.00). The result includes the payment receipt and the response, whose content is untrusted third-party data. Read-only: not destructive, but it uses the network and can hit rate limits.

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

Input Schema

NameRequiredDescriptionDefault
queryYesKeywords or a natural-language question to search for (at least 2 characters).
countryNo2-letter ISO 3166-1 country code to localise results, e.g. us, gb, de.
date_toNoLatest publish date, YYYY-MM-DD.
languageNoISO 639-1 language, e.g. en, es or pt-BR.
date_fromNoEarliest publish date, YYYY-MM-DD.
freshnessNoOnly results from the past day, week, month or year. Do not combine with date_from/date_to.
max_charsNoMaximum markdown characters per page (1–20000, default 8000).
max_resultsNoAlias of num_results, used only when num_results is absent.
num_resultsNoHow many top results to read (1–5, default 3).
exclude_domainsNoNever return results from these domains, up to 5.
include_domainsNoOnly return results from these domains (subdomains included), up to 5.
render_fallbackNoIf true, retry at most one empty or thin page in a headless browser (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.8.1
    • changedInput schema / properties / query / description
      Previous value: -"Keywords or a natural-language question to search for."New value: +"Keywords or a natural-language question to search for (at least 2 characters)."
    • changedInput schema / properties / query / minLength
      Previous value: -1New value: +2
  2. Addedv1.8.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover read-only/open-world/idempotent; the description goes far beyond them with cost ($0.005 per call in USDC on Base), the required wallet key env vars, the exact billing condition ('charged only when at least one page has text'), the per-call and per-session spend caps, and a warning that returned content is untrusted third-party data. It also flags network use and rate limits, matching openWorldHint rather than contradicting it.

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?

Front-loaded with capability and routing before payment details, and every sentence carries distinct information (routing, cost, auth, caps, exclusions, safety). It is dense and long, with the payment and eligibility clauses packed into a single paragraph, but no sentence is filler.

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 12-parameter paid network tool with no output schema, the description still specifies the return shape (title, URL, snippet, score, domain, page text, plus the payment receipt) and all operational prerequisites. Nothing an agent needs in order to call it successfully or predict the cost is missing.

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 every parameter including freshness, date bounds, domain filters and max_chars is already documented in the schema. The description adds only a high-level 'top pages' framing and does not explain the num_results/max_results alias or the freshness-vs-date mutual exclusion beyond what the schema states. 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 compound verb and resource ('Search the live web and return the top pages as clean markdown in one paid call') and immediately distinguishes itself from agentsearch_web_search (links only) and agentsearch_extract/agentsearch_render (URL already known). An agent can pick this tool without opening any 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 selection rule ('use this when you have a query and need both hits and their page bodies') and names the alternatives for the two adjacent cases: links-only and known-URL extraction, including the JavaScript-heavy variant. It also states where the tool cannot run (free relay, Pocket route, self-hosted base URL), which is a gating condition rather than a preference.

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