Skip to main content
Glama

Refresh topic metrics

refresh_metrics
Destructive

Re-measure Google volume, AI search volume and intent for topics already in the topic bank. This is the only way to refresh measured metrics, and it is always a batch: three requests total, about USD 0.11 for the whole run whether you pass 1 term or 200. Priced per batch, not per term. Terms beyond 200 are dropped and reported as overflow. refreshed counts the terms DataForSEO actually answered for and unmeasured names the rest. The run is refused before spending, with degraded: true and reason: spend-limit, when its estimate would break the per-run or rolling 24h ceiling; the spend object carries the estimate, the ceiling and what was already spent in the window, and nothing is charged. archived names terms dropped before anything was priced because their topic is retired; they are never re-measured, so no money is spent on them. market picks the workspace market to re-measure in (an id from get_profile markets; the main market when left out), and the response names it (market): numbers measured outside the main market are stored under that market and never replace the main market's. An id outside the workspace's markets is refused with reason unknown_market before anything is spent.

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": {
      "terms": "<terms>"
    },
    "name": "refresh_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
termsYes
marketNoThe workspace market this call measures in, as an id from get_profile markets ("ar-es", "br-pt"). Left out, the main market. An id outside the workspace's markets is refused with reason unknown_market before anything is spent.
workspaceIdNoThe workspace this call acts on, as listed by list_workspaces. Left out, the call uses the workspace the account is in right now.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / market
      Added value: +{
      +  "description": "The workspace market this call measures in, as an id from get_profile markets (\"ar-es\", \"br-pt\"). Left out, the main market. An id outside the workspace's markets is refused with reason unknown_market before anything is spent.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / workspaceId
      Added value: +{
      +  "description": "The workspace this call acts on, as listed by list_workspaces. Left out, the call uses the workspace the account is in right now.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well past the annotations by disclosing pricing ($0.11 flat per batch regardless of term count), the 200-term cap and overflow reporting, the pre-spend refusal paths (spend-limit and unknown_market) with their reason codes, and the response fields refreshed/unmeasured/archived/spend. The only gap is that destructiveHint=true is never reconciled — nothing tells the agent what the write actually overwrites, though the market paragraph hints that numbers are stored rather than replaced.

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?

Front-loaded with the action and the cost model, which is what an agent most needs. The market mechanics are restated almost verbatim from the schema's market description, so a chunk of the final two sentences is duplicated structured data.

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

Completeness5/5

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

With no output schema, the description takes on the job of naming the response fields (refreshed, unmeasured, archived, overflow, market, spend) and their meaning. For a paid, non-idempotent batch mutation, the cost ceiling, refusal semantics and storage behavior are all present.

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 67% and the description compensates: it explains that 'terms' is priced per batch not per term and that terms beyond 200 are dropped, and it documents market defaulting to the main market plus the storage consequence of measuring off-market. workspaceId is left entirely to the schema description, which keeps this from a 5.

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 ('Re-measure Google volume, AI search volume and intent for topics already in the topic bank') and explicitly positions itself as the sole refresh path, which separates it from the research/analysis siblings. An agent can identify the operation without opening the schema.

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?

Explains when to use it (topics already in the bank, not new research), the operating constraint (always a batch of three requests, 200-term cap with overflow), and the exclusion cases (archived topics are never re-measured; over-limit runs are refused before spending). No alternative tool exists for this job and the text says so.

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