Skip to main content
Glama

Keyword, competitor, backlink and AI answer data

seo_research
Read-only

Data from the person’s own DataForSEO or Ahrefs account, which costs them credits. It uses the key the person saved on their seoskill.dev account (or on this machine for the CLI). serp or ai_answers with a site as target and no keywords checks the tracked searches or AI questions in the site's business context and keeps the result in its progress. Actions: provider is optional: without it the call uses the saved key, DataForSEO when both are saved. In the CLI and the local MCP server, serp can also use a provider package installed on this machine that supplies live search results: pass its id as provider. The target is a domain (the whole site), a path ending in / such as example.com/blog/ (every URL under it), or one page; scope overrides that. keyword_metrics (keywords: volume, difficulty, CPC; or target a Search Console site with no keywords: its top queries by impressions that the provider rates at zero or does not know, zero-volume keywords, in one call of up to 700 queries, about $0.10 on DataForSEO or 100 on Ahrefs), keyword_ideas (up to 5 seed keywords: searches that contain each seed, by volume), ranked_keywords (target: keywords a site, subfolder or page ranks for, with the provider's traffic total for the whole target), top_pages (target: the pages with the most estimated organic traffic), serp (keywords, up to 5: the ranking pages with their organic position beside DataForSEO's rank_absolute, which also counts AI Overviews and other blocks, plus the AI Overview's sources and the People Also Ask questions; device desktop or mobile, DataForSEO only; each with its domain's authority: DataForSEO domain_rank 0 to 100, Ahrefs domain_rating; depth sets results per keyword, default 20; rows run position by position across the keywords), index_check (DataForSEO only; target: one page URL; keywords: up to 2 exact phrases from the page, default its H1 or title. Searches Google for site: and each "" on desktop and mobile, retries failed searches, treats Google's fallback to unrelated sites as no match, and says indexed, not found or unknown with each search's evidence; about $0.01 a page), serp_overlap (2 to 10 keywords: for each pair, how many of their top 10 pages and sites are the same, to decide one page or several; results behind a Google redirect link are compared by their breadcrumb's site and path, and counted, not compared, when it is shortened), mentions (DataForSEO only; target: a domain; brand: up to 3 brand names. Pages on other sites that name the domain or brand, one per site, from DataForSEO's content index, and whether each site already links to the target in DataForSEO's backlink index; sites with no link come first, to ask for the link. About $0.03 a term plus one backlinks call, under $0.10 a run), competitors (target: domains that share keywords; when the target is one of the person's sites, the competitors in its business context come first, with in_context true), backlinks (target: referring domains), pages_by_backlinks (target: the pages with the most referring domains), link_gap (target and 2 to 5 competitors, or none to use the first 5 in the target's business context: referring domains that link to two or more competitors and not the target, highest authority first, from each site's top 1,000 referring domains; costs one backlinks call per site). With pages true, backlinks and link_gap (DataForSEO only) return linking pages instead of domains: each page's title, the words around the link, how many competitors it links and a guessed context (listicle, review, directory, forum and so on), with spam left out, from one call of up to 1,000 pages, about $0.03 to $0.06; use them to find link and listicle targets. ai_answers (DataForSEO only; target: the site. Without keywords it takes the site’s top 10 chat-style and long questions from Search Console’s AI-shaped queries itself. With up to 10 questions in keywords it asks those instead, and the target can be any domain, such as a competitor's. Each answer row also lists the other sites it cites, and the notes rank them. Answers come from DataForSEO's queue: answers not ready after about 40 seconds are returned as tasks, already paid for; call again with the same target and those tasks to read them at no cost. Asking the same questions again the same day (UTC) reads that run back at no cost too; refresh true asks again and pays. samples (1 to 5) asks each question that many times and reports how often the answers cite or name the site, a rate instead of one sample; each sample costs a full run. It asks ChatGPT search, the Gemini app, Google AI Mode and Google AI Overviews each one and says whether the answer cites or mentions the site. When the target is one of the person's sites, the competitors in its business context are judged on the same answers at no extra cost: each row lists the ones it cites or names, and the notes give share of voice. Each ChatGPT row lists the web searches ChatGPT ran (fan-out), and the notes rank the most common; to see them for any questions, pass the questions in keywords with any target. Web search is not forced: forcing costs the same but makes ChatGPT search questions it answers from memory, so "none returned" means it answered without searching. Gemini, AI Mode and AI Overviews do not report their searches. DataForSEO’s queue prices are about $0.0096 a question across the four engines, so about $0.10 a run: tell the person before running it. With up to 3 competitors and the site as target, it instead reads DataForSEO's LLM mentions database for ChatGPT and AI Overviews and ranks the pages cited by buyer answers that name a competitor, the pages to get the site onto; about $0.35 a site, tell the person first). Rows with a domain, and the target, get a free Ahrefs domain_rating column. Numbers are provider estimates, not Search Console data.

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": {
      "action": "<action>"
    },
    "name": "seo_research"
  }
}

