Skip to main content
Glama
String AI Web Access MCP Server

String AI Web Access MCP Server

Official

Search the web

web_access_search
Read-only

Search the public web by query and get ranked results plus knowledge panels, AI overviews, and People also ask; target Google tabs for images, videos, shopping, books, places, or forums.

Instructions

Search the public web for a query and get ranked organic results back, plus whatever Google rendered around them: knowledge panel, AI overview, People also ask, local pack, videos, discussions. Google's images, videos, shopping, books, places and forums tabs are searched with searchType.

Best for: a request that names no URL, or one that needs sources found before anything is read. Not for: a URL you already have — use web_access_fetch instead.

Optional request field: searchCount — how many organic results you want, an integer from 1 to 300 (above 300 is rejected). Google is paged, up to 36 pages, until that many are in hand; each page is billed as one search. If Google has fewer results than that, you get every result it has, with paging.stoppedBy: "end_of_results". Omit it for one page, about 10 results. Not with format: "raw", which returns one page per call.

Usage Example:

{ "query": "latest developments in AI agents 2026" }
{ "query": "construction consulting firms Ohio", "searchCount": 30 }

Optional Google field: searchType — the Google tab to search: "web" (the default, the ordinary results page), "images", "videos", "shopping", "books", "places" or "forums". There is no news tab. Each page fetched is billed as one search, as on the web.

  • videos, books, forums answer results, paged like the web; each video carries its channel, platform and duration and each book its authors and publication date.

  • images answers images, about 100 a page, each with its title, the page it is on, the source, the image file and its size. It has 3 pages; searchCount up to 300 collects across them, usually about 270 images.

  • shopping answers products, the one page of about 55 product cards: title, productId, price and original price as shown, merchant, delivery, returns, rating, reviews. A card has no URL. Google does not page this tab, so page must be 1.

  • places answers places, 20 businesses a page, paged like the web up to page 15. dateRange, sortBy and verbatim apply to web, videos and forums only; format: "raw" to web only.

{ "query": "eames lounge chair", "searchType": "images", "searchCount": 150 }

Optional Google filters: safeSearch — true removes explicit results; includeOmittedResults — true includes the results Google hides as very similar to ones shown; autocorrect — false searches the query exactly as typed instead of Google's correction; restrictCountry — a two-letter code — keeps only pages from that country; verbatim — true matches the words exactly, without synonyms.

{ "query": "climate policy", "restrictCountry": "FR", "safeSearch": true }

Optional Google fields: page, dateRange and sortBy apply to Google results only.

  • page — the results page to start from, an integer from 1 to 30 (default 1), where page N is the page Google shows as N. Without searchCount the response is that one page; with it, searchCount results are collected starting from that page. page and searchCount together stay within the first 300 results: (page - 1) × 10 + (searchCount, or 10 without it) must be at most 300. A page past the last result returns no results with zeroResults: true. A page holds about 8 to 10 results, so separate page calls can repeat or skip a result; for one list without repeats, make one call with searchCount.

  • dateRange — limit results to a publication window: one of "hour", "day", "week", "month" or "year" for the past hour through the past year, or { "from": "2024-01-01", "to": "2024-06-30" } for a custom range of ISO dates (YYYY-MM-DD), inclusive. Either end is optional but at least one is required, and from must not be after to.

  • sortBy — "relevance" (the default) or "date" for the newest results first.

{ "query": "heat pump grants", "page": 2, "dateRange": "month", "sortBy": "date" }

Optional Google field: format — "structured" (JSON, the default and recommended) or "raw" (the Google results page as HTML, one page per call). With raw, the response gives the page's size in bytes and whether it was truncated, then its HTML. At most 60000 characters of markup are sent per call, cut at a tag boundary; the HTTP API's POST /v1/search returns the page whole. Raw supports page only, not searchCount: a raw call with searchCount is rejected (the API answers 400), so ask for page N with page and send one call per page, each billed as one search. dateRange and sortBy work with raw.

{ "query": "heat pump grants", "format": "raw" }

