Skip to content
Eden Engine

SMHI Weather Station Observations: Latest Hour or Latest Day

smhi/get-observations

Measured values from one Swedish weather station for one SMHI parameter (air temperature, wind, pressure, precipitation, humidity and others; parameter ids from the parameter list tool): the newest hour (one reading) or the newest day (up to 24 hourly readings for hourly parameters). Each reading has a UTC timestamp in milliseconds, a value as a string and a quality code. Station ids come from the station list tool. A station that does not measure the parameter, or an unknown id, is refused by the service. SMHI data, served by Eden Engine; not an official SMHI product.

activeper callv1

Price

$0.0026 per call

You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $0.50.

Data source

Swedish Meteorological and Hydrological Institute (SMHI)

Data from the Swedish Meteorological and Hydrological Institute (SMHI) open data service, opendata.smhi.se. Served by Eden Engine; not an official SMHI product.

Use it

Five steps: search, inspect, learn, run, settle. No per-tool setup; your agent reaches this tool through the meta-tools it already has.

Connect once and your AI can find and run this tool, and any other it needs.

agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "smhi/get-observations" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "smhi/get-observations" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "smhi/get-observations", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "smhi/get-observations", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.

Pricing

Every charge this tool can incur.

ChargePrice
Per call
$0.0026
Updated
Oct 25, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "parameter",
    "station"
  ],
  "properties": {
    "period": {
      "enum": [
        "latest-hour",
        "latest-day"
      ],
      "type": "string",
      "default": "latest-hour",
      "description": "latest-hour for the newest reading, latest-day for the last 24 hours. Longer periods are not offered."
    },
    "station": {
      "type": "string",
      "pattern": "^[0-9]{3,7}$",
      "description": "SMHI station id, 3 to 7 digits, for example 188790 (Abisko Aut). List stations with smhi/list-stations."
    },
    "parameter": {
      "type": "string",
      "pattern": "^[0-9]{1,3}$",
      "description": "SMHI parameter id, 1 to 3 digits: 1 is hourly air temperature, 4 wind speed, 9 sea-level pressure, 7 precipitation per hour, 6 relative humidity. List them with smhi/list-parameters."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "required": [
    "parameter",
    "station",
    "period",
    "value"
  ],
  "properties": {
    "value": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "date",
          "value"
        ],
        "properties": {
          "date": {
            "type": "integer",
            "description": "Reading time, Unix milliseconds, UTC."
          },
          "value": {
            "type": "string",
            "description": "Measured value as a string, in the parameter unit."
          },
          "quality": {
            "type": "string",
            "description": "Quality code: G is checked and good, Y is suspect or aggregated, R is rejected."
          }
        },
        "additionalProperties": true
      },
      "description": "The readings, oldest first."
    },
    "period": {
      "type": "object",
      "required": [
        "key"
      ],
      "properties": {
        "to": {
          "type": "integer"
        },
        "key": {
          "type": "string"
        },
        "from": {
          "type": "integer"
        },
        "summary": {
          "type": "string"
        }
      },
      "description": "The window returned, Unix milliseconds.",
      "additionalProperties": true
    },
    "station": {
      "type": "object",
      "required": [
        "key"
      ],
      "properties": {
        "key": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "owner": {
          "type": "string"
        },
        "height": {
          "type": "number",
          "description": "Sensor height in metres."
        }
      },
      "description": "The station.",
      "additionalProperties": true
    },
    "updated": {
      "type": "integer",
      "description": "When the series was last updated, Unix time in milliseconds."
    },
    "position": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [],
        "properties": {
          "height": {
            "type": "number",
            "description": "Height in metres."
          },
          "latitude": {
            "type": "number",
            "description": "Latitude."
          },
          "longitude": {
            "type": "number",
            "description": "Longitude."
          }
        },
        "additionalProperties": true
      },
      "description": "Station positions over time, oldest first."
    },
    "parameter": {
      "type": "object",
      "required": [
        "key"
      ],
      "properties": {
        "key": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "unit": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        }
      },
      "description": "The parameter measured, in Swedish.",
      "additionalProperties": true
    }
  },
  "description": "The SMHI observation document, passed through as sent.",
  "additionalProperties": true
}