Skip to main content
Glama

Get Google SERP results

get_serp_results

Fetch live Google organic search results for 1-10 queries. Pass them in the queries array, one object per query with a required keyword (plus optional locationCode, languageCode, locationName, device). Use this to inspect who ranks for a query, verify competitors, compare SERPs across keywords, or gather source URLs before content planning. Returns the top depth result rows per keyword (default 20) with 1-based organic rank, device (desktop or mobile), and optional finalUrls unwrapping. Charges credits per keyword: ~2 each at the default depth 20, and each additional 10 of depth adds ~1. Does not save results to FastestRank. Per-keyword errors don't fail the batch.

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": {
      "projectId": "<projectId>",
      "queries": "<queries>"
    },
    "name": "get_serp_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoHow many SERP rows to crawl per keyword — a multiple of 10 from 10 to 100, default 20. Google has no offset, so a deeper crawl re-fetches the top too: each additional 10 adds ~1 credit per keyword. Only raise it when you need ranks past the top 20.
queriesYes1-10 queries. Bulk-friendly — prefer this over multiple single-query calls.
finalUrlsNoSet true to unwrap google.com/goto redirect URLs to each result's final page URL.
projectIdYesRequired. The FastestRank project ID to scope this call to. Get one from list_projects.

Output Schema

NameRequiredDescriptionDefault
metaNo
resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / finalUrls
      Added value: +{
      +  "description": "Set true to unwrap google.com/goto redirect URLs to each result's final page URL.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / queries / items / properties / device
      Added value: +{
      +  "description": "Device to fetch the SERP for, default desktop. Use mobile to compare against a mobile rank tracker. Same price.",
      +  "enum": [
      +    "desktop",
      +    "mobile"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / queries / items / properties / locationName
      Added value: +{
      +  "description": "Optional city, county, or region inside the query's country, for a local SERP. Call search_serp_locations first and pass its locationName verbatim. Same price as a national SERP.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +{}
    • removedOutput schema / properties / results / items / anyOf
      Removed value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "items": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "description": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "domain": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "rank": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "title": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "type": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "url": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "required": [
      -            "rank",
      -            "title",
      -            "url",
      -            "domain",
      -            "description"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "keyword": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "keyword",
      -      "ok",
      -      "items"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "error": {
      -        "type": "string"
      -      },
      -      "keyword": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": false,
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "keyword",
      -      "ok",
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedOutput schema / properties / results / items / oneOf
      Added value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "device": {
      +        "type": "string"
      +      },
      +      "items": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "bestPosition": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "description": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "domain": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "rank": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "seenIn": {
      +              "type": "number"
      +            },
      +            "title": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "type": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "url": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "rank",
      +            "bestPosition",
      +            "seenIn",
      +            "title",
      +            "url",
      +            "domain",
      +            "description"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "keyword": {
      +        "type": "string"
      +      },
      +      "languageCode": {
      +        "type": "string"
      +      },
      +      "locationCode": {
      +        "type": "number"
      +      },
      +      "locationName": {
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "keyword",
      +      "ok",
      +      "items"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      },
      +      "keyword": {
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": false,
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "keyword",
      +      "ok",
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

With readOnlyHint=false, the crucial disclosure that results are not saved to FastestRank tells the agent this remote fetch does not persist anything locally. It also discloses per-keyword credit pricing (~2 at depth 20, ~1 per extra 10 of depth), the default depth, and that per-keyword errors do not fail the batch — none of which the annotations convey.

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 core purpose, then usage, then returns, then cost and caveats — a sensible order with no filler. The sentence enumerating the query-object fields duplicates what the schema already documents, which is the only real waste.

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?

Given an output schema already exists, the description covers everything else an agent needs: pricing model, non-persistence, batch error tolerance, depth default, and a pointer to search_serp_locations for local names. Nothing material for correct invocation 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, but the description adds cost-relevant meaning: the default depth of 20, the 10-to-100 multiple-of-10 crawl, and that deeper crawls re-fetch the top rather than paging. Restating the queries array's per-object fields is slightly redundant with the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Fetch live Google organic search results') plus scope ('1-10 queries'), which is far more precise than the title. It does not explicitly distinguish itself from the sibling get_local_serp_results, and by accepting locationName 'for a local SERP' it blurs that boundary rather than sharpening it.

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?

Gives concrete use cases (inspect who ranks, verify competitors, compare SERPs, gather source URLs before content planning) and a bulk preference ('prefer this over multiple single-query calls'). It stops short of stating when NOT to use it — notably versus get_local_serp_results for local intent — so the routing is clear but incomplete.

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.