hourly_data

Pack: cdec-ca · Endpoint: https://gateway.pipeworx.io/cdec-ca/mcp

Hourly data.

Parameters

NameTypeRequiredDescription
station_idstringyes
sensornumberyes
startstringyes
endstringno

Example call

Arguments

{
  "station_id": "SHA",
  "sensor": 1,
  "start": "2024-01-01T00:00:00"
}

curl

curl -X POST https://gateway.pipeworx.io/cdec-ca/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"hourly_data","arguments":{"station_id":"SHA","sensor":1,"start":"2024-01-01T00:00:00"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('hourly_data', {
  "station_id": "SHA",
  "sensor": 1,
  "start": "2024-01-01T00:00:00"
});

More examples

{
  "station_id": "ORO",
  "sensor": 2,
  "start": "2024-01-01T12:00:00",
  "end": "2024-01-02T12:00:00"
}

Response shape

FieldTypeDescription
formatstringIndicates response is plain text (non-JSON)
bodystringRaw text response from API
Full JSON Schema
{
  "type": "object",
  "description": "Response from CDEC API containing hourly time series data or raw text",
  "properties": {
    "format": {
      "type": "string",
      "enum": [
        "text"
      ],
      "description": "Indicates response is plain text (non-JSON)"
    },
    "body": {
      "type": "string",
      "description": "Raw text response from API"
    }
  },
  "additionalProperties": true
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "cdec-ca": {
      "url": "https://gateway.pipeworx.io/cdec-ca/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build June 12, 2026