Skip to main content
Glama

Mencoro

Search tracked queries

search_tracked_queries
Read-onlyIdempotent

Search and paginate the tracked queries (keywords) of a project with their latest rank positions and metrics. Filter by status (active/paused), engines, countries, locations (city ids from get_available_filters, or "none" for country level; any location returns only google_serp and google_shopping queries), a free-text search and overdue (active queries whose latest check is older than their check frequency plus one day). Sort by one of: queryText, lastSerpPosition, lastMentionPosition, lastShoppingPosition, lastShareOfVoice, lastPositivityIndex, lastMentionCount, lastCheckedAt. limit is 1-100 (default 20). latestCheckEmpty is true when the query's latest check came back without an answer; its last* positions, mention counts, positivity and share of voice are then null rather than the previous answer's. overdue is true exactly when the overdue filter would select the item, and dueAt is when the query was due for its next check (its latest check plus its check frequency; null when never checked). Answers questions like "list my top queries by share of voice" or "find a specific tracked query".

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

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
searchNo
sortByNoqueryText
statusNo
enginesNoallowed values: chatgpt, claude, perplexity, google_ai_overview, google_ai_mode, google_serp, google_shopping
overdueNoOnly active queries whose latest check is older than their check frequency plus one day, the overdue count of get_tracking_coverage and of a report's asOf.overdueQueries
countriesNoISO-3166 alpha-2 country codes (e.g. "US", "GB", "DE"); a project's configured codes are listed by get_available_filters
locationsNoCity ids, or "none" for queries at country level; the cities in use are listed by get_available_filters. Any location returns only google_serp and google_shopping queries.
projectIdYes
sortOrderNodesc
organizationIdYes

Output Schema

NameRequiredDescriptionDefault
itemsYes
totalYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / locations
      Added value: +{
      +  "default": [],
      +  "description": "City ids, or \"none\" for queries at country level; the cities in use are listed by get_available_filters. Any location returns only google_serp and google_shopping queries.",
      +  "items": {
      +    "pattern": "^(none|[1-9][0-9]{0,8})$",
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / items / items / properties / location
      Added value: +{
      +  "description": "The city a Google SERP or Shopping query is located in. Null at country level and for AI queries.",
      +  "properties": {
      +    "canonicalName": {
      +      "type": "string"
      +    },
      +    "countryCode": {
      +      "type": "string"
      +    },
      +    "displayName": {
      +      "type": "string"
      +    },
      +    "id": {
      +      "description": "Google geotarget id of the city, the value the locations filter and locationId take",
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "displayName",
      +    "canonicalName",
      +    "countryCode"
      +  ],
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
  2. Changed2 schema fields changed
    • addedOutput schema / properties / items / items / properties / dueAt
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / items / items / properties / overdue
      Added value: +{
      +  "type": "boolean"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / overdue
      Added value: +{
      +  "default": false,
      +  "description": "Only active queries whose latest check is older than their check frequency plus one day, the overdue count of get_tracking_coverage and of a report's asOf.overdueQueries",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / items / items / properties / latestCheckEmpty
      Added value: +{
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • addedOutput schema / properties / items / items / properties / lastHadLink
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  5. Changed4 schema fields changed
    • addedOutput schema / properties / items / items / properties / lastHadAppearance
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / items / items / properties / lastHadMention
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / items / items / properties / lastHadSerpResult
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / items / items / properties / lastHadShoppingResult
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  6. Changed2 schema fields changed
    • changedInput schema / properties / engines / description
      Previous value: -"allowed values: chatgpt, perplexity, google_ai_overview, google_ai_mode, google_serp, google_shopping"New value: +"allowed values: chatgpt, claude, perplexity, google_ai_overview, google_ai_mode, google_serp, google_shopping"
    • 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"
      +]
  7. Changed24 schema fields changed
    • addedInput schema / properties / search / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / search / type
      Removed value: -[
      -  "null",
      -  "string"
      -]
    • addedInput schema / properties / status / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / status / type
      Removed value: -[
      -  "null",
      -  "string"
      -]
    • addedOutput schema / properties / items / items / properties / lastCheckedAt / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / items / items / properties / lastCheckedAt / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedOutput schema / properties / items / items / properties / lastLinkPosition / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / items / items / properties / lastLinkPosition / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedOutput schema / properties / items / items / properties / lastMentionPosition / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / items / items / properties / lastMentionPosition / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedOutput schema / properties / items / items / properties / lastNegativeMentionCount / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / items / items / properties / lastNegativeMentionCount / type
      Removed value: -[
      -  "integer",
      -  "null"
      -]
    • addedOutput schema / properties / items / items / properties / lastNeutralMentionCount / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / items / items / properties / lastNeutralMentionCount / type
      Removed value: -[
      -  "integer",
      -  "null"
      -]
    • addedOutput schema / properties / items / items / properties / lastPositiveMentionCount / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / items / items / properties / lastPositiveMentionCount / type
      Removed value: -[
      -  "integer",
      -  "null"
      -]
    • addedOutput schema / properties / items / items / properties / lastPositivityIndex / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / items / items / properties / lastPositivityIndex / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedOutput schema / properties / items / items / properties / lastSerpPosition / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / items / items / properties / lastSerpPosition / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedOutput schema / properties / items / items / properties / lastShareOfVoice / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / items / items / properties / lastShareOfVoice / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedOutput schema / properties / items / items / properties / lastShoppingPosition / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / items / items / properties / lastShoppingPosition / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
  8. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, non-destructive behavior, and the description adds materially beyond them: the location filter silently narrows results to google_serp and google_shopping queries, latestCheckEmpty explains why last* metrics, mention counts, positivity and share of voice can be null, and dueAt/overdue semantics are defined precisely. These are non-obvious result-shaping rules an agent would otherwise get wrong.

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?

Purpose is front-loaded in the first sentence, followed by filter semantics, sort options, and result-field caveats in a logical order. The long parentheticals are dense but each carries actionable information (location engine restriction, null-metric explanation, overdue definition) rather than filler.

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?

For a 12-parameter read tool with annotations and an output schema, the description covers what the structured fields do not: filter interactions, sort surface, limit range, and the meaning of derived result fields like latestCheckEmpty, overdue and dueAt. An agent has enough to construct a correct call and interpret the response without guessing.

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?

With only 33% schema description coverage, the description compensates well: it explains locations accepts city ids from get_available_filters or the literal 'none' for country level plus the resulting engine restriction, defines overdue as 'latest check older than check frequency plus one day,' and enumerates sortBy values. It partially repeats the schema limit/sort enum rather than adding to it, and offset and the two required ids get no narrative treatment.

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 description opens with a specific verb and resource: 'Search and paginate the tracked queries (keywords) of a project with their latest rank positions and metrics,' and closes with example questions that pin down the retrieval intent. It never names a sibling (e.g., get_tracked_query for a single query, create_tracked_queries for writes), so differentiation is implied by the plural/paginated scope 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?

Concrete usage contexts are given through the example questions ('list my top queries by share of voice', 'find a specific tracked query') and each filter is described with its selection condition (status, engines, countries, locations, free-text, overdue). What is missing is an explicit when-not clause or a named alternative for drilling into one query versus listing many.

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.