Skip to main content
Glama
google-seo-mcp
by Akxan

Ranked sources AI search returns (Perplexity Search API)

ai_search_sources
Read-onlyIdempotent

Retrieves ranked Perplexity search sources for up to 10 questions in one call and checks whether your domain appears, so you can track source share and competitor visibility over time.

Instructions

Ask Perplexity's Search API which pages it retrieves as sources for up to 10 questions in one call, and whether your domain is among them. Unlike ai_citation_check it only returns ranked results (title, URL, snippet, date) with no answer generation, so it is cheaper and repeatable: track share of sources over time and see which competitors AI search keeps pulling from. Requires PERPLEXITY_API_KEY (paid; https://www.perplexity.ai/settings/api).

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

Input Schema

NameRequiredDescriptionDefault
domainNoYour domain to locate in the rankings, e.g. 'example.com'.
countryNo2-letter country code for localized results, e.g. 'ES', 'US'.
queriesYesQuestions a customer would type, e.g. ['best guided tour of the Alcazar', 'mejores tours en Sevilla'].
recencyNoOnly pages published within this window.
languageNoRestrict results to this language code, e.g. 'es'.
maxResultsNoResults per query.
contextSizeNoHow much page text Perplexity retrieves per result; 'low' is enough for a source list and costs least.low
searchDomainsNoRestrict to these domains, or exclude one by prefixing '-', e.g. ['-pinterest.com']. Max 20.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.14.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  2. Addedv0.10.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare read-only, open-world, idempotent, non-destructive behavior, and the description meaningfully adds the paid PERPLEXITY_API_KEY requirement with a signup URL plus cost context ('cheaper', 'low is enough ... costs least'). It also discloses the return shape (title, URL, snippet, date) despite having no output schema, though it does not cover failure modes or rate limits.

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?

Three sentences, front-loaded with the core action, then differentiation and use cases, then the auth prerequisite. The first sentence is long and dense, but no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an eight-parameter, read-only, open-world tool with no output schema, the description covers purpose, cost trade-off, API-key prerequisite, and the fields returned. It is largely complete, with only minor gaps around multi-query result packaging and error behavior.

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 all eight parameters are already documented in the schema; the baseline of 3 applies. The description adds only light mapping ('up to 10 questions' toward queries, 'whether your domain is among them' toward domain) and no syntax or format detail 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 specific verb and resource ('Ask Perplexity's Search API which pages it retrieves as sources') and adds scope ('up to 10 questions in one call', 'whether your domain is among them'). It explicitly distinguishes itself from the sibling ai_citation_check by noting it returns only ranked results with no answer generation.

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?

Names the alternative (ai_citation_check) and the condition that selects this tool instead: cheaper, repeatable, no answer generation. It also gives concrete use cases (track share of sources over time, see which competitors get pulled in), leaving little to inference.

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