Skip to main content
Glama

places_compare

Read-only

Compare a business against its nearby competitors on Google Maps: rating, review count and distance for each, where it ranks, and the gap to the competitors' average. Competitors default to the same category in the same area.

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": {
      "place": "<place>"
    },
    "name": "places_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many competitors (default 8, max 15)
placeYesThe business: its name with city ("Pizza 4P's Indochina Da Nang"), a Google Maps link, or a Google place_id
locationNoCity or area, if not already in place (optional)
competitorsNoCategory to compare against, e.g. 'pizza restaurant' (default: the place's own category)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint and destructiveHint, so the safety profile is covered. The description adds value beyond that by disclosing what the tool computes and returns (rank, gap to average) and how competitors are scoped by default. It leaves failure modes (place not found, no competitors in area) and how distance is measured unstated, which keeps it below 5.

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 sentences, both load-bearing: the first defines the output, the second defines the default scoping. The most decision-relevant content (what it produces and what it compares) is front-loaded with no filler.

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?

There is no output schema, and the description compensates by listing the returned fields, so an agent knows what it will get. It is nearly complete for a read-only comparison tool; the remaining gap is what happens when the place or competitors cannot be resolved.

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 the schema already documents all four parameters including the limit default of 8/max 15 and the place input formats. The description adds only a modest gloss on the competitors default ('same category in the same area') beyond what the schema states, which fits the baseline-3 expectation.

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?

Specific verb ('Compare') plus resource ('a business against its nearby competitors on Google Maps') and an explicit enumeration of the comparison outputs: rating, review count, distance, rank, and gap to the competitors' average. An agent can tell this apart from sibling tools like places_reviews or search_places without consulting any 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?

The second sentence establishes the default competitor set ('same category in the same area'), which tells the agent it can call with only a place and get sensible results, and implies the condition under which to override via the competitors parameter. It stops short of naming a sibling alternative or stating when not to use this tool, so it falls short of a 5.

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.

Resources