Skip to main content
Glama

Add topics

add_topics

Adds questions to the topic bank. Uses BYO DataForSEO for Google volume, AI search volume, and intent when connected; otherwise stores estimates. Costs the user about USD 0.11 per batch, whatever the term count; terms already measured in the last 30 days are skipped and cost nothing. One call covers all terms at that cost. Every term is checked against the stored topics and against the others in the same call before anything is measured. duplicates names terms identical to something already there (scope stored collapsed onto an existing topicId; scope in-call was sent twice in this call); no row is created. similar names terms withheld for competing with an existing topic (score, term, topicId, inserted: false); re-sending with allowSimilar: true stores both on purpose (inserted: true then). similarityThreshold is the cutoff in use. published names terms withheld for resembling a page the site already published, with url, path, score, inserted: false and a source: source sitemap is a content page from import_sitemap, compared by a title inferred from its slug (inferredTitle); source profile is a page that sells, such as the home, compared by the keyword the founder declared for it in profile.pageKeywords (targetKeyword). Each published entry names the phrase and the existing URL it resembles; re-sending with allowSimilar: true stores it anyway. semanticOverlaps is a separate, softer signal: terms that were stored and measured, but a classifier read as asking the same question as an existing topic in different wording: probability, term and the topicId it overlaps, stored either way. semanticOverlapThreshold is the cutoff in use, and the list is empty when the classifier is unavailable. Returns measured (terms DataForSEO answered for) and unmeasured (terms it did not); an unmeasured term keeps source estimate and is not ranked. volumeStatus and aiVolumeStatus on the returned topics report observed, unavailable or unmeasured; an unavailable volume is never a 0. Can be refused before spending with degraded: true, reason: spend-limit and a spend object naming the ceiling that tripped; nothing is charged. resurrected names terms whose archived topic was brought back instead of creating a new row, keeping the metrics and brief it was archived with. market picks which of the workspace's markets the terms are measured in (an id from get_profile markets; the main market when left out), and the response names it (market): the 30-day skip reads that market's numbers, and numbers measured outside the main market are stored under that market (list_topics markets) without touching the main market's. The checks against stored topics are per workspace, whatever the market. estimatedUsd is the estimate for measuring the pending terms in that market, the figure checked against the ceiling, and 0 when nothing needed measuring. An id outside the workspace's markets is refused with degraded: true and reason unknown_market before anything is measured or charged.

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": "add_topics"
  }
}

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.
sourceNo
workspaceIdNoThe workspace this call acts on, as listed by list_workspaces. Left out, the call uses the workspace the account is in right now.
allowSimilarNo

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

A3.7/5.0
Behavior5/5

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

The description adds extensive behavior beyond the annotations: per-batch cost, 30-day skip behavior, duplicate/similar/published handling, semantic overlap signals, degradation with spend-limit or unknown_market reasons, and market-specific storage effects. It also details what is and is not charged or inserted, which is precisely the kind of disclosure a write tool needs.

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

Conciseness2/5

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

The description is front-loaded with purpose and cost, but it becomes a dense wall of semicolon-separated edge cases. Phrasing such as 'duplicates names terms identical...' and the nested parentheticals make it hard to scan, so valuable content is buried in poor structure.

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 five-parameter write tool with no output schema, the description is unusually complete: it explains returned fields, unmeasured terms, volumeStatus/aiVolumeStatus, spend refusals, and market handling. The main gap is the unexplained source parameter; otherwise an agent has enough context to call it safely.

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?

The description adds real meaning for terms, market, and allowSimilar, including market scoping and the effect of re-sending with allowSimilar true. However, schema coverage is only 40%, and the source parameter's enum values add, generate, and chat are not explained anywhere; workspaceId is also left mainly to the schema.

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?

The opening sentence states a specific verb and resource: it adds questions to the topic bank. That is enough for an agent to identify the core operation, but the definition never explicitly distinguishes itself from topic-generation siblings such as propose_topics or suggest_topics.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The description implies usage by explaining batching costs and the allowSimilar re-send path, but it gives no explicit guidance on when to use this tool rather than another topic tool. The conditions it gives are mostly behavioral rather than selection guidance.

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