Input Schema

NameRequiredDescriptionDefault
alsoNoai_answers only: the brand's other domains, such as claude.ai beside claude.com. A citation to any of them counts as citing the target.
brandNoai_answers and mentions: the brand names that count as a mention, such as Datadog for datadoghq.com. Default: each domain's name for ai_answers; mentions searches the domain itself plus up to 3 names.
depthNoserp only: results per keyword, default 20. Deeper costs more.
pagesNobacklinks and link_gap: linking pages with the words around each link, instead of domains.
scopeNoOptional: domain, prefix or exact, to read the target another way than its shape says.
tasksNoai_answers only: the tasks an earlier run returned as not ready, to read back at no cost.
actionYes
detailNosummary first. rows: the next page of rows. full: every field as JSON.summary
deviceNoserp only: desktop (default) or mobile. Google ranks pages differently on each. DataForSEO only.
offsetNorows only: the first row to return.
targetNoDomain (the whole site), a path ending in / for every URL under it, such as example.com/blog/, or one page.
countryNoTwo-letter country code.us
refreshNoai_answers only: ask again and pay, instead of reading back the run of the same questions from earlier today.
samplesNoai_answers only: how many times to ask each question, to report how often answers cite or name the site. Each sample costs a full run.
keywordsNo
providerNodataforseo or ahrefs. Optional: without it, the saved key; DataForSEO when both are saved. For serp in the CLI and the local MCP server it can also be the id of an installed provider package with live search results.
competitorsNolink_gap: 2 to 5 competitor domains. ai_answers: up to 3.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / tasks / maxItems
      Previous value: -150New value: +200
  2. Changed3 schema fields changed
    • addedInput schema / properties / refresh
      Added value: +{
      +  "default": false,
      +  "description": "ai_answers only: ask again and pay, instead of reading back the run of the same questions from earlier today.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / samples
      Added value: +{
      +  "description": "ai_answers only: how many times to ask each question, to report how often answers cite or name the site. Each sample costs a full run.",
      +  "maximum": 5,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / tasks / maxItems
      Previous value: -30New value: +150
  3. Changed2 schema fields changed
    • changedInput schema / properties / competitors / description
      Previous value: -"link_gap only: 2 to 5 competitor domains."New value: +"link_gap: 2 to 5 competitor domains. ai_answers: up to 3."
    • addedInput schema / properties / pages
      Added value: +{
      +  "default": false,
      +  "description": "backlinks and link_gap: linking pages with the words around each link, instead of domains.",
      +  "type": "boolean"
      +}
  4. Changed2 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "keyword_metrics",
      -  "ranked_keywords",
      -  "serp",
      -  "competitors",
      -  "backlinks",
      -  "link_gap",
      -  "ai_answers",
      -  "top_pages",
      -  "pages_by_backlinks",
      -  "keyword_ideas",
      -  "serp_overlap",
      -  "index_check"
      -]New value: +[
      +  "keyword_metrics",
      +  "ranked_keywords",
      +  "serp",
      +  "competitors",
      +  "backlinks",
      +  "link_gap",
      +  "ai_answers",
      +  "top_pages",
      +  "pages_by_backlinks",
      +  "keyword_ideas",
      +  "serp_overlap",
      +  "index_check",
      +  "mentions"
      +]
    • changedInput schema / properties / brand / description
      Previous value: -"ai_answers only: the brand names that count as a mention, such as Datadog for datadoghq.com. Default: each domain's name."New value: +"ai_answers and mentions: the brand names that count as a mention, such as Datadog for datadoghq.com. Default: each domain's name for ai_answers; mentions searches the domain itself plus up to 3 names."
  5. Changed4 schema fields changed
    • changedInput schema / properties / provider / description
      Previous value: -"Optional. Without it, the saved key; DataForSEO when both are saved."New value: +"dataforseo or ahrefs. Optional: without it, the saved key; DataForSEO when both are saved. For serp in the CLI and the local MCP server it can also be the id of an installed provider package with live search results."
    • removedInput schema / properties / provider / enum
      Removed value: -[
      -  "dataforseo",
      -  "ahrefs"
      -]
    • addedInput schema / properties / provider / maxLength
      Added value: +64
    • addedInput schema / properties / provider / pattern
      Added value: +"^[a-z0-9]+(?:-[a-z0-9]+)*$"
  6. Changed2 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "keyword_metrics",
      -  "ranked_keywords",
      -  "serp",
      -  "competitors",
      -  "backlinks",
      -  "link_gap",
      -  "ai_answers",
      -  "top_pages",
      -  "pages_by_backlinks",
      -  "keyword_ideas",
      -  "serp_overlap"
      -]New value: +[
      +  "keyword_metrics",
      +  "ranked_keywords",
      +  "serp",
      +  "competitors",
      +  "backlinks",
      +  "link_gap",
      +  "ai_answers",
      +  "top_pages",
      +  "pages_by_backlinks",
      +  "keyword_ideas",
      +  "serp_overlap",
      +  "index_check"
      +]
    • addedInput schema / properties / device
      Added value: +{
      +  "description": "serp only: desktop (default) or mobile. Google ranks pages differently on each. DataForSEO only.",
      +  "enum": [
      +    "desktop",
      +    "mobile"
      +  ],
      +  "type": "string"
      +}
  7. Changed8 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "keyword_metrics",
      -  "ranked_keywords",
      -  "serp",
      -  "competitors",
      -  "backlinks",
      -  "link_gap",
      -  "ai_answers"
      -]New value: +[
      +  "keyword_metrics",
      +  "ranked_keywords",
      +  "serp",
      +  "competitors",
      +  "backlinks",
      +  "link_gap",
      +  "ai_answers",
      +  "top_pages",
      +  "pages_by_backlinks",
      +  "keyword_ideas",
      +  "serp_overlap"
      +]
    • addedInput schema / properties / also
      Added value: +{
      +  "default": [],
      +  "description": "ai_answers only: the brand's other domains, such as claude.ai beside claude.com. A citation to any of them counts as citing the target.",
      +  "items": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 4,
      +  "type": "array"
      +}
    • addedInput schema / properties / brand
      Added value: +{
      +  "default": [],
      +  "description": "ai_answers only: the brand names that count as a mention, such as Datadog for datadoghq.com. Default: each domain's name.",
      +  "items": {
      +    "maxLength": 60,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 10,
      +  "type": "array"
      +}
    • addedInput schema / properties / depth
      Added value: +{
      +  "description": "serp only: results per keyword, default 20. Deeper costs more.",
      +  "maximum": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / provider / description
      Added value: +"Optional. Without it, the saved key; DataForSEO when both are saved."
    • addedInput schema / properties / scope
      Added value: +{
      +  "description": "Optional: domain, prefix or exact, to read the target another way than its shape says.",
      +  "enum": [
      +    "domain",
      +    "prefix",
      +    "exact"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / target / description
      Previous value: -"Domain or URL."New value: +"Domain (the whole site), a path ending in / for every URL under it, such as example.com/blog/, or one page."
    • changedInput schema / required
      Previous value: -[
      -  "provider",
      -  "action"
      -]New value: +[
      +  "action"
      +]
  8. Changed2 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "keyword_metrics",
      -  "ranked_keywords",
      -  "serp",
      -  "competitors",
      -  "backlinks",
      -  "ai_answers"
      -]New value: +[
      +  "keyword_metrics",
      +  "ranked_keywords",
      +  "serp",
      +  "competitors",
      +  "backlinks",
      +  "link_gap",
      +  "ai_answers"
      +]
    • addedInput schema / properties / competitors
      Added value: +{
      +  "default": [],
      +  "description": "link_gap only: 2 to 5 competitor domains.",
      +  "items": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 5,
      +  "type": "array"
      +}
  9. Changed1 schema field changed
    • addedInput schema / properties / tasks
      Added value: +{
      +  "default": [],
      +  "description": "ai_answers only: the tasks an earlier run returned as not ready, to read back at no cost.",
      +  "items": {
      +    "pattern": "^([a-z_]+):([0-9a-f-]{20,64})$",
      +    "type": "string"
      +  },
      +  "maxItems": 30,
      +  "type": "array"
      +}
  10. Changed1 schema field changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "keyword_metrics",
      -  "ranked_keywords",
      -  "serp",
      -  "competitors",
      -  "backlinks"
      -]New value: +[
      +  "keyword_metrics",
      +  "ranked_keywords",
      +  "serp",
      +  "competitors",
      +  "backlinks",
      +  "ai_answers"
      +]
  11. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations already establish readOnly/openWorld/non-destructive, and the description adds far more: per-action credit costs in dollars, the fact that unfinished ai_answers tasks are already paid for and can be re-read free, same-day UTC caching with refresh paying again, the ~40s queue wait, retry and fallback semantics for index_check ('treats Google's fallback to unrelated sites as no match'), and that numbers are provider estimates rather than Search Console data.

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

Conciseness2/5

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

The description is a single dense paragraph of several hundred words with nested parentheses and no front-loading of the core purpose; pricing disclaimers come before the agent learns what the tool is. Almost every clause carries information, but the lack of structure (no per-action breakdown, no headings) makes it hard to scan for the relevant action.

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 a 13-action, 17-parameter tool with no output schema, the description covers selection, cost, caching and several return behaviors (ai_answers rows list cited sites, notes rank them; index_check returns indexed/not found/unknown with evidence). The remaining gap is the return shape for most actions, only loosely implied by the detail enum, which leaves an agent guessing about result fields.

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 88%, so the baseline is 3, but the description goes further by explaining what keywords means per action (up to 5 for serp, 2-10 for serp_overlap, up to 10 questions for ai_answers), how target shape versus scope interact, and what provider can be beyond a name (an installed local package id). The undocumented keywords array is partly compensated for in prose, though not exhaustively.

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?

The tool is a multi-action SEO data gateway, and the description does name concrete verbs and resources for every action (keyword_metrics, ranked_keywords, serp, mentions, ai_answers, link_gap, etc.), so an agent can tell what data it produces. However, the opening sentence is about credit cost and saved API keys rather than what the tool does, and no sibling tool (seo_data, seo_compare, seo_report) is named to differentiate this from alternatives.

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?

Guidance is rich inside the tool: serp_overlap is for deciding 'one page or several', pages=true is for 'finding link and listicle targets', mentions orders no-link sites first 'to ask for the link', and ai_answers carries an explicit 'tell the person before running it' instruction. What is missing is guidance on when to use seo_research versus sibling tools, and any statement of when not to use it.

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.