Skip to main content
Glama

Mencoro

Competitor co-occurrence (head-to-head)

get_competitor_cooccurrence
Read-onlyIdempotent

For the AI answers where the brand and a competitor are BOTH mentioned, compares who is named higher. One row per tracked competitor: how many answers they co-appear in, how often the brand out-ranks / loses to / ties them (by best mention position), the win rate, the average positions, and one representative shared query. Optionally focus a single competitor via competitorId. Tracked competitors only. Dates must fall within the data retention window. Read as of dateTo (an archived project's archive day when earlier): each tracked query active that day counts through every pass of its latest check on or before it, and a check that came back empty, a query not active that day or a deleted query contributes nothing; dateFrom is validated but bounds nothing. asOf.date names the day read. A call whose reads run past their time budget is refused; narrow the range or filters instead of retrying as is. Answers questions like "who wins when we both appear", "do I outrank competitor X", "who is mentioned first".

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>",
      "dateFrom": "<dateFrom>",
      "dateTo": "<dateTo>"
    },
    "name": "get_competitor_cooccurrence"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateToYes
enginesNoallowed values: chatgpt, claude, perplexity, google_ai_overview, google_ai_mode (SERP/Shopping have no AI text mentions)
dateFromYes
countriesNoISO-3166 alpha-2 country codes (e.g. "US", "GB", "DE"); a project's configured codes are listed by get_available_filters
projectIdYes
competitorIdNooptional competitor UUID to focus on a single rival; competitor UUIDs are listed by get_available_filters (competitors[].id)
organizationIdYes

Output Schema

NameRequiredDescriptionDefault
asOfYesThe day read: dateTo, or the day the project was archived when that is earlier.
competitorsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / asOf
      Added value: +{
      +  "description": "The day read: dateTo, or the day the project was archived when that is earlier.",
      +  "properties": {
      +    "date": {
      +      "format": "date",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "date"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "competitors"
      -]New value: +[
      +  "competitors",
      +  "asOf"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / engines / description
      Previous value: -"allowed values: chatgpt, perplexity, google_ai_overview, google_ai_mode (SERP/Shopping have no AI text mentions)"New value: +"allowed values: chatgpt, claude, perplexity, google_ai_overview, google_ai_mode (SERP/Shopping have no AI text mentions)"
    • 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"
      +]
  3. Changed12 schema fields changed
    • addedInput schema / properties / competitorId / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / competitorId / type
      Removed value: -[
      -  "null",
      -  "string"
      -]
    • addedOutput schema / properties / competitors / items / properties / avgCompetitorPosition / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / competitors / items / properties / avgCompetitorPosition / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedOutput schema / properties / competitors / items / properties / avgOwnPosition / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / competitors / items / properties / avgOwnPosition / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedOutput schema / properties / competitors / items / properties / exampleAiResponseId / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / competitors / items / properties / exampleAiResponseId / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedOutput schema / properties / competitors / items / properties / exampleQueryText / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / competitors / items / properties / exampleQueryText / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedOutput schema / properties / competitors / items / properties / winRate / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / competitors / items / properties / winRate / type
      Removed value: -[
      -  "integer",
      -  "null"
      -]
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial semantics beyond them: the as-of read model, that each tracked query counts through every pass of its latest check on or before dateTo, that empty checks, inactive queries and deleted queries contribute nothing, that dateFrom is validated but does not bound results, and that over-budget reads are refused. No contradiction with the readOnly annotation.

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 core comparison before the output shape, then constraints, then the example questions. The middle is a dense run of semicolon-linked clauses about read semantics that takes a second pass to parse, but every sentence carries operational information 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 seven-parameter analytical read with annotations and an output schema, the description covers purpose, output grain, scope limits, read semantics and failure mode. Return-value structure is rightly deferred to the output schema, so nothing an agent needs in order to call this correctly is missing.

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 43% schema description coverage, the description carries real weight: it explains competitorId's focusing behavior and that the dates are an as-of read rather than a bounded range, which the schema does not convey. It leaves engines, countries, organizationId and projectId entirely to the schema, so it does not fully compensate for the coverage gap, but the non-obvious parameters are covered.

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: it compares who is named higher when the brand and a competitor both appear in AI answers, with the output grain made explicit ('One row per tracked competitor'). The listed metrics (co-appearance count, out-rank/lose/tie, win rate, average positions, representative query) make it unmistakable against siblings like get_mention_mix or get_share_of_voice_formula.

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?

Gives concrete entry conditions: scope is 'Tracked competitors only', competitors must be resolvable, dates must fall inside the retention window, and competitorId optionally narrows to a single rival. It also prescribes recovery behavior on time-budget refusals ('narrow the range or filters instead of retrying as is'). It stops short of naming a sibling alternative for the case where the agent actually wants brand-only or all-competitor share-of-voice analysis.

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.