Skip to main content
Glama

Alternatives to a place (graph neighbours)

alternatives
Read-onlyIdempotent

Find places customers consider instead of a business using People also search for edges from a finished competitor_graph or enrich_leads job; increase hops to widen the comparison set.

Instructions

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.

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>",
      "place_id": "<place_id>"
    },
    "name": "alternatives"
  }
}

Input Schema

NameRequiredDescriptionDefault
hopsNoDefault 1
limitNoDefault 15
job_idYes
place_idYesA place_id from the job's results

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Goes beyond the annotations (readOnly, idempotent, non-destructive, openWorld) by disclosing that hops=2 widens the result circle and that the call is 'Free' — a cost/quota signal an agent cannot get from structured fields. It does not describe result volume or how limit interacts with graph traversal.

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?

A single front-loaded sentence that identifies the resource and its source job before adding the hops hint and the 'Free' note. The terse 'Free.' fragment and mid-sentence hops remark are slightly ragged, but nothing is wasted.

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 no output schema, the description carries the burden of saying what comes back, and it does so conceptually ('places ... the places customers consider instead'). For a simple read tool with strong annotations, the only meaningful gaps are result shape and the limit/pagination behavior.

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?

Schema coverage is 75%, so the baseline is 3, but the description adds real meaning: it constrains job_id to a finished competitor_graph/enrich_leads job and explains that hops widens the neighbourhood (schema only says 'Default 1'). The limit parameter and its 50 maximum are left unaddressed.

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 concrete resource (places connected to one place via 'People also search for' edges) and a concrete scope (within a finished competitor_graph or enrich_leads job), plus the user-facing meaning: 'the places customers consider instead'. This distinguishes it from competitor_graph/enrich_leads, which produce the job it reads from, rather than building the graph.

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?

Makes the key precondition explicit — the job must be finished and must be a competitor_graph or enrich_leads job — which tells an agent when this tool is callable versus when to run the graph-building sibling first. It stops short of naming a 'when not to use' case or pointing to a specific alternative tool for related queries.

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