Skip to main content
Glama

Web Search and Extract

search

Performs live web discovery and content ingestion from public sources. Use when new external information is required; set extract_mode for abstracts or full text.

Instructions

PRIMARY SINGLE-QUERY LIVE DISCOVERY AND CONTENT INGESTION TOOL. ALWAYS PERFORMS LIVE WEB SEARCH. With research enabled, one local broker lets multiple MCP sessions query the same knowledge base concurrently and orders writes safely. Use this tool only when new external information from Google, public websites, papers, or repositories is required. When the task requires both finding and reading public web pages, PDFs, papers, or GitHub repositories, set extract_mode=abstract or full in this call. Do not download public PDFs, clone repositories, or invoke local parsers first. Select extract_mode=full, not abstract, when the user asks to read originals, full text, document bodies, or code, or to compare source contents. Use extract separately only when the exact public URL is already known and no new discovery is required. Use general repository tools only for editing, building, testing, or full Git history. Providing project_id also fuses stored project evidence with live results, but never makes this a local-only search. For stored project knowledge without live web discovery, use project_memory_search. limit accepts integers from 1 to 20. extract_limit accepts integers from 1 to 10, defaults to 5, and limits unique extracted URLs. Final results use one bounded response budget after ranking; full captured bodies remain local. Use extract on one selected URL when longer response text is explicitly required. The response includes applied, skipped, truncated, total_chars, and a bounded remaining_urls list. GitHub none mode reads the README; abstract and full can sparse-index eligible repositories with Tree-sitter. With research enabled and project_id set, live web, exact, BM25, vector, code, and graph lanes are fused by RRF and one reranker. With research disabled, provider order and query BM25 rank are fused by a lightweight in-memory RRF reranker without opening local storage or loading the vector model. research_context returns up to three prior searches for deeper or adjacent follow-up work. Captured search, source, session, and project provenance form data lineage; extracted bodies become evidence while unread hits remain metadata. include_project_ids adds read-only cross-project retrieval through versioned ontology and verified schema/entity links without merging records. Browser search is the no-key default and SearchApi is the configured primary or fallback provider. Results are cached for 24h unless the TTL is disabled.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum results. Integer 1-20, default 10.
queryYesGoogle search query. Use site: filters and quotes for exact match.
max_charsNoMaximum returned characters per extracted result in response_content=full. Defaults to 1500 for abstract and 50000 for full.
project_idNoProject memory id.
session_idNoStable host task id. Reuses the same project session after restart.
extract_modeNoContent depth in this search call. Use none only when titles and snippets are enough, abstract for relevance evidence, and full when the user asks to read originals, full text, document bodies, or code, or to compare source contents. Use abstract or full here instead of following search with separate extraction, PDF download, or repository clone. For GitHub results, none reads the README; abstract and full use the same repository eligibility gate but index different source amounts.none
extract_limitNoMaximum unique result URLs to extract. Integer 1-10, default 5.
memory_handleNoReuse the handle returned by a prior project-aware call.
session_intentNoCurrent durable task intent. A changed value creates an immutable revision.
response_contentNoControls only the returned body. summary is the default and returns a 1500-character evidence excerpt; full returns up to max_chars. Research storage keeps the full captured text in deterministic chunks.summary
include_project_idsNoAdditional read-only projects joined through ontology-aligned schema and identity links. New records stay in project_id.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
metaNo
errorNo
queryNo
memoryNo
resultsNo
elapsed_msNo
memory_handleNo
research_contextNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed2 schema fields changedv1.0.6
    • changedInput schema / properties / response_content / default
      Previous value: -"full"New value: +"summary"
    • changedInput schema / properties / response_content / description
      Previous value: -"Controls only the returned body. full returns up to max_chars; summary returns a 1500-character evidence excerpt. Research storage keeps the full captured text in deterministic chunks."New value: +"Controls only the returned body. summary is the default and returns a 1500-character evidence excerpt; full returns up to max_chars. Research storage keeps the full captured text in deterministic chunks."
  2. Changed1 schema field changedv1.0.4
    • changedInput schema / properties / extract_mode / description
      Previous value: -"Content depth in this search call. Use abstract or full during research instead of following search with separate extract calls. For GitHub results, none reads the README; abstract and full use the same repository eligibility gate but index different source amounts."New value: +"Content depth in this search call. Use none only when titles and snippets are enough, abstract for relevance evidence, and full when the user asks to read originals, full text, document bodies, or code, or to compare source contents. Use abstract or full here instead of following search with separate extraction, PDF download, or repository clone. For GitHub results, none reads the README; abstract and full use the same repository eligibility gate but index different source amounts."
  3. Changed6 schema fields changedv1.0.2
    • changedInput schema / properties / extract_limit / description
      Previous value: -"Maximum unique result URLs to extract. For parallel search this is one call-wide limit, not a per-query limit."New value: +"Maximum unique result URLs to extract. Integer 1-10, default 5."
    • changedInput schema / properties / limit / description
      Previous value: -"Max results (default 10)."New value: +"Maximum results. Integer 1-20, default 10."
    • changedInput schema / properties / max_chars / description
      Previous value: -"Maximum characters per extracted result. Defaults to 1500 for abstract and 50000 for full."New value: +"Maximum returned characters per extracted result in response_content=full. Defaults to 1500 for abstract and 50000 for full."
    • addedInput schema / properties / response_content
      Added value: +{
      +  "default": "full",
      +  "description": "Controls only the returned body. full returns up to max_chars; summary returns a 1500-character evidence excerpt. Research storage keeps the full captured text in deterministic chunks.",
      +  "enum": [
      +    "summary",
      +    "full"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / source_length
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / results / items / properties / truncated
      Added value: +{
      +  "type": "boolean"
      +}
  4. Changed37 schema fields changedv1.0.0
    • addedInput schema / properties / extract_limit
      Added value: +{
      +  "default": 5,
      +  "description": "Maximum unique result URLs to extract. For parallel search this is one call-wide limit, not a per-query limit.",
      +  "maximum": 10,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / extract_mode
      Added value: +{
      +  "default": "none",
      +  "description": "Content depth in this search call. Use abstract or full during research instead of following search with separate extract calls. For GitHub results, none reads the README; abstract and full use the same repository eligibility gate but index different source amounts.",
      +  "enum": [
      +    "none",
      +    "abstract",
      +    "full"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / include_project_ids
      Added value: +{
      +  "description": "Additional read-only projects joined through ontology-aligned schema and identity links. New records stay in project_id.",
      +  "items": {
      +    "maxLength": 64,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 8,
      +  "type": "array"
      +}
    • addedInput schema / properties / max_chars
      Added value: +{
      +  "description": "Maximum characters per extracted result. Defaults to 1500 for abstract and 50000 for full.",
      +  "maximum": 50000,
      +  "minimum": 200,
      +  "type": "integer"
      +}
    • addedInput schema / properties / memory_handle
      Added value: +{
      +  "description": "Reuse the handle returned by a prior project-aware call.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • addedInput schema / properties / project_id
      Added value: +{
      +  "description": "Project memory id.",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / session_id
      Added value: +{
      +  "description": "Stable host task id. Reuses the same project session after restart.",
      +  "maxLength": 200,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / session_intent
      Added value: +{
      +  "description": "Current durable task intent. A changed value creates an immutable revision.",
      +  "maxLength": 2000,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedOutput schema / properties / memory
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / memory_handle
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / research_context
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "prior_searches": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "query": {
      +            "type": "string"
      +          },
      +          "relation": {
      +            "enum": [
      +              "same",
      +              "related",
      +              "recent"
      +            ],
      +            "type": "string"
      +          },
      +          "results": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "searched_at": {
      +            "type": "string"
      +          },
      +          "surface": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "query",
      +          "relation",
      +          "searched_at",
      +          "results"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 3,
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "prior_searches"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / results / items / properties / authors
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / canonical_url
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / content
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / created_at
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / creator
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / document_id
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / doi
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / excerpt
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / extract_error
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / extraction_quality
      Added value: +{
      +  "enum": [
      +    "full_text",
      +    "abstract",
      +    "meta_abstract",
      +    "metadata_only"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / fresh_web
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / results / items / properties / is_pdf
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / results / items / properties / keywords
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / results / items / properties / language
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / length
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / results / items / properties / modified_at
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / page_count
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / results / items / properties / producer
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / project_ids
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / results / items / properties / publication
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / published_at
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / retrieval_families
      Added value: +{
      +  "items": {
      +    "enum": [
      +      "exact",
      +      "bm25",
      +      "vector",
      +      "graph"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / results / items / properties / score
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / results / items / properties / source_family
      Added value: +{
      +  "enum": [
      +    "live",
      +    "document",
      +    "code",
      +    "graph"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / subject
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / year
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
  5. Addedv0.6.5
  6. Removedv0.6.1
  7. Addedv0.5.2
  8. Removedv0.5.1
  9. Addedv0.4.8
  10. Removedv0.4.7
  11. Changed8 schema fields changedv0.3.5
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / properties / limit / default
      Added value: +10
    • changedInput schema / properties / limit / description
      Previous value: -"Max results (default 10)"New value: +"Max results (default 10)."
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / query / description
      Previous value: -"Search query"New value: +"Google search query. Use site: filters and quotes for exact match."
    • addedInput schema / properties / query / maxLength
      Added value: +400
    • addedInput schema / properties / query / minLength
      Added value: +1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "elapsed_ms": {
      +      "type": "number"
      +    },
      +    "error": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "code": {
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        },
      +        "retry_after_ms": {
      +          "type": "number"
      +        },
      +        "retryable": {
      +          "type": "boolean"
      +        },
      +        "user_action": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "message",
      +        "retryable"
      +      ],
      +      "type": "object"
      +    },
      +    "meta": {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "query": {
      +      "type": "string"
      +    },
      +    "results": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "description": {
      +            "type": "string"
      +          },
      +          "title": {
      +            "type": "string"
      +          },
      +          "url": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "title",
      +          "url",
      +          "description"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  12. First observedv0.3.2

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already signal open-world, non-read-only, non-idempotent behavior, but the description adds substantial extra context: live search is always performed, results are cached for 24h, extract modes handle GitHub repositories differently, response budgets are bounded, and research-enabled behavior fuses multiple retrieval lanes. This is far beyond what annotations alone provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose and has valuable content, but it is extremely long and dense, mixing essential invocation guidance with internal architecture details like RRF fusion, brokers, and provenance. While complex behavior justifies some length, tighter organization and less repetition of schema-covered details would improve it.

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?

Despite its density, the description covers invocation criteria, extract-mode selection, parameter ranges, caching, result response fields, output schema availability, and alternatives. For a complex tool with 11 parameters and multiple modes, nothing critical for correct invocation appears missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds useful semantic context for extract_mode, extract_limit, limit, and response_content, including GitHub-specific behavior and the relationship between extraction and final response budget. It does not merely restate 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?

The description opens with 'PRIMARY SINGLE-QUERY LIVE DISCOVERY AND CONTENT INGESTION TOOL. ALWAYS PERFORMS LIVE WEB SEARCH,' which is a specific verb, resource, and behavioral commitment. It also clearly distinguishes this tool from siblings by naming alternatives like extract, project_memory_search, and repository tools.

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?

The description gives explicit conditions: 'Use this tool only when new external information from Google, public websites, papers, or repositories is required.' It also states when to use extract separately, when to use project_memory_search, and when to use general repository tools, making the decision boundary explicit.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/HarimxChoi/google-surf-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server