Skip to main content
Glama

Local Rank Grid

local_rank_grid

Local rank grid: where one business shows on Google Maps for a keyword at every point of a grid around it (3x3, 5x5 or 7x7 points, 0.5, 1, 2 or 5 km apart), each point one Google Maps search made from that GPS point, 20 businesses deep. Find the business first with local_business_find. points answers every point (row 0 is north, col 0 west; north_km/east_km from the business): status ok or failed, position (its place in Google Maps' list there; null when it is not in the first 20 or the point failed), listed (how many businesses Google Maps showed), top (the first 5 there) and check_url (the same search on Google Maps). summary: points, answered, failed, found (points where it is listed), top3 (points where it is in the top 3, Google's map pack), top3_percent, average_position (where listed; null when listed nowhere), center_position, best_position, not_in_top_20, no_businesses. competitors: the businesses that most often show, with top3, listed, average_position and ahead_of_you counts. previous: the last saved grid of the same business and keyword, to compare. Matching is by Google's business id (cid, else place_id), never by name. Every grid is saved for the workspace: give run_id to re-open one free; give neither run_id nor keyword to list the saved grids (free). Price: measure false quotes the grid free (credits_to_measure = points x 5); a run costs 5 credits per point where Google Maps listed businesses; failed points and points with no business are free (accounting.credits_used says what was charged). max_credits caps it: a grid costing more is not run (PRICE_ABOVE_LIMIT). Source: DataForSEO Google Maps SERP, live.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "local_rank_grid"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoPoints across and down: 3 (9 points, 45 credits), 5 (25, 125) or 7 (49, 245).
run_idNoOptional. A saved grid's id (lgr_...): re-open it free; no other argument is needed.
countryNoTwo-letter country of the business, such as US or GB (UK is read as GB).US
keywordNoWhat customers type into Google Maps, such as plumber or emergency plumber.
measureNofalse: only quote the grid and its points, never charge.
businessNoThe business as local_business_find returned it: title and cid (or place_id), latitude and longitude are required; other fields are kept with the grid.
languageNoTwo-letter language code, such as en.en
verbosityNoconcise: short summary of the answer; full: the whole answer. Only shapes the output.
spacing_kmNoKilometres between neighbouring points.
max_creditsNoOptional. The most this call may charge.
idempotency_keyNoOptional. A repeated identical call is answered again at no charge.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare openWorldHint=true and non-readOnly, so the fact that this spends money and hits a live data source isn't new; the description nonetheless adds the credit model (5 credits per point where businesses were listed, free for failed/empty points), credits_to_measure, the PRICE_ABOVE_LIMIT refusal, workspace-level persistence of every grid, and identity matching by cid/place_id rather than name. What it does not cover is latency or partial-failure recovery beyond 'status ok or failed'.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the body is a wall of semicolon-chained clauses enumerating every output field (position, listed, top, check_url, top3_percent, ahead_of_you, etc.). Since no output schema exists this enumeration does earn some place, yet the run-on packing makes it harder to scan than necessary.

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

Completeness5/5

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

With no output schema and 11 parameters including a nested business object, the description compensates by documenting the points/summary/competitors/previous return shape, null semantics, failure accounting, and the error code an agent may hit. An agent has enough to call this correctly and interpret the result without further reference.

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 100%, so the baseline is 3, but the description goes further by defining the point coordinate convention (row 0 north, col 0 west; north_km/east_km measured from the business) and tying size and spacing to concrete credit costs. It adds little on country/language/verbosity, which the schema already documents.

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?

The first sentence names a specific resource (a local rank grid on Google Maps for a keyword), the grid geometry (3x3/5x5/7x7, 0.5-5 km spacing), and the unit of work (one Google Maps search per point, 20 results deep). It is unmistakable versus generic SERP tools, and it explicitly routes business lookup to local_business_find.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the prerequisite ('Find the business first with local_business_find'), the free re-open path (pass run_id alone), the free listing path (neither run_id nor keyword), and the free quoting path (measure=false). The charging conditions and the max_credits guard with the PRICE_ABOVE_LIMIT outcome are spelled out, so an agent knows exactly which mode to invoke.

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