Skip to main content
Glama

Weighted-overlay suitability

overlay_suitability
Read-onlyIdempotent

Ranks hexes by weighted retail suitability using population density, age share, income, and coffee-shop competition; supports custom weights, exclusions, and returns top-N results with sub-scores.

Instructions

Method 1. Rescale four criteria to 1-10 and take a weighted sum: pop_density_km2 (log, increasing), share_25_34 (increasing), med_hh_income (increasing), n_shops_ring1 (coffee shops in hex + 6 neighbours, decreasing). Default weights 0.30 / 0.25 / 0.20 / 0.25; pass weights to override any of them (renormalised). Hexes with < 500 residents or < 1 km^2 land are masked. Returns the top_n (1-50) hexes with sub-scores.

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

Input Schema

NameRequiredDescriptionDefault
top_nNo
weightsNo
exclude_existing_independentsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare read-only, idempotent, closed-world, non-destructive behavior, so the safety bar is lower. The description does add real behavior: renormalisation on weight override, masking of hexes under 500 residents or 1 km^2 land, and default weights 0.30/0.25/0.20/0.25. It omits what exclude_existing_independents actually changes in the output.

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, then the criteria, then defaults, masking, and return shape. Dense but every clause carries information; only the parenthetical '(coffee shops in hex + 6 neighbours, decreasing)' is slightly awkwardly nested.

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

Completeness3/5

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

No output schema exists, and the description gives only a one-line return summary ('top_n hexes with sub-scores'), leaving output structure largely opaque. With one of three parameters undocumented and no guidance on alternatives, an agent can call this but must guess at part of the surface.

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 0%, so the description must carry the load; it does well for `weights`, naming the exact keys, their sign/log scaling, and that overrides are renormalised, and it bounds top_n at 1-50. However, `exclude_existing_independents` is never mentioned despite being the parameter most likely to confuse an agent.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific method ('Rescale four criteria to 1-10 and take a weighted sum') and enumerates the exact criteria with directionality (pop_density_km2 log increasing, n_shops_ring1 decreasing). This makes it distinguishable from sibling aggregations like hot_spots or hex_profile, though it never names those siblings explicitly.

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?

The phrase 'Method 1' hints that other methods exist but never names them or says when to pick this one over hot_spots, find_similar, or hex_profile. No exclusions or prerequisites are given beyond the masking rule.

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