Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
APIFY_TOKENYesYour Apify API token (e.g. apify_api_...), used to run the Google Maps Full Suite actor on your own Apify account. A free Apify account includes monthly credit.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

placegraph turns Google Maps data into a knowledge graph. Data comes from the "Google Maps Full Suite" actor on Apify, run on the user's Apify account (pay per event).

Workflow: tools that collect data (competitor_graph, territory_leads, enrich_leads, site_selection, walk_times, review_responses) start actor runs and wait up to wait_s seconds. If the runs aren't done, they return a job_id: call job_status(job_id) until status is SUCCEEDED (runs take 1-15 minutes; competitor graphs and grid searches are the slow ones). Each tool shows an estimated cost first and refuses to start above max_cost_usd.

Once a job has finished, find_places, alternatives, match_entities and export_graph work on its data for free (no new runs).

"People Also Search For" (PAS) is the list Google shows next to a place of the places people also look at: the graph's edges. Not every place has one.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
competitor_graphA

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.

territory_leadsA

Every business of a kind in an area: the area is split into a grid so results go past Google's ~120-per-search cap, deduplicated by place id; only places inside the radius are kept and charged. max_places counts those, so it caps cost. Returns a summary (categories, ratings, contact coverage), the lowest-rated leads and join-key coverage. Then enrich_leads adds each lead's competitors. Takes 5-15 min for ~25 cells.

enrich_leadsA

For leads picked from a finished territory_leads job, read who Google lists under 'People also search for' and score each lead against those competitors (rating gap, review share). 'lowest_rated' (default) finds places trailing their competitors. About $0.03 per lead with 10 competitors.

site_selectionA

Compare candidate locations for a new business: for each candidate address, the nearby competitors of that kind, their distance, rating, and Google popular times (hourly busyness 0-100, typical visit length). Returns competitor counts by radius, a saturation index, busiest slots and competitors shared between candidates. About $0.17 per candidate, 3-5 min.

walk_timesA

For a finished site_selection job: walking (or driving/cycling) times from each candidate to its nearest competitors, one route per pair. About $0.006 per route.

review_responsesA

Who answers their customers: for a list of places (Maps URLs, place ids or 'name + city'), or a search, read the newest reviews and report reply rate, reply rate on low ratings, response-time buckets, and the lowest-rated unanswered reviews to escalate. About $0.05 per location at 100 reviews.

job_statusA

Status of a job; when its runs have finished, the job's analysis. Waits up to wait_s seconds for running jobs.

find_placesA

Filter the places a finished job collected: text, category, rating, reviews, website/phone, open at a time of day, distance from a point. Free (no new runs). Use it to answer questions like 'late-night dentists near downtown', then alternatives() for similar places.

alternativesA

Places connected to one place along 'People also search for' edges in a finished competitor_graph or enrich_leads job: the places customers consider instead. hops=2 widens the circle. Free.

match_entitiesA

Join your own records (CRM, registry) to the places a finished job collected, on place id, phone, website domain, street address and name. Shared phones/domains (practices, chains) are flagged as ambiguous instead of guessed. Free.

export_graphA

Export a finished competitor_graph or enrich_leads job's graph: json (nodes/edges), graphml (Gephi, yEd), cypher (paste into Neo4j Browser or cypher-shell), mermaid (small graphs). Nodes carry their community (same ids as competitor_graph). focus_place_id exports one place's neighbourhood only, e.g. a mermaid diagram of a shop and its competitors. Free.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 11 tools

Disambiguation4/5

Most tools are cleanly separated by resource and stage: build a graph (competitor_graph), enumerate an area (territory_leads), score leads (enrich_leads), compare sites (site_selection), and read finished results (find_places, alternatives, export_graph, match_entities). The main soft spot is the cluster of graph-related tools (competitor_graph vs territory_leads vs enrich_leads vs alternatives), where an agent must read carefully to know which produces which artifact, but the descriptions do resolve it.

Naming Consistency3/5

Everything is snake_case and readable, but there is no predictable verb pattern: some names are verb_noun (export_graph, enrich_leads, find_places, match_entities), others are bare noun phrases naming the artifact or job type (competitor_graph, territory_leads, site_selection, walk_times, review_responses, job_status, alternatives). An agent cannot infer from a name alone whether a tool starts a job, reads results, or exports.

Tool Count5/5

Eleven tools is well within the sweet spot and each one maps to a distinct stage of the pipeline (discover, enrich, compare, export, join, filter). No obvious filler or redundancy in the count itself.

Completeness4/5

The competitive-analysis lifecycle is largely covered: discovery, enrichment, site comparison, routing, review auditing, export, and CRM matching. The notable gap is job lifecycle management — job_status requires an id but there is no list_jobs or cancel/delete job tool, which is a dead end for agents that lose track of a job id or need to stop a costly 5-15 minute run.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues