fortyguard-mcp

v0.1.1
fortyguard-mcp Checked 3 days ago Published 3 months ago

MCP server for the FortyGuard Temperature API — hyperlocal urban heat data

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_credit_usage

Your account's plan, credit balance, and per-endpoint usage breakdown, straight from the API. This is the authority on what your key can do - area limits and endpoint access vary by plan and are not assumed anywhere in this server.

get_storage_info

What this server has archived on local disk: how many results, broken down by endpoint, how much space they take, any report files downloaded from signed URLs, and where all of it lives. Nothing is ever deleted automatically - stored results cost money and never go stale, so the directory is yours to manage.

validate_aoi

Measure a GeoJSON area of interest locally: geodesic area in km2 and square miles, bounding box, edge lengths, ring closure, and whether the coordinates look transposed. Costs nothing and makes no API call. It reports only - no size limit is applied, because limits vary by plan.

ParameterTypeDescription
polygon_aoi *objectGeoJSON FeatureCollection, Feature, Polygon or MultiPolygon.

split_aoi

Cut an area of interest into a grid of smaller areas, each at or under a maximum size you specify. Use it when the API rejects an area as too large. There is no default maximum: the cap depends on your plan, so take it from your contract or from the API's own rejection message. Local computation, no credits.

ParameterTypeDescription
max_area_km2 *numberMaximum area per piece, in square kilometres. Required - this server does not assume your plan's limit.
polygon_aoi *objectThe area to split, as GeoJSON.

submit_heatmap

