Skip to main content
Glama

Web answer with citations: search, read the top pages, answer in JSON with source quotes

web_answer
Read-onlyIdempotent

Use when an agent needs a sourced answer to a question from the live web in one call. Input: q (question), optional time_range (day, week, month, year). Output: JSON answer (English, inline [n] citations), citations [{url, title, quote}], confidence, notes, sources read. Searches, reads the top 4 pages itself and answers only from them. Provider or model failure is not charged. Use instead: web_search_read for the raw pages; knowledge_wiki for encyclopedic facts. Example: ?q=what+is+the+x402+payment+protocol Price: $0.012 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.

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_answer"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesSearch query
time_rangeNoOnly results from the past day, week, month or year

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld/idempotent annotations: it discloses the depth of retrieval (top 4 pages), the grounding constraint (answers only from those pages), the output shape including language and citation format, the failure policy (provider or model failure is not charged), and the price and payment rails. These are operational facts an agent cannot get from annotations or schema.

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 the use case, then input, output, alternatives, example, and price in a predictable order. It is dense and slightly overstuffed — the enumeration of five payment chains and a literal query-string example are marginal — but no sentence is pure 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?

There is no output schema, yet the description fully specifies the return payload (answer, citations with url/title/quote, confidence, notes, sources read), plus cost and failure behavior. Nothing an agent needs before invoking a 2-parameter, one-shot answer tool 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 both q and time_range are already documented, giving a baseline of 3. The description restates the parameter list and the time_range granularities (day, week, month, year) but adds no new syntax, defaults, or edge-case guidance beyond the schema.

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 concrete pipeline of verbs (searches, reads the top 4 pages, answers) against a specific resource (the live web) and names the deliverable (JSON answer with inline [n] citations plus source quotes). An agent can distinguish it from raw-page siblings like web_search_read 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?

Opens with an explicit 'Use when an agent needs a sourced answer... in one call' and then routes away with 'Use instead: web_search_read for the raw pages; knowledge_wiki for encyclopedic facts.' Both the triggering condition and the two named alternatives are stated.

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