Skip to main content
Glama

Enrich leads with their competitors

enrich_leads

Scores leads from a finished territory_leads job against Google 'People also search for' competitors using rating gaps and review share, helping identify businesses trailing their local competition.

Instructions

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.

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": {
      "job_id": "<job_id>"
    },
    "name": "enrich_leads"
  }
}

Input Schema

NameRequiredDescriptionDefault
pickNoWhich leads (default lowest_rated)
top_nNoHow many leads (default 20)
job_idYesA finished territory_leads job
wait_sNoSeconds to wait for the runs before returning a job id (default 45).
place_idsNoEnrich exactly these places instead of picking
categoriesNoOnly these categories, e.g. ['Dentist', 'Cosmetic dentist']
min_reviewsNoIgnore places with fewer reviews (default 20)
max_cost_usdNoRefuse to start if the estimated cost is above this (USD). Default 5.
competitors_per_placeNoDefault 10

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare it is non-read-only, open-world, non-idempotent, non-destructive; the description adds real substance beyond that: it hits an external Google data source, scores leads against competitors, and costs roughly $0.03 per lead (10 competitors). It stops short of saying it launches an async run whose result is fetched via job_status, but that is partially recoverable from the wait_s parameter.

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?

Three compact sentences: what it does, what the default mode means, and the cost. Nothing is padded and the purpose is front-loaded before the cost caveat.

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

Completeness4/5

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

With nine parameters, no output schema, and an async run inferred from wait_s, the description covers origin, behavior, default selection, and cost adequately. It is slightly incomplete on what the enrichment result contains (scoring fields, per-lead output) and that a job id may be returned before completion.

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 every parameter is already documented, and the description largely repeats the 'lowest_rated' default. The cost-per-lead note does add some meaning to competitors_per_place and max_cost_usd, but the pick enum values and place_ids/categories semantics are left entirely to the schema.

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: read Google's 'People also search for' competitors and score each lead against them via rating gap and review share. The input source ('leads picked from a finished territory_leads job') distinguishes it cleanly from siblings like competitor_graph, alternatives, and territory_leads itself.

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?

The prerequisite ('leads picked from a finished territory_leads job') and the default selection mode ('lowest_rated') are given, which implies when to use it. However, it never says when NOT to use it or names an alternative sibling (e.g. competitor_graph or alternatives) for a different form of competitor analysis.

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