Skip to main content
Glama

Get ranked keywords

get_ranked_keywords
Read-onlyIdempotent

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

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 NameIO 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 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?

Annotations already declare read-only, idempotent, open-world, non-destructive behavior. The description adds the cost signal ('Charges credits') and market-specific/country-level scope, which are useful beyond the annotations, but it omits rate-limit or auth details.

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 compact sentences; purpose and fields are front-loaded, then usage/alternative, then cost. No redundant restatement of the name/title.

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 complex, 14-parameter read tool with rich annotations, full schema coverage, and an output schema, this description covers purpose, alternative, market scope, and cost. Remaining details like pagination and filter defaults are adequately handled by the structured schema.

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 all 14 parameters and defaults are already documented in the input schema. The description only adds high-level context about country-level location/language codes and domain-or-page targeting, without extra filter syntax or precedence details 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 ('Returns'), resource ('ranked keywords'), and the exact row fields plus target domain/page. It explicitly contrasts with get_domain_overview, so an agent can distinguish it from that sibling.

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?

Says to use this for strategy evidence and directs aggregate domain footprint work to get_domain_overview. It gives a clear alternative and context, though it does not spell out when other keyword-research siblings should be preferred.

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.

Resources