Skip to main content
Glama

Topic Research

topic_research

Topic research for content ideas: one seed topic in one market becomes its subtopics, questions and headlines, read from two Google sources at once. Google autocomplete (the suggestions google_suggest_harvest gives) is grouped into subtopics: the searches that share a word beyond the topic's own (a plain plural counts as the word; function and question words never name one), the largest first, at most 20, each named by that word or the two-word phrase most of its searches share, with its searches and its questions (size counts both); other_searches are the completions no subtopic took. The Google results page for the topic gives headlines (the titles of the top 10 results with position, domain and url), People Also Ask questions and related searches, and keyword_difficulty (DataFluxor's estimate, not a Google figure). questions lists People Also Ask first (source people_also_ask), then autocomplete questions (source autocomplete, with their subtopic). Subtopics follow Google's completion order, not search volume: no volumes are bought here (keyword_metrics or keyword_research price them for the searches you choose). status is complete (both sources read and at least one subtopic), limited (one source failed or was not used, or no subtopic: warnings say which) or insufficient (Google had nothing to show). autocomplete and results_page say how each source answered (read, failed with a plain reason, or query_corrected: Google answered another query, so its page is not used). Credits: the Google results page (5 live, 0 from cache, counted toward the daily live-page allowance when live) plus autocomplete (1 live, 0 from cache), each only when it was delivered, so at most 6; when neither source answers the call fails and nothing is charged. The result is returned here only and is not kept as a run. The same idempotency_key prevents a second charge during its retry window.

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": {
      "topic": "<topic>",
      "country": "<country>"
    },
    "name": "topic_research"
  }
}

Input Schema

NameRequiredDescriptionDefault
topicYesThe topic to research: a short seed such as a product, service or subject (1-3 words gives the most subtopics)
countryYesTwo-letter country code of a supported market; see GET /api/v1/serp/markets. Autocomplete and the results page are read in this market.
languageNoResult language (Google hl). Defaults to the market's own language; markets served through the managed SERP API accept any language code, e.g. en for English results in DE.
freshnessNoReuse of stored Google results pages. standard (default): a page fetched within this tool's window (24 hours; 6 hours with project_id unless max_age_seconds says otherwise) may answer, at 0 credits instead of 5. fresh: every page is fetched live now. A result says what it used at its top level: cache_hit, with cache_age_seconds (one search) or rows_from_cache and oldest_page_age_seconds (several searches).
verbosityNoconcise: short summary of the answer; full: the whole answer. Only shapes the output. Send idempotency_key to read the other form later without a new charge.
idempotency_keyNoOptional retry key bound to this customer and these arguments. Matching retries replay the first result and do not reserve a second credit; the replay says so in billing (replayed true, credits_charged_this_call 0, original_credits_used).
max_age_secondsNoOldest stored results page that may answer, in seconds (60 to 86400); older pages are fetched live. Default: this tool's window (24 hours), or 6 hours (21600) when project_id is given and max_age_seconds is not, because a day-old page is not where a site ranks now.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Far beyond the annotations, it discloses exact credit charges (5 live results page, 1 autocomplete, max 6), that failures charge nothing, the three status outcomes with what triggers each (complete/limited/insufficient), per-source outcomes (read, failed, query_corrected), and that the result is not persisted as a run. The idempotency retry window is also explained behaviorally. Nothing here contradicts readOnlyHint=false, destructiveHint=false or openWorldHint=true.

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

Conciseness3/5

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

The purpose is front-loaded, but the body is a wall of deeply nested parentheticals and run-on sentences ('the searches that share a word beyond the topic's own (a plain plural counts as the word; function and question words never name one)') that force re-reading. Nearly every clause carries real semantics, so it is over-dense rather than padding — but grouping logic, output fields and billing into one block hurts scanability.

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 7-parameter, two-source tool with no output schema, the description carries the load well: it names the output fields (subtopics, other_searches, questions with source, headlines with position/domain/url, keyword_difficulty, status, autocomplete, results_page) and their ordering rules. The gaps are modest — it does not describe the shape of a 'limited' warning or what the failure payload looks like when both sources fail and nothing is charged.

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 topic, country, language, freshness, verbosity, idempotency_key and max_age_seconds. The description reinforces the semantics of the two-source read and the cache-versus-live charge split, but adds little parameter-level meaning the schema lacks (e.g. it never explains when to prefer 'concise' over 'full' or how max_age_seconds interacts with country).

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?

The opening sentence names a specific verb and resource ('Topic research ... one seed topic in one market becomes its subtopics, questions and headlines') and states the two-source scope. It explicitly distinguishes itself from google_suggest_harvest (raw suggestions, ungrouped) and from keyword_metrics/keyword_research (volume pricing), so an agent can differentiate without opening a 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?

It routes pricing work to keyword_metrics or keyword_research ('no volumes are bought here') and identifies google_suggest_harvest as the source of the autocomplete strings, which tells an agent what this tool adds. It stops short of an explicit 'use this instead of X when Y' statement and gives no exclusions or prerequisites beyond the credit notes.

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