get_intensity_by_date
Pack: carbon · Endpoint: https://gateway.pipeworx.io/carbon/mcp
Get UK electricity carbon intensity for every 30-minute period on a specific date (e.g., “2024-01-15”). Returns gCO2/kWh forecast and actual. Use to identify lowest-carbon hours.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
date | string | yes | Date in YYYY-MM-DD format (e.g., 2024-03-15) |
Example call
Arguments
{
"date": "2024-01-15"
}
curl
curl -X POST https://gateway.pipeworx.io/carbon/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_intensity_by_date","arguments":{"date":"2024-01-15"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_intensity_by_date', {
"date": "2024-01-15"
});
More examples
{
"date": "2024-03-20"
}
Response shape
Always returns: date, periods, count
| Field | Type | Description |
|---|---|---|
date | string | Date in YYYY-MM-DD format |
periods | array | Array of 30-minute intensity periods for the specified date |
count | number | Total number of 30-minute periods returned for the date |
Full JSON Schema
{
"type": "object",
"properties": {
"date": {
"type": "string",
"description": "Date in YYYY-MM-DD format"
},
"periods": {
"type": "array",
"items": {
"type": "object",
"properties": {
"from": {
"type": "string",
"description": "Start time of the 30-minute period (ISO 8601)"
},
"to": {
"type": "string",
"description": "End time of the 30-minute period (ISO 8601)"
},
"forecast_gco2_per_kwh": {
"type": "number",
"description": "Forecasted carbon intensity in grams CO2 per kilowatt-hour"
},
"actual_gco2_per_kwh": {
"type": [
"number",
"null"
],
"description": "Actual carbon intensity in grams CO2 per kilowatt-hour, or null if not available"
},
"index": {
"type": "string",
"description": "Intensity index level"
}
},
"required": [
"from",
"to",
"forecast_gco2_per_kwh",
"actual_gco2_per_kwh",
"index"
]
},
"description": "Array of 30-minute intensity periods for the specified date"
},
"count": {
"type": "number",
"description": "Total number of 30-minute periods returned for the date"
}
},
"required": [
"date",
"periods",
"count"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"carbon": {
"url": "https://gateway.pipeworx.io/carbon/mcp"
}
}
}
See Getting Started for client-specific install steps.