Skip to main content
Glama

Competitor knowledge graph

competitor_graph

Search a category in an area and graph Google’s 'People also search for' places to identify the competitors customers compare and local brand communities.

Instructions

Search a category in an area and build the graph of places Google shows under 'People also search for' next to each result. Returns the category anchors (places most often listed: the ones customers compare) and communities (brand neighbourhoods). Slow (5-15 min) and the costliest tool: about $0.002 per place + $0.003 per competitor entry.

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": {
      "query": "<query>",
      "location": "<location>"
    },
    "name": "competitor_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesWhat to search, e.g. 'coffee shop'
wait_sNoSeconds to wait for the runs before returning a job id (default 45).
languageNoGoogle language code (default en)
locationYesArea, e.g. 'Austin, TX' or 'lat,lng'
max_placesNoSeed places from the search (default 30)
max_cost_usdNoRefuse to start if the estimated cost is above this (USD). Default 5.
include_off_categoryNoKeep PAS places of other categories in the analysis (default false)
competitors_per_placeNoPAS entries per place (default 10; Google shows up to 24)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false), the description discloses the two things an agent cannot infer: a 5-15 minute runtime and a per-unit cost model ($0.002 per place + $0.003 per competitor entry). That is genuine behavioral context, though it omits that the call may return a job id for later polling rather than finished results.

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?

Two tightly written sentences with no filler: the action and outputs come first, and the cost/time caveat follows where it is most useful. Nothing is repeated from the schema or annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a slow, expensive, eight-parameter tool with no output schema, the description covers outputs, runtime, and cost adequately. The notable gap is the async path: it never explains that a job id may be returned or that job_status should be used to poll, which is the key operational detail for a tool that can run 15 minutes.

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 coverage is 100%, so all eight parameters are already documented, and the description does add meaning by tying 'per place' and 'per competitor entry' costs to max_places and competitors_per_place. However, it gives no guidance on wait_s, include_off_category, or the max_cost_usd guardrail, which are the parameters most likely to be misused.

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 pairs a specific verb ('Search a category in an area and build the graph') with a precisely named resource and even enumerates the two returned entities (category anchors and communities). It is unambiguously a graph-building tool rather than a plain place lookup, though it never names a sibling such as alternatives or find_places to make the distinction explicit.

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?

Usage context is implied through the operational warnings ('Slow (5-15 min) and the costliest tool'), which tell an agent this is a heavyweight option to reach for deliberately. There is no explicit when-to-use/when-not statement and no named cheaper alternative for a quick single-category lookup.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.