Skip to main content
Glama

Mencoro

Create tracked queries

create_tracked_queries

Start tracking queries: every combination of queryTexts x engines x countries (at most 100) becomes a tracked query, checked now and then on checkFrequency with nPasses passes, each check spending budget. Combinations the project already tracks, repeated ones and Google AI Mode in unsupported countries are skipped and reported. Requires a confirmationToken: call preview_operation with tool "create_tracked_queries" and these arguments first, show the returned plan (what is created, what it costs) to the user, and call this tool only after the user explicitly agrees. Pass a fresh requestId and reuse it if you retry.

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": {
      "organizationId": "<organizationId>",
      "projectId": "<projectId>",
      "queryTexts": "<queryTexts>",
      "engines": "<engines>",
      "countries": "<countries>",
      "checkFrequency": "<checkFrequency>",
      "nPasses": "<nPasses>",
      "confirmationToken": "<confirmationToken>"
    },
    "name": "create_tracked_queries"
  }
}

Input Schema

NameRequiredDescriptionDefault
localeNoOptional two-letter language the engines should answer in
enginesYes
nPassesYesAnswers captured per check; more than 1 only for AI engines. Each pass counts as one check against your plan; a Claude pass counts as five.
countriesYesISO 3166-1 alpha-2 codes, e.g. ["US", "ES"]
projectIdYes
requestIdNoOptional idempotency key, 8-255 printable characters. Reuse it only to retry this same call.
locationIdNoOptional Google city id from search_cities, to track local results of that city instead of the whole country (for example a shop's town). Only with engines google_serp and google_shopping, and with exactly one country, the city's. Omit it for country-level queries.
queryTextsYes
checkFrequencyYes
organizationIdYes
queryClusterIdsNo
confirmationTokenYes

Output Schema

NameRequiredDescriptionDefault
failedNoAlways present, empty list included: read it rather than inferring success from the status code.
successfulNoTracked queries created by this call, one entry per query text, engine and country combination.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / locationId
      Added value: +{
      +  "default": null,
      +  "description": "Optional Google city id from search_cities, to track local results of that city instead of the whole country (for example a shop's town). Only with engines google_serp and google_shopping, and with exactly one country, the city's. Omit it for country-level queries.",
      +  "minimum": 1,
      +  "type": [
      +    "null",
      +    "integer"
      +  ]
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / engines / items / enum
      Previous value: -[
      -  "chatgpt",
      -  "perplexity",
      -  "google_ai_overview",
      -  "google_ai_mode",
      -  "google_serp",
      -  "google_shopping"
      -]New value: +[
      +  "chatgpt",
      +  "claude",
      +  "perplexity",
      +  "google_ai_overview",
      +  "google_ai_mode",
      +  "google_serp",
      +  "google_shopping"
      +]
    • changedInput schema / properties / nPasses / description
      Previous value: -"Answers captured per check; more than 1 only for AI engines. Each pass costs one check."New value: +"Answers captured per check; more than 1 only for AI engines. Each pass counts as one check against your plan; a Claude pass counts as five."
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that each combination is re-checked on checkFrequency with nPasses passes and that every check consumes budget, that at most 100 combinations are accepted, and that skipped combinations are reported. The confirmation-token gate and the requestId retry contract add real behavioral context that readOnlyHint/destructiveHint do not convey.

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?

Three sentences, front-loaded with the core expansion rule before the safety gate, and no filler. The middle sentence is very dense (frequency, passes, budget, and skip rules packed together), which slightly hurts scannability but each clause still carries information.

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 12-parameter mutating tool with a real budget impact, it covers the essential prerequisites, cost model, cap, and skip semantics, and the existence of an output schema means return shape needn't be described. The unmentioned queryClusterIds parameter and the absence of any note on organizationId/projectId scoping keep it short of complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With only 42% schema coverage, the description carries the load: it explains the cross-product relationship between queryTexts, engines and countries plus the 100-combination cap, ties nPasses and checkFrequency to actual check cost, and defines how confirmationToken and requestId must be produced. The one residual gap is queryClusterIds, which is undocumented in both schema and description.

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 ("Start tracking queries") and immediately defines the exact expansion rule: every combination of queryTexts x engines x countries, capped at 100, becomes a tracked query. That is far more precise than the name or title alone, and it distinguishes this creation tool from the sibling management tools (pause/resume/delete/add-to-cluster).

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?

Prescribes an explicit workflow: call preview_operation with tool "create_tracked_queries" and these arguments, show the returned plan to the user, and only call this tool after explicit agreement. It also states what will be silently skipped (already-tracked combinations, repeats, Google AI Mode in unsupported countries) and that the requestId must be fresh and reused only on retry.

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.