Skip to main content
Glama

Get ranked keywords

get_ranked_keywords

Returns market-specific keyword, URL, rank, search volume, CPC, intent, and traffic rows for a domain or page. Accepts country-level DataForSEO Labs location/language codes. Use this for strategy evidence; use get_domain_overview for aggregate domain footprint. Charges credits (~5-10 typical).

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>",
      "target": "<target>"
    },
    "name": "get_ranked_keywords"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum rows to return (1-100). Defaults to 50.
scopeNoResearch scope: 'domain' (hostname without subdomains), 'subdomains' (hostname plus all subdomains), 'subfolder' (path and its children), or 'exact_url' (one page). Defaults to 'subdomains' for root inputs and 'subfolder' when the input has a path.
marketNoLegacy US selector. Prefer locationCode/languageCode for any Labs market. Explicit locationCode takes precedence; otherwise omitted = the project's default market.
offsetNoRows to skip for pagination.
sortByNoSort order for returned rows. Defaults to search_volume.
targetYesDomain (no protocol/www) or absolute page URL to list ranked keywords for.
maxRankNoOnly return keywords ranking at this position or better.
projectIdYesRequired. The FastestRank project ID to scope this call to. Get one from list_projects.
resultTypesNoSERP result types to include. Defaults to organic and paid.
languageCodeNoLanguage for locationCode. Defaults to that location's primary language when locationCode overrides the project market.
locationCodeNoCountry-level DataForSEO Labs location code. Defaults to the project's market; takes precedence over the legacy market object.
minSearchVolumeNoOnly return keywords with at least this monthly search volume.
excludeBrandTermsNoExclude keywords containing any of these brand terms.
includeSubdomainsNoDeprecated: use scope ('subdomains' or 'domain') instead.

Output Schema

NameRequiredDescriptionDefault
metaNo
scopeNo
targetNo
keywordsYes
totalCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Goes beyond the annotations by disclosing cost ('Charges credits (~5-10 typical)'), which is material for a tool whose readOnlyHint is false, and by noting that only country-level DataForSEO Labs codes are accepted. It does not discuss pagination behavior, though the schema's offset/limit descriptions partly cover that.

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

Conciseness5/5

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

Three short sentences, front-loaded with the resource and returned fields, then routing guidance, then cost. No sentence is filler and nothing is buried mid-paragraph.

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 14-parameter tool with an output schema and annotations, the description covers output shape at a summary level, sibling routing, and cost. The main residual gap is guidance on scope/limit tradeoffs at high parameter counts, but the schema handles per-parameter detail.

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 the schema already documents all 14 parameters including scope, sortBy, and location/language precedence. The description's mention of 'country-level DataForSEO Labs location/language codes' largely restates what the schema says rather than adding new syntax or defaults, so the baseline 3 is appropriate.

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 ('Returns ... keyword, URL, rank, search volume, CPC, intent, and traffic rows') plus the scope it operates over ('for a domain or page'). It explicitly contrasts itself with get_domain_overview, so an agent can distinguish the two 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 Guidelines4/5

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

Gives a clear use case ('strategy evidence') and names an alternative with the condition that selects it ('use get_domain_overview for aggregate domain footprint'). It stops short of covering other plausible siblings such as get_keyword_metrics or research_keywords, so it is clear but not exhaustive.

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.