Skip to main content
Glama

Which of your places are inside a live warning or event

check_live_hazards
Read-only

Up to 500 addresses or points (more by reference: source, run as a background job) against the warnings in force now (get_live_hazards). Each record: inside a warning, near one (within near_km, default 5), clear, or unplaced with the reason; with the warnings that touch it (one per event: an earthquake's strongest shaking there, a storm's strongest winds), their kind, level, area and end time. Footprints (shaking, a storm's past winds, a flood's extent) show which places were hit: the claims view. A value column (TIV, sum insured, insured value, value; or name it in value_field) is added up for the places inside and near. On the map, places inside a warning pulse red over the pulsing warning outlines. Warning areas are the issuers' own; a place near an edge is worth a look either way. Set render to true only when the user wants to keep or share the map: it returns a link, GeoJSON and KML, and update_map can change it later.

Input Schema

NameRequiredDescriptionDefault
titleNo
perilsNo
regionNoall
renderNo
sourceNoInstead of typing rows: { sheet: "<Google Sheets link>", tab?: "Sites" } (shared with the InstaMaps service account, or viewable by anyone with the link), { file: "<Drive link to a CSV or Excel file>" }, or { run: "<run_id from an earlier answer>" }. Columns are found by their headers (id, name, address or its parts, lat/lng); name them if they aren't obvious (id_column, address_column, lat_column, lng_column; from_column and to_column for road distances). Rows with coordinates are used as they are.
near_kmNoAlso flag places within this distance of a warning (0 to 50 km).
recordsNo{id, address} or {id, lat, lng}. Send your own ids to merge results back.
addressesNoOr plain addresses/postcodes, numbered from 1.
min_levelNo
backgroundNoWith source: run as a background job and answer at once with job_id (automatic past 500 rows). Check with get_job; write_to_sheet with the job_id puts the results in the sheet as they finish.
value_fieldNoThe records' field to add up (e.g. "TIV"); found automatically when it is called TIV, sum insured, insured value or value.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive, so safety is covered; the description adds real behavior beyond that — the 500-record cap, automatic background execution past 500 rows with job_id/get_job, aggregation of a value column, and that render returns a link plus GeoJSON and KML. It stops short of stating auth requirements or failure handling for unplaced rows beyond 'the reason'.

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 core is front-loaded, but the single dense paragraph packs parentheticals, asides ('the claims view', 'a place near an edge is worth a look either way') and mixed concerns into one block. Most content earns its place, yet the rambling style makes it harder to scan than it needs to be for an 11-parameter tool.

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?

For a complex, 11-parameter, nested-schema tool with no output schema, the description covers the essentials: result record shape, distance banding, limits, background jobs, and map rendering outputs. Only minor gaps remain (peril/region/min_level semantics, permission requirements).

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 only 55%, but the description compensates well: it explains the source-by-reference pattern (sheet/file/run, header-based column discovery), the records vs addresses split, the near_km default of 5, the value_field auto-detection names, and the background flag. Coverage gaps remain for perils, region, min_level and title, which the description never explains.

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 specific verb and resource: take up to 500 addresses/points and test them 'against the warnings in force now', classifying each as inside, near, clear, or unplaced. It explicitly names the sibling it draws warnings from (get_live_hazards), so an agent can distinguish it from the raw hazard listing without opening a 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?

Gives concrete routing guidance: use source/run as a background job for large inputs, and 'Set render to true only when the user wants to keep or share the map' with update_map as the follow-up. It lacks explicit when-not-this-tool exclusions versus siblings like get_area_risk or find_nearby, but the conditions it does state are actionable.

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