Agro API MCP by usefulapi

v1.6.1
io.usefulapi/agro-api Checked 1 day ago Published 6 hours ago

Read 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}.

ParameterTypeDescription
polyid *stringPolygon 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.

ParameterTypeDescription
geo_json *objectGeoJSON Feature with a Polygon geometry. The area must be 1 to 3000 ha.
name *stringName of the polygon.
duplicatedbooleanSet 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}.

ParameterTypeDescription
name *stringThe new name.
polyid *stringPolygon 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}.

ParameterTypeDescription
polyid *stringPolygon 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.

ParameterTypeDescription
end *integerUnix time in seconds (UTC).
polyid *stringPolygon id (from agroapi_list_polygons).
start *integerUnix 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.

ParameterTypeDescription
end *integerUnix time in seconds (UTC).
polyid *stringPolygon id (from agroapi_list_polygons).
start *integerUnix time in seconds (UTC).
typestringData 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.

ParameterTypeDescription
lat *numberLatitude, -90 to 90.
lon *numberLongitude, -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.

ParameterTypeDescription
lat *numberLatitude, -90 to 90.
lon *numberLongitude, -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.

ParameterTypeDescription
end *integerUnix time in seconds (UTC).
lat *numberLatitude, -90 to 90.
lon *numberLongitude, -180 to 180.
start *integerUnix 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.

ParameterTypeDescription
end *integerUnix time in seconds (UTC).
lat *numberLatitude, -90 to 90.
lon *numberLongitude, -180 to 180.
start *integerUnix time in seconds (UTC).
threshold *numberBase 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.

ParameterTypeDescription
end *integerUnix time in seconds (UTC).
lat *numberLatitude, -90 to 90.
lon *numberLongitude, -180 to 180.
start *integerUnix time in seconds (UTC).

agroapi_get_current_soil Get current soil data

Get the current soil temperature and moisture for a polygon. GET /soil.

ParameterTypeDescription
polyid *stringPolygon 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.

ParameterTypeDescription
end *integerUnix time in seconds (UTC).
polyid *stringPolygon id (from agroapi_list_polygons).
start *integerUnix time in seconds (UTC).

agroapi_get_current_uvi Get current UV index

Get the current UV index for a polygon. GET /uvi.

ParameterTypeDescription
polyid *stringPolygon 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.

ParameterTypeDescription
polyid *stringPolygon id (from agroapi_list_polygons).
cntintegerNumber 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.

ParameterTypeDescription
end *integerUnix time in seconds (UTC).
polyid *stringPolygon id (from agroapi_list_polygons).
start *integerUnix time in seconds (UTC).