Returns: the ranked organic results as numbered lines, each with position (its place in this response), title, URL and snippet; a title is followed by its Google rank when that differs from the position, as it does from page 2 on. A result whose destination Google hid is still listed, with "(no link)" in place of its URL. With searchType "images", "shopping" or "places", the numbered lines are the images, product cards or places instead, and there are no results. When the page carried more, an "Also on the page" JSON block follows with every surface Google rendered — present only when the page carried it, and only Google returns them:

  • entity — the knowledge panel for the one business or person the query named: title, subtitle, description and its source, rating, reviews, website, labelled attributes (address, phone, hours…), social profiles. Often the whole answer for a business query, with no results.

  • places — local-pack business listings: name, category, rating, reviews, address, phone, hours, url, mapsUrl. Read entity and places before treating empty results as no answer.

  • overviews — Google's AI overviews: the first entry with no topic is the query's own summary, entries with a topic and question are the "Things to know" tabs, declined: true marks a frame Google did not fill. Each has text and the cited sources as { title, url } — fetch those to verify a claim.

  • peopleAlsoAsk (questions only; answers are not on the page), relatedSearches, answers (localTime, currency, unitConversion, weather, translation, sports or flights), spelling (substituted or suggested correction).

  • ads, videos, shortVideos, discussions, images, sitelinks — each entry with position, title and url.

  • paging — { pages, complete, stoppedBy }, only when searchCount was sent. pages is how many results pages answered, each billed as one search. stoppedBy is why paging stopped: search_count (the count was reached), end_of_results (Google had no more, or the first page carried no organic results), page_cap (the 36-page limit; Google may have more), page_failed (a later page could not be fetched) or deadline (the time budget ran out). complete is false only for page_failed and deadline, and results then holds what was collected. Surfaces describe the first page only; positions run on across pages.

A snippet is not the page, and an overview is not a source. To read a result, call web_access_fetch on its URL before answering from it.

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

Input Schema