Submit a temperature heatmap over an area and return immediately with an activity_id, without waiting for it to finish. Use this when you have other work to do, or for a large area. Collect it with check_status. If this exact request was run before, the stored result comes back straight away instead of an activity_id, marked from_archive, and costs nothing. filter_type: 1 = single hour (start_date + start_time); 2 = range of hours, same day (start_date + start_time + end_time); 3 = single day (start_date only); 4 = range of days (start_date + end_date). granularity is the tile edge in metres (…

ParameterTypeDescription
polygon_aoi *objectArea of interest as GeoJSON.
analytic_typeOptional analytic: tcm, time_of_measure, exceedance, persistence.
direction
end_dateYYYY-MM-DD, for filter_type 4.
end_timeHH:MM, for filter_type 2.
filter_type1 = single hour (start_date + start_time); 2 = range of hours, same day (start_date + start_time + end_time); 3 = single day (start_date only); 4 = range of days (start_date + end_date)
granularityTile edge in metres: 60, 80, 100.
start_dateYYYY-MM-DD.
start_timeHH:MM, local to the area, not UTC.
threshold

create_heatmap

Run a temperature heatmap and wait for the result inline. Measured heatmaps take 21-38 seconds. If the wait runs out you get the activity_id back and nothing is lost - the job keeps running and check_status collects it. An identical earlier request is served from the local archive for free. filter_type: 1 = single hour (start_date + start_time); 2 = range of hours, same day (start_date + start_time + end_time); 3 = single day (start_date only); 4 = range of days (start_date + end_date). granularity is the tile edge in metres (60, 80, 100); omit it to let the API choose. analytic_type is option…

ParameterTypeDescription
polygon_aoi *objectArea of interest as GeoJSON.
analytic_typeOptional analytic: tcm, time_of_measure, exceedance, persistence.
direction
end_date
end_time
filter_type1 = single hour (start_date + start_time); 2 = range of hours, same day (start_date + start_time + end_time); 3 = single day (start_date only); 4 = range of days (start_date + end_date)
formatstringauto = the raw API payload when it fits the context budget, otherwise a summary naming every way to fetch it. geojson = the raw payload whatever its size. columnar = a compact table, about 12x smaller…
granularityTile edge in metres: 60, 80, 100.
start_date
start_timeHH:MM, local to the area, not UTC.
threshold
wait_snumberSeconds to wait inline before returning the activity_id instead.

get_env_params

Environmental parameters at a single point - humidity, heat index, wet bulb, air quality and more. Requires a temperature, which must match the heatmap for the same place and time. Supply it either as temperature=, or as from_activity_id= naming a completed heatmap covering this point, which also supplies the matching date. Give one or the other, not both. Narrow the response with analysis=, or omit it to receive every parameter.

ParameterTypeDescription
latitude *numberDecimal degrees.
longitude *numberDecimal degrees.
analysisWhich parameters to return. Omit for all of them (verified). Values: heat_index_celsius, apparent_temperature_celsius, wet_bulb_temperature_celsius, relative_humidity_percent, precipitation_mm, cloud_…
filter_type1 = single hour (start_date + start_time); 2 = range of hours, same day (start_date + start_time + end_time); 3 = single day (start_date only); 4 = range of days (start_date + end_date)
from_activity_idA completed heatmap to read the temperature and date out of. Free - no API call. Mutually exclusive with temperature.
start_date
start_time
temperatureDegrees Celsius. Mutually exclusive with from_activity_id.
wait_snumber

submit_satellite

Submit satellite land-cover segmentation for a point and return an activity_id. Collect it with check_status.

ParameterTypeDescription
latitude *numberDecimal degrees.
longitude *numberDecimal degrees.
filter_type1 = single hour (start_date + start_time); 2 = range of hours, same day (start_date + start_time + end_time); 3 = single day (start_date only); 4 = range of days (start_date + end_date)
granularityTile edge in metres: 60, 80, 100.
start_date
start_timeHH:MM, local to the point, not UTC.

submit_streetview

Submit street-view scene analysis for a point and return an activity_id. Collect it with check_status.

ParameterTypeDescription
back_view *booleanAlso analyse the opposing direction.
horizontal_angle *numberField of view in degrees, 0-360. 90 is a normal street-level view.
latitude *numberDecimal degrees.
longitude *numberDecimal degrees.
vertical_angle *numberCamera pitch in degrees. 10 is a normal street-level view.

submit_heat_intelligence

Submit a heat intelligence report for a point and return an activity_id. This one is slow - measured at about 395 seconds - so it is never waited on inline. Collect it with check_status, which downloads the PDF to local disk and returns its path under 'report'; the API delivers this analysis as a short-lived signed URL, which is never returned or stored. Needs a temperature: give temperature= or from_activity_id=, not both. `analysis` is required - pass all five categories for a complete report.

ParameterTypeDescription
analysis *arrayReport sections to include, at least one: geographic, environmental, urban, events, anthropogenic. Pass all five for a complete report. NOTE these are NOT the measurement names get_env_params takes -…
latitude *numberDecimal degrees.
longitude *numberDecimal degrees.
dateYYYY-MM-DD.
from_activity_idA completed heatmap to read temperature and date from. Free. Mutually exclusive with temperature.
temperatureDegrees Celsius. Mutually exclusive with from_activity_id.

check_status

Check on a submitted analysis, or wait for it. If it has finished, the result comes back and is archived locally. Polling is free and the job runs whether or not you poll. Once collected, calling this again is served from disk at no cost.

ParameterTypeDescription
activity_id *stringFrom a submit_* call.
formatstringauto, geojson, or columnar.
wait_snumberSeconds to wait for completion. 0 checks once and returns immediately.

get_result_slice

Read part or all of an already-collected result from local disk. Costs nothing and makes no API call, so use it freely: take the hottest tiles with top_n, a sub-area with bbox, a downsample with every_nth, the whole thing compactly with format='columnar', or the untouched payload with format='geojson'. Naming a format gets you all of it at whatever size it comes to; the context budget applies only to the default format='auto'. Statistics for both the slice and the full result are always reported, so a slice maximum is never mistaken for the real one.

ParameterTypeDescription
activity_id *stringA collected analysis.
bbox[west, south, east, north]. West may exceed east to cross the antimeridian.
every_nthKeep every Nth tile.
formatstringauto = fit it to the context budget, and if it does not fit, say what exists and how to fetch it. columnar = the compact table in full, whatever its size. geojson = the raw payload in full, whatever i…
top_nReturn only the N highest-valued tiles.