Agro API MCP by usefulapi
v1.6.1Read satellite, NDVI, weather and soil data; create and delete fields in Agro API.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
agroapi_list_polygons List polygons
List your polygons with id, name, area in hectares and centre. Start here to find a polygon id for the other tools. GET /polygons.
agroapi_get_polygon Get a polygon
Get one polygon by id: geometry, name, area and centre. GET /polygons/{id}.
| Parameter | Type | Description |
|---|---|---|
polyid * | string | Polygon id (from agroapi_list_polygons). |
agroapi_create_polygon Create a polygon
Create a polygon (a field) from a GeoJSON Feature with a Polygon geometry, in [longitude, latitude] order. The vendor blocks a duplicate unless duplicated=true. Writes to your account. POST /polygons.
| Parameter | Type | Description |
|---|---|---|
geo_json * | object | GeoJSON Feature with a Polygon geometry. The area must be 1 to 3000 ha. |
name * | string | Name of the polygon. |
duplicated | boolean | Set true to allow a polygon that duplicates an existing one. |
agroapi_update_polygon Rename a polygon
Change the name of one polygon. Writes to your account. PUT /polygons/{id}.
| Parameter | Type | Description |
|---|---|---|
name * | string | The new name. |
polyid * | string | Polygon id (from agroapi_list_polygons). |
agroapi_delete_polygon Delete a polygon
Delete one polygon from your account. This cannot be undone through the API. DELETE /polygons/{id}.
| Parameter | Type | Description |
|---|---|---|
polyid * | string | Polygon id (from agroapi_list_polygons). |
agroapi_search_images Search satellite images
Find satellite images (Landsat-8 and Sentinel-2) of a polygon between two Unix times, with each image date and its image, tile and statistics links. The API key is removed from the links; add your own appid to open them. GET /image/search.
| Parameter | Type | Description |
|---|---|---|
end * | integer | Unix time in seconds (UTC). |
polyid * | string | Polygon id (from agroapi_list_polygons). |
start * | integer | Unix time in seconds (UTC). |
agroapi_get_ndvi_history Get NDVI history
Get NDVI (vegetation index) statistics for a polygon over a time range. Choose the satellite with type: l8 (Landsat-8) or s2 (Sentinel-2). The vendor limits the long archive to its Corporate account. GET /ndvi/history.
| Parameter | Type | Description |
|---|---|---|
end * | integer | Unix time in seconds (UTC). |
polyid * | string | Polygon id (from agroapi_list_polygons). |
start * | integer | Unix time in seconds (UTC). |
type | string | Data source: l8 = Landsat-8, s2 = Sentinel-2. |
agroapi_get_current_weather Get current weather
Get the current weather at a latitude and longitude. GET /weather.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Latitude, -90 to 90. |
lon * | number | Longitude, -180 to 180. |
agroapi_get_forecast_weather Get weather forecast
Get the 5-day weather forecast with 3-hour steps at a latitude and longitude. GET /weather/forecast.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Latitude, -90 to 90. |
lon * | number | Longitude, -180 to 180. |
agroapi_get_historical_weather Get historical weather
Get past weather at a latitude and longitude between two Unix times. Not in the free account. GET /weather/history.
| Parameter | Type | Description |
|---|---|---|
end * | integer | Unix time in seconds (UTC). |
lat * | number | Latitude, -90 to 90. |
lon * | number | Longitude, -180 to 180. |
start * | integer | Unix time in seconds (UTC). |
agroapi_get_accumulated_temperature Get accumulated temperature
Get the accumulated temperature (growing degree sum above a threshold) at a latitude and longitude between two Unix times. Not in the free account. GET /weather/history/accumulated_temperature.
| Parameter | Type | Description |
|---|---|---|
end * | integer | Unix time in seconds (UTC). |
lat * | number | Latitude, -90 to 90. |
lon * | number | Longitude, -180 to 180. |
start * | integer | Unix time in seconds (UTC). |
threshold * | number | Base temperature threshold, in the unit the vendor documents (example 284). |
agroapi_get_accumulated_precipitation Get accumulated precipitation
Get the accumulated precipitation at a latitude and longitude between two Unix times. Not in the free account. GET /weather/history/accumulated_precipitation.
| Parameter | Type | Description |
|---|---|---|
end * | integer | Unix time in seconds (UTC). |
lat * | number | Latitude, -90 to 90. |
lon * | number | Longitude, -180 to 180. |
start * | integer | Unix time in seconds (UTC). |
agroapi_get_current_soil Get current soil data
Get the current soil temperature and moisture for a polygon. GET /soil.
| Parameter | Type | Description |
|---|---|---|
polyid * | string | Polygon id (from agroapi_list_polygons). |
agroapi_get_historical_soil Get historical soil data
Get soil temperature and moisture for a polygon between two Unix times. Not in the free account. GET /soil/history.
| Parameter | Type | Description |
|---|---|---|
end * | integer | Unix time in seconds (UTC). |
polyid * | string | Polygon id (from agroapi_list_polygons). |
start * | integer | Unix time in seconds (UTC). |
agroapi_get_current_uvi Get current UV index
Get the current UV index for a polygon. GET /uvi.
| Parameter | Type | Description |
|---|---|---|
polyid * | string | Polygon id (from agroapi_list_polygons). |
agroapi_get_forecast_uvi Get UV index forecast
Get the UV index forecast for a polygon. cnt limits the number of values. GET /uvi/forecast.
| Parameter | Type | Description |
|---|---|---|
polyid * | string | Polygon id (from agroapi_list_polygons). |
cnt | integer | Number of forecast values to return. |
agroapi_get_historical_uvi Get historical UV index
Get the UV index for a polygon between two Unix times. Not in the free account. GET /uvi/history.
| Parameter | Type | Description |
|---|---|---|
end * | integer | Unix time in seconds (UTC). |
polyid * | string | Polygon id (from agroapi_list_polygons). |
start * | integer | Unix time in seconds (UTC). |