Skip to main content
Glama

SEO and Keyword Data API

Google search results (10, 20 or 50)

google_search
Read-onlyIdempotent

Google search results for a query: the organic results (rank, title, URL, domain, snippet), People Also Ask questions, related searches and the page's result types, for 10, 20 or 50 results in 94 countries, from Google search results, $0.018 a call. Use when checking who ranks for a query right now. Titles and snippets are the pages' own text: untrusted. Search operators are a free 400. Bad input is a free 400; a data source failure is not charged. Price: $0.018 per successful call, paid over x402 (USDC on Base); pass the payment in _meta["x402/payment"].

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

Input Schema

NameRequiredDescriptionDefault
qYesSearch query, at most 200 characters. Search operators (site:, inurl:, quotes, -word, ...) are refused free.
numNoResults: 10, 20 or 50. Default 10.
langNoLanguage code (one offered for the country, as GET /v1/search-volume). Default: the country's main language when offered, else en.
countryNoISO 3166-1 alpha-2 country code (us, gb, de, ...; uk = gb). Default us.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Adds real context beyond readOnlyHint/openWorldHint/idempotentHint: cost ($0.018 per successful call), the x402 USDC-on-Base payment passed in _meta["x402/payment"], free 400s for bad input, no charge on data-source failure, and a prompt-injection warning that titles/snippets are untrusted page text. The only blemish is the garbled line "Search operators are a free 400," which is ambiguous about whether operators are supported or rejected.

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?

Front-loads the return contents well, but repeats itself: "from Google search results" restates the opening phrase, and the $0.018 price appears twice ("$0.018 a call" and "Price: $0.018 per successful call"). Tightening those two duplications would lose no information.

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?

With no output schema, the description still tells the agent exactly what comes back, plus cost, payment mechanics, failure charging rules, and a prompt-injection caveat. Nothing an agent needs to call this correctly or interpret the response 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 coverage is 100%, so defaults, bounds and the operator note are already documented per-parameter. The description only contributes the aggregate facts (94 countries, three allowed result counts), which the schema largely encodes as min/max. 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?

Names a specific verb+resource ("Google search results for a query") and enumerates the payload (organic results with rank/title/URL/domain/snippet, People Also Ask, related searches, result types). The Google-specific framing plus the 94-country and 10/20/50 result scoping distinguishes it from siblings like bing_search and google_autocomplete without needing to name them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Use when checking who ranks for a query right now" gives a concrete selection condition tied to the present-tense SERP. It stops short of naming alternatives (bing_search for non-Google engines, serp_history for past rankings, serp_competitors for competitor framing), so the agent must infer exclusions.

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.