Skip to main content
Glama

Get keyword metrics

get_keyword_metrics

Hydrate up to 700 known keywords with search volume, keyword difficulty (KD), search intent, CPC, competition, and monthly trends in a single call. Use it to score candidate or known keywords — including Search Console striking-distance queries — by real demand and ranking difficulty. For countries served from Google Ads data (e.g. Iceland), KD and intent are null. Charges credits (~1 credit per keyword).

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>",
      "keywords": "<keywords>"
    },
    "name": "get_keyword_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortByNoSort order for returned rows. Defaults to search_volume.
keywordsYesKeywords to fetch metrics for (1-700).
projectIdYesRequired. The FastestRank project ID to scope this call to. Get one from list_projects.
languageCodeNoLanguage code (e.g. 'en', 'es', 'vi'). Defaults to the project's default market language (see list_projects).
locationCodeNoDataForSEO location code. Defaults to the project's default market (see list_projects; editable in project settings). See dataforseo.com/help-center/locations. Some countries (e.g. Iceland, 2352) are served from Google Ads data: keyword volume/CPC/trends work, but keyword difficulty, search intent, and domain analytics are unavailable.
includeMonthlyTrendsNoInclude monthly search-volume trend rows. Defaults to true.
includeClickstreamDataNoRefine search volumes with clickstream data, which disaggregates Google Ads' grouped close-variant volumes (plurals/misspellings). DOUBLES the credit cost of the call. Default false. No effect for countries served from Google Ads data.

Output Schema

NameRequiredDescriptionDefault
metaNo
keywordsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: credit cost (~1 per keyword), the fact that includeClickstreamData doubles cost, the 700-keyword ceiling, and the Google Ads-served country caveat where KD and intent return null. The annotations only say readOnly=false, destructive=false, openWorld=false, so the description is doing most of the work; not covered is behavior for keywords with no data.

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?

Four tight sentences, front-loaded with capability and scale, then use case, then the data-availability caveat, then cost. No filler or repetition; each sentence carries a distinct fact.

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?

With an output schema present, return values need no explanation, and the description covers scale limits, pricing, and regional data gaps. The remaining gap is edge-case behavior for keywords with no metrics or invalid input handling.

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 parameters are already fully documented. The description's country caveat and credit-cost note largely restate what locationCode and includeClickstreamData already say in the schema, so it adds little new parameter meaning beyond the structured fields.

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?

Specific verb and resource: 'hydrate up to 700 known keywords' with an enumerated output metric set (volume, KD, intent, CPC, competition, trends). The word 'known' and the framing around scoring candidates implicitly separates it from suggestion/discovery tools, but no sibling is named outright, so the differentiation is inferred rather than stated.

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 when-to-use clause: 'score candidate or known keywords — including Search Console striking-distance queries — by real demand and ranking difficulty.' It does not state when NOT to use it or point to an alternative for keyword discovery, leaving that routing to inference.

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.