Skip to main content
Glama

List competitors

list_competitors
Read-onlyIdempotent

Lists the competitors saved under one brand, up to 50 per page, with each competitor id, Facebook page, tracking state, stored ad count and flags (stale, off_category, possible_duplicate). The source of competitor_id for the tracking, analysis and Playbook tools. Counts cover only the ads stored for this account's tracked set, not an advertiser's full activity; a count still being computed shows as pending with count_retry_at, and off_category false can also mean not yet checked.

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": {
      "brand_id": "<brand_id>"
    },
    "name": "list_competitors"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoCompetitors per page, 1 to 50 (default 50).
cursorNonext_cursor from the previous page for this brand; absent for the first page.
brand_idYesBrand id from list_brands.
response_formatNoOutput format: text (default) or json. table is not available for this tool.

Output Schema

NameRequiredDescriptionDefault
scopeNoWhich accessible ad examples this search covered.
has_moreNoWhether another bounded page is available with next_cursor.
competitorsNoRivals saved under the selected brand.
next_cursorNoContinuation handle for the same filters; null when no further page is offered.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / cursor / description
      Previous value: -"next_cursor from the previous page for this brand."New value: +"next_cursor from the previous page for this brand; absent for the first page."
    • changedInput schema / properties / limit / description
      Previous value: -"Rivals per page, up to 50 (default 50)."New value: +"Competitors per page, 1 to 50 (default 50)."
    • changedInput schema / properties / response_format / description
      Previous value: -"Output format: text or json for capped research examples; table is available only for tracked rival rows."New value: +"Output format: text (default) or json. table is not available for this tool."
  2. Changed1 schema field changed
    • changedOutput schema / properties / competitors / anyOf
      Previous value: -[
      -  {
      -    "description": "Rivals saved under the selected brand.",
      -    "items": {
      -      "additionalProperties": false,
      -      "description": "Rivals saved under the selected brand.",
      -      "properties": {
      -        "ad_count": {
      -          "anyOf": [
      -            {
      -              "description": "ad count value in this response.",
      -              "type": "number"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "ad count value in this response."
      -        },
      -        "ads_tracked": {
      -          "anyOf": [
      -            {
      -              "description": "ads tracked value in this response.",
      -              "type": "number"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "ads tracked value in this response."
      -        },
      -        "ads_tracked_capped": {
      -          "anyOf": [
      -            {
      -              "description": "ads tracked capped value in this response.",
      -              "type": "boolean"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "ads tracked capped value in this response."
      -        },
      -        "ads_tracked_label": {
      -          "anyOf": [
      -            {
      -              "description": "ads tracked label value in this response.",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "ads tracked label value in this response."
      -        },
      -        "as_of": {
      -          "anyOf": [
      -            {
      -              "description": "as of value in this response.",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "as of value in this response."
      -        },
      -        "brand_id": {
      -          "anyOf": [
      -            {
      -              "description": "Reference for the selected brand.",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "Reference for the selected brand."
      -        },
      -        "count": {
      -          "anyOf": [
      -            {
      -              "description": "count value in this response.",
      -              "type": "number"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "count value in this response."
      -        },
      -        "count_status": {
      -          "anyOf": [
      -            {
      -              "description": "count status value in this response.",
      -              "enum": [
      -                "ready",
      -                "pending",
      -                "unavailable"
      -              ],
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "count status value in this response."
      -        },
      -        "country_code": {
      -          "anyOf": [
      -            {
      -              "description": "country code value in this response.",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "country code value in this response."
      -        },
      -        "created_at": {
      -          "anyOf": [
      -            {
      -              "description": "created at value in this response.",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "created at value in this response."
      -        },
      -        "facebook_page_id": {
      -          "anyOf": [
      -            {
      -              "description": "facebook page id value in this response.",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "facebook page id value in this response."
      -        },
      -        "flags": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": false,
      -              "description": "flags value in this response.",
      -              "properties": {
      -                "off_category": {
      -                  "anyOf": [
      -                    {
      -                      "description": "off category value in this response.",
      -                      "type": "boolean"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ],
      -                  "description": "off category value in this response."
      -                },
      -                "possible_duplicate": {
      -                  "anyOf": [
      -                    {
      -                      "description": "possible duplicate value in this response.",
      -                      "type": "boolean"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ],
      -                  "description": "possible duplicate value in this response."
      -                },
      -                "possible_duplicate_of": {
      -                  "anyOf": [
      -                    {
      -                      "description": "possible duplicate of value in this response.",
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ],
      -                  "description": "possible duplicate of value in this response."
      -                },
      -                "stale": {
      -                  "anyOf": [
      -                    {
      -                      "description": "stale value in this response.",
      -                      "type": "boolean"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ],
      -                  "description": "stale value in this response."
      -                }
      -              },
      -              "type": "object"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "flags value in this response."
      -        },
      -        "id": {
      -          "anyOf": [
      -            {
      -              "description": "id value in this response.",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "id value in this response."
      -        },
      -        "is_active": {
      -          "anyOf": [
      -            {
      -              "description": "is active value in this response.",
      -              "type": "boolean"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "is active value in this response."
      -        },
      -        "last_checked": {
      -          "anyOf": [
      -            {
      -              "description": "last checked value in this response.",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "last checked value in this response."
      -        },
      -        "last_scanned_at": {
      -          "anyOf": [
      -            {
      -              "description": "last scanned at value in this response.",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "last scanned at value in this response."
      -        },
      -        "logo_url": {
      -          "anyOf": [
      -            {
      -              "description": "logo url value in this response.",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "logo url value in this response."
      -        },
      -        "name": {
      -          "anyOf": [
      -            {
      -              "description": "name value in this response.",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "name value in this response."
      -        },
      -        "next_scan_at": {
      -          "anyOf": [
      -            {
      -              "description": "next scan at value in this response.",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "next scan at value in this response."
      -        },
      -        "off_category": {
      -          "anyOf": [
      -            {
      -              "description": "off category value in this response.",
      -              "type": "boolean"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "off category value in this response."
      -        },
      -        "page_url": {
      -          "anyOf": [
      -            {
      -              "description": "page url value in this response.",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "page url value in this response."
      -        },
      -        "tracking_enabled": {
      -          "anyOf": [
      -            {
      -              "description": "tracking enabled value in this response.",
      -              "type": "boolean"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "tracking enabled value in this response."
      -        },
      -        "tracking_note": {
      -          "anyOf": [
      -            {
      -              "description": "tracking note value in this response.",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "tracking note value in this response."
      -        },
      -        "updated_at": {
      -          "anyOf": [
      -            {
      -              "description": "updated at value in this response.",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "updated at value in this response."
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Rivals saved under the selected brand.",
      +    "items": {
      +      "additionalProperties": false,
      +      "description": "Rivals saved under the selected brand.",
      +      "properties": {
      +        "ad_count": {
      +          "anyOf": [
      +            {
      +              "description": "ad count value in this response.",
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "ad count value in this response."
      +        },
      +        "ads_tracked": {
      +          "anyOf": [
      +            {
      +              "description": "ads tracked value in this response.",
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "ads tracked value in this response."
      +        },
      +        "ads_tracked_capped": {
      +          "anyOf": [
      +            {
      +              "description": "ads tracked capped value in this response.",
      +              "type": "boolean"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "ads tracked capped value in this response."
      +        },
      +        "ads_tracked_label": {
      +          "anyOf": [
      +            {
      +              "description": "ads tracked label value in this response.",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "ads tracked label value in this response."
      +        },
      +        "as_of": {
      +          "anyOf": [
      +            {
      +              "description": "as of value in this response.",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "as of value in this response."
      +        },
      +        "brand_id": {
      +          "anyOf": [
      +            {
      +              "description": "Reference for the selected brand.",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Reference for the selected brand."
      +        },
      +        "count": {
      +          "anyOf": [
      +            {
      +              "description": "count value in this response.",
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "count value in this response."
      +        },
      +        "count_reason": {
      +          "anyOf": [
      +            {
      +              "description": "Machine-readable reason a rival count is pending or unavailable.",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Machine-readable reason a rival count is pending or unavailable."
      +        },
      +        "count_retry_at": {
      +          "anyOf": [
      +            {
      +              "description": "ISO timestamp when this rival count becomes eligible for another read.",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "ISO timestamp when this rival count becomes eligible for another read."
      +        },
      +        "count_status": {
      +          "anyOf": [
      +            {
      +              "description": "count status value in this response.",
      +              "enum": [
      +                "ready",
      +                "pending",
      +                "unavailable"
      +              ],
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "count status value in this response."
      +        },
      +        "country_code": {
      +          "anyOf": [
      +            {
      +              "description": "country code value in this response.",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "country code value in this response."
      +        },
      +        "created_at": {
      +          "anyOf": [
      +            {
      +              "description": "created at value in this response.",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "created at value in this response."
      +        },
      +        "facebook_page_id": {
      +          "anyOf": [
      +            {
      +              "description": "facebook page id value in this response.",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "facebook page id value in this response."
      +        },
      +        "flags": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "description": "flags value in this response.",
      +              "properties": {
      +                "off_category": {
      +                  "anyOf": [
      +                    {
      +                      "description": "off category value in this response.",
      +                      "type": "boolean"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "description": "off category value in this response."
      +                },
      +                "possible_duplicate": {
      +                  "anyOf": [
      +                    {
      +                      "description": "possible duplicate value in this response.",
      +                      "type": "boolean"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "description": "possible duplicate value in this response."
      +                },
      +                "possible_duplicate_of": {
      +                  "anyOf": [
      +                    {
      +                      "description": "possible duplicate of value in this response.",
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "description": "possible duplicate of value in this response."
      +                },
      +                "stale": {
      +                  "anyOf": [
      +                    {
      +                      "description": "stale value in this response.",
      +                      "type": "boolean"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "description": "stale value in this response."
      +                }
      +              },
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "flags value in this response."
      +        },
      +        "id": {
      +          "anyOf": [
      +            {
      +              "description": "id value in this response.",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "id value in this response."
      +        },
      +        "is_active": {
      +          "anyOf": [
      +            {
      +              "description": "is active value in this response.",
      +              "type": "boolean"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "is active value in this response."
      +        },
      +        "last_checked": {
      +          "anyOf": [
      +            {
      +              "description": "last checked value in this response.",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "last checked value in this response."
      +        },
      +        "last_scanned_at": {
      +          "anyOf": [
      +            {
      +              "description": "last scanned at value in this response.",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "last scanned at value in this response."
      +        },
      +        "logo_url": {
      +          "anyOf": [
      +            {
      +              "description": "logo url value in this response.",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "logo url value in this response."
      +        },
      +        "name": {
      +          "anyOf": [
      +            {
      +              "description": "name value in this response.",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "name value in this response."
      +        },
      +        "next_scan_at": {
      +          "anyOf": [
      +            {
      +              "description": "next scan at value in this response.",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "next scan at value in this response."
      +        },
      +        "off_category": {
      +          "anyOf": [
      +            {
      +              "description": "off category value in this response.",
      +              "type": "boolean"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "off category value in this response."
      +        },
      +        "page_url": {
      +          "anyOf": [
      +            {
      +              "description": "page url value in this response.",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "page url value in this response."
      +        },
      +        "tracking_enabled": {
      +          "anyOf": [
      +            {
      +              "description": "tracking enabled value in this response.",
      +              "type": "boolean"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "tracking enabled value in this response."
      +        },
      +        "tracking_note": {
      +          "anyOf": [
      +            {
      +              "description": "tracking note value in this response.",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "tracking note value in this response."
      +        },
      +        "updated_at": {
      +          "anyOf": [
      +            {
      +              "description": "updated at value in this response.",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "updated at value in this response."
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds non-obvious semantics on top: counts cover only the ads stored for this account's tracked set rather than an advertiser's full activity, an in-progress count appears as pending with count_retry_at, and off_category false may simply mean 'not yet checked.' Those caveats materially change how an agent should interpret the response.

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 verb, resource and scope before the caveats. Slight redundancy exists in enumerating the returned flags, which the output schema already defines, and the final sentence is dense, but no sentence is 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 read-only paginated list tool with an output schema, four fully described parameters and complete annotations, the description covers what an agent needs: scope, pagination, the role of competitor_id, and the data-quality caveats that would otherwise cause misreading of counts and flags.

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 limit, cursor, brand_id and response_format are already documented, and the description only echoes the 50-per-page bound and the single-brand scoping. It adds no syntax or format detail for cursor or response_format beyond what the schema states, so the baseline 3 applies.

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 description opens with a specific verb and resource ('Lists the competitors saved under one brand'), states the page size, and enumerates the returned fields (competitor id, Facebook page, tracking state, stored ad count, flags). It also positions itself against siblings by declaring it is 'the source of competitor_id for the tracking, analysis and Playbook tools,' so an agent can separate it from list_new_competitor_ads or list_tracked_rival_ads 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?

Usage is made clear indirectly but strongly: this is the entry point for obtaining competitor_id before calling tracking, analysis or Playbook tools. There is no explicit 'do not use this when…' or named alternative such as list_new_competitor_ads for ad-level data, so the routing is implied rather than exhaustive.

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.