Skip to content
Eden Engine

Smart Citizen Sensor Readings over Time

smartcitizen/device-readings

Time series of one sensor on one Smart Citizen device, averaged into 15 minute, hourly, daily, weekly or monthly buckets, newest first, as [timestamp, value] pairs from a start time to now or an end time. Needs a device id and a sensor id from the device tool. A sensor with no data returns an empty list.

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 $5.

Data source

Smart Citizen

Sensor data from Smart Citizen (smartcitizen.me), the community air and environment sensing platform of Fab Lab Barcelona at IAAC; it states no data licence and no attribution rule, so the source is credited as a courtesy. Responses are passed through unmodified. Served by Eden Engine; not an official Smart Citizen 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: "smartcitizen/device-readings" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "smartcitizen/device-readings" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "smartcitizen/device-readings", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "smartcitizen/device-readings", 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 21, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "device_id",
    "sensor_id",
    "rollup",
    "from"
  ],
  "properties": {
    "to": {
      "type": "string",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}(T[0-9]{2}:[0-9]{2}:[0-9]{2}Z)?$",
      "description": "End, UTC, same format. Leave out for now."
    },
    "from": {
      "type": "string",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}(T[0-9]{2}:[0-9]{2}:[0-9]{2}Z)?$",
      "description": "Start, UTC, as YYYY-MM-DD or YYYY-MM-DDThh:mm:ssZ. A long span at 15m returns many rows."
    },
    "rollup": {
      "enum": [
        "15m",
        "1h",
        "1d",
        "1w",
        "1M"
      ],
      "type": "string",
      "description": "Bucket size: 15m, 1h, 1d, 1w or 1M (month)."
    },
    "device_id": {
      "type": "integer",
      "maximum": 99999999,
      "minimum": 1,
      "description": "The device id, for example 19798."
    },
    "sensor_id": {
      "type": "integer",
      "maximum": 99999999,
      "minimum": 1,
      "description": "A sensor id from the device tool, for example 113 for TVOC."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "required": [
    "device_id",
    "sensor_id",
    "rollup",
    "sample_size",
    "readings"
  ],
  "properties": {
    "to": {
      "type": [
        "string",
        "null"
      ]
    },
    "from": {
      "type": [
        "string",
        "null"
      ]
    },
    "rollup": {
      "type": "string"
    },
    "function": {
      "type": "string",
      "description": "How each bucket is computed, avg."
    },
    "readings": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": [
            "string",
            "number",
            "null"
          ]
        }
      },
      "description": "[ISO 8601 UTC timestamp, value] pairs, newest first."
    },
    "device_id": {
      "type": [
        "integer",
        "string"
      ]
    },
    "sensor_id": {
      "type": "integer"
    },
    "sensor_key": {
      "type": [
        "string",
        "null"
      ]
    },
    "sample_size": {
      "type": "integer",
      "description": "Raw readings behind the buckets."
    }
  },
  "additionalProperties": true
}