Skip to main content
Glama

Hot spots (Gi*)

hot_spots
Read-onlyIdempotent

Detect statistically significant hot and cold spots in a selected hex field with Getis-Ord Gi*, returning 95% hot/cold counts and top-ranked hexes for site selection.

Instructions

Getis-Ord Gi* hot-spot analysis of one hex field (hex + 6 neighbours). Fields: overlay, emb, pop, pop_density_km2, share_25_34, med_hh_income, n_shops, n_indep, n_chain, dist_nearest_shop_km. Returns counts of hot/cold hexes at 95% and the hottest top_n hexes.

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": "hot_spots"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldNooverlay
top_nNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered structurally. The description adds the spatial scope (hex plus six neighbours) and the statistical confidence level (95%), which are genuine behavioral facts not in the annotations, but says nothing about runtime cost, minimum data requirements, or what happens with sparse fields.

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?

Front-loaded with the method and scope, then the valid field values, then the return summary — a sensible order. The field enumeration is dense but every token earns its place given the absent enum; a small structural cost is the run-on listing.

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 does carry the burden of describing returns and does so at a summary level (hot/cold counts at 95%, top_n hexes). The main remaining gap is the exact response shape and what `field` defaults or `top_n` limits mean, but nothing essential to invoking the tool correctly is missing.

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 0% and the `field` parameter has no enum, so the description's explicit list of ten valid field names is the only place an agent can learn legal values — substantial added meaning. `top_n` is only obliquely covered ('hottest top_n hexes'), with no statement of its bounds or default behavior.

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?

Names the exact statistical method (Getis-Ord Gi*), the unit of analysis (one hex field, hex + 6 neighbours), and what comes back (hot/cold counts at 95%, hottest top_n hexes). This is specific enough that an agent can tell it apart from hex_profile or overlay_suitability, which serve other analytic aims.

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

Usage Guidelines2/5

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

There is no statement of when to reach for this tool versus the sibling analytical tools, nor any prerequisite, input-data, or sample-size guidance. Usage is only inferable from the enumerated field names, which hint at a demographic/retail clustering use case but not at selection criteria.

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