FieldMCP
PricingDocsChangelog
Sign inGet Started
FieldMCP

Connect your AI to farm data in minutes

Product

  • Pricing
  • Documentation
  • Changelog
  • Integrations

Company

  • About
  • Customers
  • Security
  • Contact
  • Support

Legal

  • Terms of Service
  • Privacy Policy
  • DPA
  • SLA

© 2026 FieldMCP. All rights reserved.

Status

Search Documentation

Search for a documentation page...

Getting Started

IntroductionQuickstart

Authentication

API KeysOAuth

Tools Reference

Overview
Get Conditions
  1. Docs
  2. Weather
  3. Get Conditions

weather_get_conditions

Fetch weather conditions for a location and date range. Supports both historical data (from 1940) and forecasts (up to 16 days ahead).

Parameters

ParameterTypeRequiredDefaultDescription
latitudenumberYes—Latitude (-90 to 90)
longitudenumberYes—Longitude (-180 to 180)
startDatestringYes—Start date (YYYY-MM-DD)
endDatestringYes—End date (YYYY-MM-DD)
includestring[]No["gdd", "precipitation", "temperature"]Data to include: gdd, precipitation, temperature, soil_temperature

Constraints:

  • Maximum date range: 2 years (730 days)
  • endDate must be after startDate
  • Soil temperature is only available for recent dates

Usage

Growing Season Weather

{
  "latitude": 42.0,
  "longitude": -93.6,
  "startDate": "2025-05-01",
  "endDate": "2025-09-30",
  "include": ["gdd", "precipitation", "temperature"]
}

Current Forecast

{
  "latitude": 42.0,
  "longitude": -93.6,
  "startDate": "2025-03-16",
  "endDate": "2025-03-30"
}

Response

{
  "error": false,
  "data": {
    "location": {
      "latitude": 42.0,
      "longitude": -93.6,
      "timezone": "America/Chicago"
    },
    "dateRange": {
      "startDate": "2025-05-01",
      "endDate": "2025-09-30"
    },
    "daily": {
      "dates": ["2025-05-01", "2025-05-02", "..."],
      "temperature": {
        "high_celsius": [22.5, 23.1],
        "high_fahrenheit": [72.5, 73.6],
        "low_celsius": [10.2, 11.0],
        "low_fahrenheit": [50.4, 51.8],
        "average_celsius": [16.3, 17.0],
        "average_fahrenheit": [61.4, 62.7]
      },
      "precipitation": {
        "total_mm": [0, 5.2, 0, 2.1],
        "total_inches": [0, 0.2, 0, 0.08],
        "rain_days": 65
      },
      "gdd": {
        "base_temp_fahrenheit": 50,
        "daily": [8.5, 8.7, 8.9],
        "accumulated": [8.5, 17.2, 26.1]
      }
    }
  }
}

GDD (Growing Degree Days)

GDD is calculated using base 50F for corn:

GDD = max(0, (high + low) / 2 - base_temp)

The accumulated array gives cumulative GDD from the start date — useful for tracking crop development stages.

Use Cases

ScenarioParameters
Check planting conditionsTemperature + soil_temperature for next 7 days
Track crop developmentGDD accumulated over growing season
Irrigation decisionsPrecipitation totals for past 14 days
Frost risk assessmentTemperature lows for forecast period
Season comparisonSame date range across multiple years

Data Source

Weather data is sourced from Open-Meteo, a free public weather API with global coverage.

Errors

CodeCause
INVALID_PARAM_VALUEInvalid coordinates, date format, or date range >730 days
PROVIDER_ERROROpen-Meteo API error
ParameterTypeRequiredDescription
latitudenumberRequiredLatitude of the location (-90 to 90)
longitudenumberRequiredLongitude of the location (-180 to 180)
startDatestringRequiredStart date in ISO format (e.g., 2024-04-01)
endDatestringRequiredEnd date in ISO format (e.g., 2024-09-30)
includearrayRequiredData types to include: gdd (Growing Degree Days), precipitation, temperature, soil_temperature

Try it

weather_get_conditions

Sign in to try this tool

Sign in
Search Rules