NameRequiredDescriptionDefault
pageNoGoogle only: the results page to start from, an integer from 1 to 30 (default 1), where page N is the page Google shows as N. Without searchCount the response is that one page; with it, searchCount results are collected starting from that page. page and searchCount together stay within the first 300 results: (page-1)*10 + (searchCount, or 10) must be at most 300. A page past the last result returns zeroResults true. A page holds about 8 to 10 results, so separate page calls can repeat or skip a result; use one call with searchCount for a list without repeats.
queryYesThe search query. Be specific and descriptive for best results.
formatNoGoogle only: 'structured' (JSON, the default and recommended) or 'raw' (the Google results page as HTML, one page per call), at most 60000 characters of markup per call. Raw supports page only: searchCount is rejected with raw, so send one call per page. dateRange and sortBy work with raw. Web only.
sortByNoGoogle only: 'relevance' (the default) or 'date' for the newest results first. Web, videos and forums only.
verbatimNoGoogle only: true matches the query's words exactly, without synonyms or stemming. Web, videos and forums only.
dateRangeNoGoogle only: limit results to a publication window. One of 'hour', 'day', 'week', 'month' or 'year' for the past hour through the past year, or {from, to} for a custom range of ISO dates (YYYY-MM-DD), inclusive; either end is optional but at least one is required, and from must not be after to. Web, videos and forums only.
safeSearchNoGoogle only: true removes explicit results (SafeSearch).
searchTypeNoGoogle only: the tab to search. 'web' (the default) is the results page; 'videos', 'books' and 'forums' answer results; 'images' answers images (3 pages of about 100); 'shopping' answers products (one page of about 55, so page must be 1); 'places' answers places (20 a page). No news tab.
autocorrectNoGoogle only: false searches the query exactly as typed rather than Google's corrected spelling. On by default.
searchCountNoOrganic results wanted, 1 to 300. Google is paged, up to 36 pages, until that many are in hand or it has no more, and each page is billed as one search. Omit for one page (about 10 results). Not with format raw, which returns one page per call; use page there.
restrictCountryNoGoogle only: keep only results from pages in this country, a two-letter ISO code such as 'FR'. It does not change where the search runs from.
includeOmittedResultsNoGoogle only: true includes the results Google omits as very similar to ones already shown.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv1.3.8
    • addedInput schema / properties / autocorrect
      Added value: +{
      +  "description": "Google only: false searches the query exactly as typed rather than Google's corrected spelling. On by default.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / dateRange
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "hour",
      +        "day",
      +        "week",
      +        "month",
      +        "year"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "from": {
      +          "description": "First day of the range, inclusive, YYYY-MM-DD.",
      +          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +          "type": "string"
      +        },
      +        "to": {
      +          "description": "Last day of the range, inclusive, YYYY-MM-DD.",
      +          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  ],
      +  "description": "Google only: limit results to a publication window. One of 'hour', 'day', 'week', 'month' or 'year' for the past hour through the past year, or {from, to} for a custom range of ISO dates (YYYY-MM-DD), inclusive; either end is optional but at least one is required, and from must not be after to. Web, videos and forums only."
      +}
    • addedInput schema / properties / format
      Added value: +{
      +  "description": "Google only: 'structured' (JSON, the default and recommended) or 'raw' (the Google results page as HTML, one page per call), at most 60000 characters of markup per call. Raw supports page only: searchCount is rejected with raw, so send one call per page. dateRange and sortBy work with raw. Web only.",
      +  "enum": [
      +    "structured",
      +    "raw"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / includeOmittedResults
      Added value: +{
      +  "description": "Google only: true includes the results Google omits as very similar to ones already shown.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / page
      Added value: +{
      +  "description": "Google only: the results page to start from, an integer from 1 to 30 (default 1), where page N is the page Google shows as N. Without searchCount the response is that one page; with it, searchCount results are collected starting from that page. page and searchCount together stay within the first 300 results: (page-1)*10 + (searchCount, or 10) must be at most 300. A page past the last result returns zeroResults true. A page holds about 8 to 10 results, so separate page calls can repeat or skip a result; use one call with searchCount for a list without repeats.",
      +  "maximum": 30,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / restrictCountry
      Added value: +{
      +  "description": "Google only: keep only results from pages in this country, a two-letter ISO code such as 'FR'. It does not change where the search runs from.",
      +  "pattern": "^[A-Za-z]{2}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / safeSearch
      Added value: +{
      +  "description": "Google only: true removes explicit results (SafeSearch).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / searchCount
      Added value: +{
      +  "description": "Organic results wanted, 1 to 300. Google is paged, up to 36 pages, until that many are in hand or it has no more, and each page is billed as one search. Omit for one page (about 10 results). Not with format raw, which returns one page per call; use page there.",
      +  "maximum": 300,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / searchType
      Added value: +{
      +  "description": "Google only: the tab to search. 'web' (the default) is the results page; 'videos', 'books' and 'forums' answer results; 'images' answers images (3 pages of about 100); 'shopping' answers products (one page of about 55, so page must be 1); 'places' answers places (20 a page). No news tab.",
      +  "enum": [
      +    "web",
      +    "images",
      +    "videos",
      +    "shopping",
      +    "books",
      +    "places",
      +    "forums"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / sortBy
      Added value: +{
      +  "description": "Google only: 'relevance' (the default) or 'date' for the newest results first. Web, videos and forums only.",
      +  "enum": [
      +    "relevance",
      +    "date"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / verbatim
      Added value: +{
      +  "description": "Google only: true matches the query's words exactly, without synonyms or stemming. Web, videos and forums only.",
      +  "type": "boolean"
      +}
  2. First observedv1.2.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description goes well beyond by disclosing the billing model (each page is one search), the 36-page / 300-result caps, the specific rejection of `searchCount` with `format: raw` (HTTP 400), truncation at 60000 characters, and the `paging.stoppedBy` reasons including partial-failure semantics. The one gap is that the cost model is stated per-page but no explicit rate limit or per-call cost figure is given.

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?

Bold section headers, JSON usage examples, and a purpose-first opening make a very long description navigable and front-loaded. It is nonetheless heavily verbose for a 12-parameter tool, and several passages restate the schema descriptions almost verbatim (`page`, `format`, `searchCount`), which costs it the top score.

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, and the 'Returns' section carries that burden thoroughly: numbered organic lines, the 'Also on the page' block, every surface field (entity, places, overviews, peopleAlsoAsk, ads, paging), and the caveat that snippets and AI overviews are not sources. Nothing an agent needs to interpret a response or decide on a follow-up call is 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; the description earns above that by adding cross-field constraints and worked examples (the (page-1)*10 + searchCount ≤ 300 rule, the warning that separate `page` calls can repeat or skip results, the interaction matrix of which filters apply to which `searchType`). Much of this is mirrored in the schema descriptions, so the increment is real but partly duplicative.

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 opening sentence names a specific verb and resource (search the public web, ranked organic results) and enumerates the surfaces returned. It explicitly demarcates the sibling: 'Not for: a URL you already have — use web_access_fetch instead.' An agent can choose between search and fetch 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?

The 'Best for' / 'Not for' pair gives an explicit routing rule tied to a named alternative, plus a closing instruction to fetch result URLs before answering from them. Per-`searchType` guidance (e.g. shopping has no URL and must use page 1; images has 3 pages) tells the agent which mode to pick for which need.

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