dchub_get_grid_data
Pack: dchub · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/dchub_get_grid_data for the schema, then POST the same URL with its arguments for the data.
Live electricity grid data for one grid (DC Hub): fuel mix and demand for US ISOs (PJM, ERCOT, CAISO, MISO, SPP, NYISO, ISO-NE), utility balancing authorities, and international grids.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
iso | string | yes | Grid code, e.g. PJM, ERCOT, CAISO |
metric | string | no | Optional metric |
period | string | no | Optional period |
Example call
Arguments
{
"iso": "PJM"
}
curl
curl -X POST https://gateway.pipeworx.io/dchub/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"dchub_get_grid_data","arguments":{"iso":"PJM"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('dchub_get_grid_data', {
"iso": "PJM"
});
Response shape
| Field | Type | Description |
|---|---|---|
source | string | |
preview | boolean | |
result | object |
Full JSON Schema
{
"type": "object",
"properties": {
"source": {
"type": "string"
},
"preview": {
"type": "boolean"
},
"result": {
"type": "object",
"properties": {
"human_url": {
"type": "string"
},
"agent_action": {
"type": "object",
"properties": {
"body": {
"type": "object",
"properties": {
"client_name": {
"type": "string"
}
},
"additionalProperties": true
},
"headers": {
"type": "object",
"properties": {
"Content-Type": {
"type": "string"
}
},
"additionalProperties": true
},
"method": {
"type": "string"
},
"then": {
"type": "string"
},
"type": {
"type": "string"
},
"url": {
"type": "string"
}
},
"additionalProperties": true
},
"data_center_load": {
"type": "null"
},
"_data_center_load_withheld": {
"type": "boolean"
},
"demand_24h": {
"type": "string"
},
"demand_mw": {
"type": "null"
},
"demand_period": {
"type": "string"
},
"enterprise_note": {
"type": "string"
},
"freshness_sla": {
"type": "object",
"properties": {
"checked_at": {
"type": "string"
},
"layers": {
"type": "object",
"properties": {
"demand": {
"type": "object",
"properties": {
"age_minutes": {
"type": "number"
},
"as_of": {
"type": "string"
},
"sla_hours": {
"type": "number"
},
"source_cadence": {
"type": "string"
},
"within_sla": {
"type": "boolean"
}
},
"additionalProperties": true
}
},
"additionalProperties": true
},
"note": {
"type": "string"
},
"stale_layers": {
"type": "array",
"items": {}
},
"verify_url": {
"type": "string"
},
"within_sla_core": {
"type": "boolean"
}
},
"additionalProperties": true
},
"gated": {
"type": "boolean"
},
"gating_matrix": {
"type": "string"
},
"gen_mix": {
"type": "string"
},
"generation_mix_age_hours": {
"type": "string"
},
"generation_mix_lag_at_snapshot_hours": {
"type": "string"
},
"generation_mix_stale_hours": {
"type": "string"
},
"load_factor": {
"type": "string"
},
"message": {
"type": "string"
},
"min_mw": {
"type": "string"
},
"note": {
"type": "string"
},
"peak_mw": {
"type": "string"
},
"provenance": {
"type": "object",
"properties": {
"as_of": {
"type": "string"
},
"basis": {
"type": "string"
},
"basis_class": {
"type": "string"
},
"caveats": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"text": {
"type": "string"
}
},
"additionalProperties": true
}
},
"cite_as": {
"type": "string"
},
"default_v": {
"type": "string"
},
"fallback_url": {
"type": "string"
},
"fetched_at": {
"type": "string"
},
"fields": {
"type": "object",
"properties": {
"demand_mw": {
"type": "object",
"properties": {
"as_of": {
"type": "string"
},
"basis": {
"type": "string"
},
"basis_class": {
"type": "string"
},
"source_id": {
"type": "string"
},
"unit": {
"type": "string"
}
},
"additionalProperties": true
}
},
"additionalProperties": true
},
"license": {
"type": "string"
},
"method": {
"type": "string"
},
"provenance_revision": {
"type": "string"
},
"provenance_version": {
"type": "number"
},
"source": {
"type": "string"
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"as_of": {
"type": "string"
},
"attribution": {
"type": "string"
},
"fetched_at": {
"type": "string"
},
"id": {
"type": "string"
},
"license": {
"type": "string"
},
"name": {
"type": "string"
},
"url": {
"type": "string"
}
},
"additionalProperties": true
}
}
},
"additionalProperties": true
},
"region": {
"type": "string"
},
"rto_code": {
"type": "string"
},
"tier_required": {
"type": "string"
},
"agent_instruction": {
"type": "string"
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the dchub pack
{
"mcpServers": {
"dchub": {
"url": "https://gateway.pipeworx.io/dchub/mcp"
}
}
}
See Getting Started for client-specific install steps.