通用 7 个 MCP tools
call_deye_api
按 HTTP 方法和路径调用任意 DeyeCloud OpenAPI 接口。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
method | string | 必填 | HTTP 方法,如 GET / POST。 |
path | string | 必填 | DeyeCloud OpenAPI 路径。 |
body | object | — | 请求体参数,字段见下方 body 字段。 |
query | object | — | URL 查询参数。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
require_auth | boolean | — | 是否需要鉴权,默认 true。 |
body 字段
Schema: 无固定 schema
自由 JSON body,结构由具体接口决定。
MCP tool call 示例
{
"tool": "call_deye_api",
"arguments": {
"method": "POST",
"path": "/v1.0/station/list",
"body": {},
"query": {},
"data_center": "eu",
"require_auth": true
}
}
返回结构
Schema: 响应 JSON
返回目标接口的原始 JSON;结构由 path 选定的 OpenAPI 接口决定。
get_server_info
查询 MCP 服务端版本与 Skill 更新指引。
MCP tool 入参
MCP tool call 示例
{
"tool": "get_server_info",
"arguments": {}
}
返回结构
Schema: 响应 JSON
无展开字段。
get_skill_info
查询当前 Skill 版本,并检查是否需要更新。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
client_skill_version | string | — | 调用方当前使用的 Skill 版本,例如 v261106;传入后返回是否需要更新。 |
MCP tool call 示例
{
"tool": "get_skill_info",
"arguments": {
"client_skill_version": "string"
}
}
返回结构
Schema: 响应 JSON
无展开字段。
list_data_centers
列出支持的数据中心(eu / am / india)。
MCP tool 入参
MCP tool call 示例
{
"tool": "list_data_centers",
"arguments": {}
}
返回结构
Schema: 响应 JSON
无展开字段。
list_deye_endpoints
列出内置的 DeyeCloud OpenAPI 接口摘要与请求体结构。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
tag | string | — | 按 tag 过滤。 |
keyword | string | — | 按关键字过滤。 |
MCP tool call 示例
{
"tool": "list_deye_endpoints",
"arguments": {
"tag": "station",
"keyword": "station"
}
}
返回结构
Schema: 响应 JSON
无展开字段。
search_product_knowledge
按型号检索德业产品技术资料:额定功率、MPPT、电压范围、效率、认证等参数。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
query | string | 必填 | 自然语言检索问题,建议带型号。 |
top_k | integer | — | 返回的片段数量,1-20,默认 5。 |
context_models | array[string] | — | 上一轮对话中的型号列表,用于“那它的电池电压呢”这类追问;不传则无法继承上下文。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
MCP tool call 示例
{
"tool": "search_product_knowledge",
"arguments": {
"query": "SUN-12K-SG04LP3 max PV input voltage",
"top_k": 5,
"context_models": [],
"data_center": "eu"
}
}
返回结构
Schema: 响应 JSON
无展开字段。
search_support_knowledge
检索德业客服知识库:App 操作指引、告警码含义、售后与保修政策、各国服务中心、公司信息。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
query | string | 必填 | 自然语言问题,可带型号,例如“怎么给电站添加采集器”。 |
top_k | integer | — | 返回的片段数量,1-15,默认 5。 |
business | array[string] | — | 业务线,默认 DeyeCloud / DeyeEss / DeyeInverter;还支持 DeyeHumidifier 和 DeyeCommon(告警码库)。 |
context_models | array[string] | — | 上一轮对话中的型号列表,用于“那它的电池电压呢”这类追问;不传则无法继承上下文。 |
access_token | string | — | 可选,仅用于把检索归属到用户;不校验,过期也能查。 |
MCP tool call 示例
{
"tool": "search_support_knowledge",
"arguments": {
"query": "怎么给电站添加采集器",
"top_k": 5,
"business": [
"DeyeCloud"
],
"context_models": []
}
}
返回结构
Schema: 响应 JSON
无展开字段。
电站 18 个 MCP tools
diagnose_station
诊断电站为什么不发电:检查设备、告警和最新功率。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
station_id | integer/string | 必填 | 电站 ID;get_station_snapshot 也可改用 station_name。 |
language | string | — | 返回语言,例如 en / zh。 |
timezone_offset | integer | — | 用户时区偏移小时数,例如中国为 8;用于把“今天”换算成电站当地日期。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
MCP tool call 示例
{
"tool": "diagnose_station",
"arguments": {
"station_id": 123456,
"language": "en",
"timezone_offset": 123456,
"data_center": "eu"
}
}
返回结构
Schema: 响应 JSON
无展开字段。
get_station_detail
查询单个电站的档案详情:名称、国家、时区、并网类型、装机容量等。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
station_id | integer/string | 必填 | 电站 ID;get_station_snapshot 也可改用 station_name。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
MCP tool call 示例
{
"tool": "get_station_detail",
"arguments": {
"station_id": 123456,
"data_center": "eu"
}
}
返回结构
Schema: stationDetailResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
msg | string | — | — |
requestId | string | 必填 | — |
station | StationDetailItem | — | 电站详情 |
batterySOC | number | — | double |
connectionStatus | string | — | — |
contactPhone | string | — | — |
countryCode | string | — | country code (ISO 3166-1) |
createdDate | string | — | date-time |
generationPower | number | — | double |
gridInterconnectionType | string | — | gridInterconnectionType |
id | integer | — | int64 |
installedCapacity | number | — | double |
lastUpdateTime | string | — | lastUpdateTime of the station |
locationAddress | string | — | — |
locationLat | number | — | latitude |
locationLng | number | — | longitude |
name | string | — | — |
ownerName | string | — | — |
regionNationId | integer | — | int64 |
regionTimezone | string | — | — |
startOperatingTime | string | — | date-time |
success | boolean | 必填 | — |
get_station_energy_summary
查询电站按日汇总的发电、用电、充放电和上网电量,默认今天。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
station_id | integer/string | 必填 | 电站 ID;get_station_snapshot 也可改用 station_name。 |
start_date | string | — | 开始日期,包含当天,格式 YYYY-MM-DD。 |
end_date | string | — | 结束日期,包含当天,格式 YYYY-MM-DD;省略时等于开始日期。 |
timezone_offset | integer | — | 用户时区偏移小时数,例如中国为 8;用于把“今天”换算成电站当地日期。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
MCP tool call 示例
{
"tool": "get_station_energy_summary",
"arguments": {
"station_id": 123456,
"start_date": "string",
"end_date": "string",
"timezone_offset": 123456,
"data_center": "eu"
}
}
返回结构
Schema: 响应 JSON
无展开字段。
get_station_generation_days
查询电站指定日期范围内的每日发电与用电汇总。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
station_id | integer | 必填 | 电站 ID;get_station_snapshot 也可改用 station_name。 |
start_date | string | 必填 | 开始日期,包含当天,格式 YYYY-MM-DD。 |
end_date | string | 必填 | 结束日期,包含当天,格式 YYYY-MM-DD;省略时等于开始日期。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
MCP tool call 示例
{
"tool": "get_station_generation_days",
"arguments": {
"station_id": 123456,
"start_date": "string",
"end_date": "string",
"data_center": "eu"
}
}
返回结构
Schema: 响应 JSON
无展开字段。
get_station_latest
查询单个电站的最新快照。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
station_id | integer/string | 必填 | 电站 ID;get_station_snapshot 也可改用 station_name。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
MCP tool call 示例
{
"tool": "get_station_latest",
"arguments": {
"station_id": 123456,
"data_center": "eu"
}
}
返回结构
Schema: stationLatestDataResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
batteryPower | number | — | double |
batterySOC | number | — | double |
chargePower | number | — | double |
code | string | — | — |
consumptionPower | number | — | double |
dischargePower | number | — | double |
generationPower | number | — | double |
gridPower | number | — | double |
irradiateIntensity | number | — | double |
lastUpdateTime | string | — | date-time |
msg | string | — | — |
purchasePower | number | — | double |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
wirePower | number | — | double |
get_station_profit_money
查询电站每日收益与收入;电站需先在 DeyeCloud 配置电价。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
station_id | integer | 必填 | 电站 ID;get_station_snapshot 也可改用 station_name。 |
start_date | string | 必填 | 开始日期,包含当天,格式 YYYY-MM-DD。 |
end_date | string | 必填 | 结束日期,包含当天,格式 YYYY-MM-DD;省略时等于开始日期。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
MCP tool call 示例
{
"tool": "get_station_profit_money",
"arguments": {
"station_id": 123456,
"start_date": "string",
"end_date": "string",
"data_center": "eu"
}
}
返回结构
Schema: 响应 JSON
无展开字段。
get_station_snapshot
一次调用获取电站当前快照:功率流、SOC、在线设备和未关闭告警。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
station_id | integer/string | — | 电站 ID;get_station_snapshot 也可改用 station_name。 |
station_name | string | — | 电站名称;不知道 station_id 时可按名称精确或模糊匹配。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
MCP tool call 示例
{
"tool": "get_station_snapshot",
"arguments": {
"station_id": 123456,
"station_name": "string",
"data_center": "eu"
}
}
返回结构
Schema: 响应 JSON
无展开字段。
list_station_devices
查询某个电站下的设备列表。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
station_id | integer/string | 必填 | 电站 ID;get_station_snapshot 也可改用 station_name。 |
page | integer | — | 页码,默认 1。 |
size | integer | — | 每页数量,默认 10。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
MCP tool call 示例
{
"tool": "list_station_devices",
"arguments": {
"station_id": 123456,
"page": 1,
"size": 10,
"data_center": "eu"
}
}
返回结构
Schema: deviceListResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
deviceListItems | array[DeviceListItem] | — | deviceList |
collectionTime | integer | — | last data updated time of the device |
connectStatus | integer | — | connction Status |
deviceId | integer | — | unique identifier of device |
deviceSn | string | — | — |
deviceType | string | — | — |
parentId | integer | — | parent device id of this device, used to draw the device topology. Null for devices without a parent (e.g. inverter directly under station). |
productId | string | — | 3Phase High-Voltage Hybrid: 0_5412_1;3Phase Low-Voltage Hybrid: 0_5411_1;1Phase Hybrid:0_5407_1; |
stationId | integer | — | int64 |
msg | string | — | — |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
total | integer | — | count of devices |
list_stations
查询账号下的电站列表。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
page | integer | — | 页码,默认 1。 |
size | integer | — | 每页数量,默认 10。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
MCP tool call 示例
{
"tool": "list_stations",
"arguments": {
"page": 1,
"size": 10,
"data_center": "eu"
}
}
返回结构
Schema: stationListResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
msg | string | — | — |
requestId | string | 必填 | — |
stationList | array[StationDetailItem] | — | — |
batterySOC | number | — | double |
connectionStatus | string | — | — |
contactPhone | string | — | — |
countryCode | string | — | country code (ISO 3166-1) |
createdDate | string | — | date-time |
generationPower | number | — | double |
gridInterconnectionType | string | — | gridInterconnectionType |
id | integer | — | int64 |
installedCapacity | number | — | double |
lastUpdateTime | string | — | lastUpdateTime of the station |
locationAddress | string | — | — |
locationLat | number | — | latitude |
locationLng | number | — | longitude |
name | string | — | — |
ownerName | string | — | — |
regionNationId | integer | — | int64 |
regionTimezone | string | — | — |
startOperatingTime | string | — | date-time |
success | boolean | 必填 | — |
total | integer | — | total count of all stations |
station_alert_list
查询单个电站在时间窗内的告警,含告警码、等级、原因和处理建议。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | BaseStationAlertListRequest | — | 请求体参数,字段见下方 body 字段。 |
station_id | integer/string | 必填 | 电站 ID;get_station_snapshot 也可改用 station_name。 |
start_timestamp | integer/string | 必填 | 时间窗起点,10 位 Unix 秒;也接受 ISO 8601 时间。 |
end_timestamp | integer/string | 必填 | 时间窗终点,10 位 Unix 秒;也接受 ISO 8601 时间。 |
page | integer | — | 页码,默认 1。 |
size | integer | — | 每页数量,默认 10。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: BaseStationAlertListRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
endTimestamp | integer | 必填 | int64 |
page | integer | — | page number,default=1 |
size | integer | — | size for one page,max=200, default=20 |
startTimestamp | integer | 必填 | int64 |
stationId | integer | 必填 | int64 |
MCP tool call 示例
{
"tool": "station_alert_list",
"arguments": {
"body": {
"endTimestamp": 123456,
"page": 123456,
"size": 123456,
"startTimestamp": 123456,
"stationId": 123456
},
"station_id": 123456,
"start_timestamp": 123456,
"end_timestamp": 123456,
"page": 1,
"size": 10,
"data_center": "eu"
}
}
返回结构
Schema: StationAlertListResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
msg | string | — | — |
requestId | string | 必填 | — |
stationAlertItems | array[StationAlertItem] | — | — |
alertCode | string | — | Alert protocol code |
alertEndTime | integer | — | int64 |
alertId | string | — | — |
alertName | string | — | AlertName on DeyeCloud |
alertStartTime | integer | — | int64 |
deviceId | string | — | — |
deviceSn | string | — | — |
deviceType | string | — | — |
impact | integer | — | Alert Impact.0-No Impact;1-Impact on Production;2-Impact on Safety;3-Impact on Production&Safety |
level | integer | — | Alert Level(0:Notice,1:Warning,2:Failure) |
protocolName | string | — | Alert protocol name |
status | integer | — | Status:1-Open、0-Closed |
success | boolean | 必填 | — |
total | integer | — | total records |
station_create
创建电站;货币用 ISO 4217 三位代码,时区用 IANA 名称。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | BaseStationCreateRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: BaseStationCreateRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
constructionCost | number | — | double |
contactPhone | string | — | — |
currency | string | 必填 | — |
gridInterconnectionType | string | 必填 | — |
installationAzimuthAngle | number | — | double |
installationTiltAngle | number | — | double |
installedCapacity | number | 必填 | double |
locationAddress | string | 必填 | — |
locationLat | number | 必填 | station latitude |
locationLng | number | 必填 | station Longitude |
mergeElectricPrice | number | — | unitPrice(currency/kWh) |
name | string | 必填 | — |
ownerCompany | string | — | — |
ownerName | string | — | — |
region | Region | 必填 | — |
countryCode | string | 必填 | — |
level1 | integer | — | int64 |
level2 | integer | — | int64 |
level3 | integer | — | int64 |
level4 | integer | — | int64 |
level5 | integer | — | int64 |
nationId | integer | — | int64 |
timezone | string | 必填 | station timezone |
startOperatingTime | string | — | date-time |
stationImage | string | — | — |
type | string | — | — |
MCP tool call 示例
{
"tool": "station_create",
"arguments": {
"body": {
"constructionCost": 123.45,
"contactPhone": 13101969190,
"currency": "USD",
"gridInterconnectionType": "DISTRIBUTED_FULLY",
"installationAzimuthAngle": 123.45
},
"data_center": "eu"
}
}
返回结构
Schema: StationCreateResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
id | integer | — | stationId |
msg | string | — | — |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
station_detail
查询单个电站详情(底层封装,推荐用 get_station_detail)。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | request | — | 请求体参数,字段见下方 body 字段。 |
station_id | integer/string | 必填 | 电站 ID;get_station_snapshot 也可改用 station_name。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: request
| 字段 | 类型 | 必填 | 说明 |
|---|
stationId | integer | 必填 | 电站ID |
MCP tool call 示例
{
"tool": "station_detail",
"arguments": {
"body": {
"stationId": 123456
},
"station_id": 123456,
"data_center": "eu"
}
}
返回结构
Schema: stationDetailResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
msg | string | — | — |
requestId | string | 必填 | — |
station | StationDetailItem | — | 电站详情 |
batterySOC | number | — | double |
connectionStatus | string | — | — |
contactPhone | string | — | — |
countryCode | string | — | country code (ISO 3166-1) |
createdDate | string | — | date-time |
generationPower | number | — | double |
gridInterconnectionType | string | — | gridInterconnectionType |
id | integer | — | int64 |
installedCapacity | number | — | double |
lastUpdateTime | string | — | lastUpdateTime of the station |
locationAddress | string | — | — |
locationLat | number | — | latitude |
locationLng | number | — | longitude |
name | string | — | — |
ownerName | string | — | — |
regionNationId | integer | — | int64 |
regionTimezone | string | — | — |
startOperatingTime | string | — | date-time |
success | boolean | 必填 | — |
station_device
批量查询电站下的设备列表,需在 body 中传 stationIds。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | deviceListRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: deviceListRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
page | integer | — | page,default:1 |
size | integer | — | size for one page,max:200,default:20 |
stationIds | array[integer] | 必填 | stationIds |
MCP tool call 示例
{
"tool": "station_device",
"arguments": {
"body": {
"page": 123456,
"size": 123456,
"stationIds": []
},
"data_center": "eu"
}
}
返回结构
Schema: deviceListResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
deviceListItems | array[DeviceListItem] | — | deviceList |
collectionTime | integer | — | last data updated time of the device |
connectStatus | integer | — | connction Status |
deviceId | integer | — | unique identifier of device |
deviceSn | string | — | — |
deviceType | string | — | — |
parentId | integer | — | parent device id of this device, used to draw the device topology. Null for devices without a parent (e.g. inverter directly under station). |
productId | string | — | 3Phase High-Voltage Hybrid: 0_5412_1;3Phase Low-Voltage Hybrid: 0_5411_1;1Phase Hybrid:0_5407_1; |
stationId | integer | — | int64 |
msg | string | — | — |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
total | integer | — | count of devices |
station_history
查询电站按时间桶的历史数据(发电、用电、电池、电网);日期为电站当地日期。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | BaseStationHistoryDataRequest | — | 请求体参数,字段见下方 body 字段。 |
station_id | integer/string | 必填 | 电站 ID;get_station_snapshot 也可改用 station_name。 |
start_date | string | — | 开始日期,包含当天,格式 YYYY-MM-DD。 |
end_date | string | — | 结束日期,包含当天,格式 YYYY-MM-DD;省略时等于开始日期。 |
granularity | integer | — | 时间桶粒度;1 表示按天,其他值由 DeyeCloud 定义。 |
page | integer | — | 页码,默认 1。 |
size | integer | — | 每页数量,默认 10。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: BaseStationHistoryDataRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
endAt | string | — | End date |
granularity | integer | 必填 | The granularity of the telemetry data. |
startAt | string | 必填 | Start date |
stationId | integer | 必填 | station ID |
MCP tool call 示例
{
"tool": "station_history",
"arguments": {
"body": {
"endAt": 2024,
"granularity": 123456,
"startAt": 2024,
"stationId": 123456
},
"station_id": 123456,
"start_date": "string",
"end_date": "string",
"granularity": 123456,
"page": 1,
"size": 10,
"data_center": "eu"
}
}
返回结构
Schema: StationHistoryDataResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
msg | string | — | — |
requestId | string | 必填 | — |
stationDataItems | array[StationDataItem] | — | station data item List |
batteryPower | number | — | batteryPower |
batterySOC | number | — | batterySOC |
chargePower | number | — | chargePower |
chargeRatio | number | — | chargeRatio |
chargeValue | number | — | chargeValue |
consumptionDischargeRatio | number | — | consumptionDischargeRatio |
consumptionPower | number | — | consumptionPower |
consumptionRatio | number | — | consumptionRatio |
consumptionValue | number | — | consumptionValue |
cpr | number | — | cpr |
day | integer | — | Date of data processed |
dischargePower | number | — | dischargePower |
dischargeValue | number | — | dischargeValue |
fullPowerHours | number | — | fullPowerHours |
generationPower | number | — | generationPower |
generationRatio | number | — | generationRatio |
generationValue | number | — | generationValue |
gridPower | number | — | gridPower |
gridRatio | number | — | gridRatio |
gridValue | number | — | gridValue |
irradiate | number | — | irradiate |
irradiateIntensity | number | — | irradiateIntensity |
month | integer | — | Month of data processed |
pr | number | — | PR |
purchasePower | number | — | purchasePower |
purchaseRatio | number | — | purchaseRatio |
purchaseValue | number | — | purchaseValue |
theoreticalGeneration | number | — | theoreticalGeneration |
timeStamp | string | — | timeStamp |
wirePower | number | — | wirePower |
year | integer | — | Year of data processed |
success | boolean | 必填 | — |
total | integer | — | total results |
station_history_power
按时间戳查询电站功率曲线,适合“12:00 到 14:00 发生了什么”这类日内问题。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | BaseStationHistoryPowerRequest | — | 请求体参数,字段见下方 body 字段。 |
station_id | integer/string | 必填 | 电站 ID;get_station_snapshot 也可改用 station_name。 |
start_timestamp | integer/string | 必填 | 时间窗起点,10 位 Unix 秒;也接受 ISO 8601 时间。 |
end_timestamp | integer/string | 必填 | 时间窗终点,10 位 Unix 秒;也接受 ISO 8601 时间。 |
page | integer | — | 页码,默认 1。 |
size | integer | — | 每页数量,默认 10。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: BaseStationHistoryPowerRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
endTimestamp | integer | 必填 | int64 |
startTimestamp | integer | 必填 | int64 |
stationId | integer | 必填 | station ID |
MCP tool call 示例
{
"tool": "station_history_power",
"arguments": {
"body": {
"endTimestamp": 123456,
"startTimestamp": 123456,
"stationId": 123456
},
"station_id": 123456,
"start_timestamp": 123456,
"end_timestamp": 123456,
"page": 1,
"size": 10,
"data_center": "eu"
}
}
返回结构
Schema: StationHistoryPowerResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
msg | string | — | — |
requestId | string | 必填 | — |
stationDataItems | array[StationHistoryDataItem] | — | — |
batteryPower | number | — | batteryPower |
batterySOC | number | — | batterySOC |
chargePower | number | — | chargePower |
chargeRatio | number | — | chargeRatio |
chargeValue | number | — | chargeValue |
consumptionDischargeRatio | number | — | consumptionDischargeRatio |
consumptionPower | number | — | consumptionPower |
consumptionRatio | number | — | consumptionRatio |
consumptionValue | number | — | consumptionValue |
cpr | number | — | cpr |
dischargePower | number | — | dischargePower |
dischargeValue | number | — | dischargeValue |
fullPowerHours | number | — | fullPowerHours |
generationPower | number | — | generationPower |
generationRatio | number | — | generationRatio |
generationValue | number | — | generationValue |
gridPower | number | — | gridPower |
gridRatio | number | — | gridRatio |
gridValue | number | — | gridValue |
irradiate | number | — | irradiate |
irradiateIntensity | number | — | irradiateIntensity |
pr | number | — | PR |
purchasePower | number | — | purchasePower |
purchaseRatio | number | — | purchaseRatio |
purchaseValue | number | — | purchaseValue |
theoreticalGeneration | number | — | theoreticalGeneration |
timeStamp | string | — | timeStamp |
wirePower | number | — | wirePower |
success | boolean | 必填 | — |
total | integer | — | total results |
station_latest
查询单个电站的最新数据(底层封装,推荐用 get_station_latest)。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | BaseStationRealTimeDataRequest | — | 请求体参数,字段见下方 body 字段。 |
station_id | integer/string | 必填 | 电站 ID;get_station_snapshot 也可改用 station_name。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: BaseStationRealTimeDataRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
stationId | integer | 必填 | stationId |
MCP tool call 示例
{
"tool": "station_latest",
"arguments": {
"body": {
"stationId": 123456
},
"station_id": 123456,
"data_center": "eu"
}
}
返回结构
Schema: stationLatestDataResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
batteryPower | number | — | double |
batterySOC | number | — | double |
chargePower | number | — | double |
code | string | — | — |
consumptionPower | number | — | double |
dischargePower | number | — | double |
generationPower | number | — | double |
gridPower | number | — | double |
irradiateIntensity | number | — | double |
lastUpdateTime | string | — | date-time |
msg | string | — | — |
purchasePower | number | — | double |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
wirePower | number | — | double |
station_list
查询账号下的电站列表(底层封装)。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | BaseStationListRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: BaseStationListRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
page | integer | — | page,default value is 1 |
size | integer | — | size for one page,default value is 20, max value is:200 |
MCP tool call 示例
{
"tool": "station_list",
"arguments": {
"body": {
"page": 123456,
"size": 123456
},
"data_center": "eu"
}
}
返回结构
Schema: stationListResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
msg | string | — | — |
requestId | string | 必填 | — |
stationList | array[StationDetailItem] | — | — |
batterySOC | number | — | double |
connectionStatus | string | — | — |
contactPhone | string | — | — |
countryCode | string | — | country code (ISO 3166-1) |
createdDate | string | — | date-time |
generationPower | number | — | double |
gridInterconnectionType | string | — | gridInterconnectionType |
id | integer | — | int64 |
installedCapacity | number | — | double |
lastUpdateTime | string | — | lastUpdateTime of the station |
locationAddress | string | — | — |
locationLat | number | — | latitude |
locationLng | number | — | longitude |
name | string | — | — |
ownerName | string | — | — |
regionNationId | integer | — | int64 |
regionTimezone | string | — | — |
startOperatingTime | string | — | date-time |
success | boolean | 必填 | — |
total | integer | — | total count of all stations |
station_list_with_device
查询账号下的电站列表,并同时返回每个电站的设备。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | BaseStationWithDeviceListRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: BaseStationWithDeviceListRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
deviceType | string | — | — |
page | integer | — | page,default value:1 |
size | integer | — | size for one page,default value is 20, max value is:50 |
MCP tool call 示例
{
"tool": "station_list_with_device",
"arguments": {
"body": {
"deviceType": "INVERTER",
"page": 123456,
"size": 123456
},
"data_center": "eu"
}
}
返回结构
Schema: StationWithDeviceListResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
msg | string | — | — |
requestId | string | 必填 | — |
stationList | array[StationWithDeviceDetailItem] | — | — |
contactPhone | string | — | contactPhone |
createdDate | string | — | createdDate |
deviceListItems | array[DeviceListItem] | — | deviceListItems |
collectionTime | integer | — | last data updated time of the device |
connectStatus | integer | — | connction Status |
deviceId | integer | — | unique identifier of device |
deviceSn | string | — | — |
deviceType | string | — | — |
parentId | integer | — | parent device id of this device, used to draw the device topology. Null for devices without a parent (e.g. inverter directly under station). |
productId | string | — | 3Phase High-Voltage Hybrid: 0_5412_1;3Phase Low-Voltage Hybrid: 0_5411_1;1Phase Hybrid:0_5407_1; |
stationId | integer | — | int64 |
deviceTotal | integer | — | deviceTotal |
gridInterconnectionType | string | — | gridInterconnectionType |
id | integer | — | stationID |
installedCapacity | number | — | installedCapacity |
locationAddress | string | — | locationAddress |
locationLat | number | — | Latitude |
locationLng | number | — | Longitude |
name | string | — | stationName |
ownerName | string | — | ownerName |
regionNationId | integer | — | NationId |
regionTimezone | string | — | Timezone |
startOperatingTime | string | — | startOperatingTime |
type | string | — | stationType |
stationTotal | integer | — | count of stations |
success | boolean | 必填 | — |
设备 11 个 MCP tools
device_add_logger
把采集器添加到企业账号,单批最多 10 个。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | LoggerRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: LoggerRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
deviceSns | array[string] | — | — |
MCP tool call 示例
{
"tool": "device_add_logger",
"arguments": {
"body": {
"deviceSns": []
},
"data_center": "eu"
}
}
返回结构
Schema: BaseResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
msg | string | — | — |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
device_alert_list
查询单个设备在时间窗内的告警。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | DeviceAlertListRequest | — | 请求体参数,字段见下方 body 字段。 |
device_sn | string | 必填 | 设备序列号(deviceSn)。 |
start_timestamp | integer/string | 必填 | 时间窗起点,10 位 Unix 秒;也接受 ISO 8601 时间。 |
end_timestamp | integer/string | 必填 | 时间窗终点,10 位 Unix 秒;也接受 ISO 8601 时间。 |
page | integer | — | 页码,默认 1。 |
size | integer | — | 每页数量,默认 10。 |
language | string | — | 返回语言,例如 en / zh。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: DeviceAlertListRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
deviceSn | string | — | — |
deviceType | string | — | Optional. If passed, deviceSn and deviceType will be used together to resolve the device.
Options:
INVERTER(string inverter, hybrid inverter, off-grid inverter)
MICRO_INVERTER
MICRO_STORAGE_IN_ONE
PCS |
endTimestamp | integer | 必填 | int64 |
page | integer | — | which page to display. default is 1 if not provided |
size | integer | — | size of one page,default is 20, max is 100 |
startTimestamp | integer | 必填 | int64 |
MCP tool call 示例
{
"tool": "device_alert_list",
"arguments": {
"body": {
"deviceSn": "string",
"deviceType": "INVERTER",
"endTimestamp": 123456,
"page": 123456,
"size": 123456
},
"device_sn": "string",
"start_timestamp": 123456,
"end_timestamp": 123456,
"page": 1,
"size": 10,
"language": "en",
"data_center": "eu"
}
}
返回结构
Schema: DeviceAlertListResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
alertList | array[DeviceAlertItem] | — | — |
alertCode | string | — | Alert protocol code |
alertEndTime | integer | — | int64 |
alertId | string | — | — |
alertName | string | — | AlertName on DeyeCloud |
alertStartTime | integer | — | int64 |
description | string | — | Alert description |
impact | integer | — | Alert Impact.0-No Impact;1-Impact on Production;2-Impact on Safety 3-Impact on Production&Safety |
level | integer | — | Alert Level(0:Notice,1:Warning,2:Failure) |
protocolName | string | — | Alert protocol name |
reason | string | — | Alert reason |
solution | string | — | Alert solution |
status | integer | — | 1:Open,0:Closed |
code | string | — | — |
deviceId | integer | — | int64 |
deviceSn | string | 必填 | — |
deviceType | string | — | — |
msg | string | — | — |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
total | integer | — | total records |
device_delete_logger
从企业账号移除采集器,单批最多 10 个。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | LoggerRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: LoggerRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
deviceSns | array[string] | — | — |
MCP tool call 示例
{
"tool": "device_delete_logger",
"arguments": {
"body": {
"deviceSns": []
},
"data_center": "eu"
}
}
返回结构
Schema: BaseResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
msg | string | — | — |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
device_history
查询设备按时间桶的历史数据,可指定测点。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | DeviceHistoryDataRequest | — | 请求体参数,字段见下方 body 字段。 |
device_sn | string | 必填 | 设备序列号(deviceSn)。 |
start_date | string | — | 开始日期,包含当天,格式 YYYY-MM-DD。 |
end_date | string | — | 结束日期,包含当天,格式 YYYY-MM-DD;省略时等于开始日期。 |
granularity | integer | — | 时间桶粒度;1 表示按天,其他值由 DeyeCloud 定义。 |
measure_points | array[string] | — | 要返回的测点 key 列表;省略时使用设备默认测点(可先用 device_measure_points 查询)。 |
page | integer | — | 页码,默认 1。 |
size | integer | — | 每页数量,默认 10。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: DeviceHistoryDataRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
deviceSn | string | 必填 | — |
deviceType | string | — | Optional. If passed, deviceSn and deviceType will be used together to resolve the device.
Options:
INVERTER(string inverter, hybrid inverter, off-grid inverter)
MICRO_INVERTER
MICRO_STORAGE_IN_ONE
PCS |
endAt | string | — | Coule be null if granularity=1, Others is same with startAt |
granularity | integer | 必填 | int32 |
measurePoints | array[string] | — | — |
startAt | string | 必填 | — |
MCP tool call 示例
{
"tool": "device_history",
"arguments": {
"body": {
"deviceSn": "12583SS",
"deviceType": "INVERTER",
"endAt": "2024-01-01",
"granularity": 123456,
"measurePoints": []
},
"device_sn": "string",
"start_date": "string",
"end_date": "string",
"granularity": 123456,
"measure_points": [],
"page": 1,
"size": 10,
"data_center": "eu"
}
}
返回结构
Schema: DeviceHistoryDataResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
dataList | array[DeviceHistoryDataItem] | — | dataList |
itemList | array[Map«string,string»] | — | — |
time | string | — | — |
deviceId | integer | — | int64 |
deviceSn | string | 必填 | — |
deviceType | string | — | — |
granularity | integer | — | int32 |
msg | string | — | — |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
device_history_raw
查询设备原始采样点,适合定位曲线在某个时刻的突变。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | DeviceHistoryPowerRequest | — | 请求体参数,字段见下方 body 字段。 |
device_sn | string | 必填 | 设备序列号(deviceSn)。 |
start_timestamp | integer/string | 必填 | 时间窗起点,10 位 Unix 秒;也接受 ISO 8601 时间。 |
end_timestamp | integer/string | 必填 | 时间窗终点,10 位 Unix 秒;也接受 ISO 8601 时间。 |
measure_points | array[string] | — | 要返回的测点 key 列表;省略时使用设备默认测点(可先用 device_measure_points 查询)。 |
page | integer | — | 页码,默认 1。 |
size | integer | — | 每页数量,默认 10。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: DeviceHistoryPowerRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
deviceSn | string | 必填 | — |
deviceType | string | — | Optional. If passed, deviceSn and deviceType will be used together to resolve the device.
Options:
INVERTER(string inverter, hybrid inverter, off-grid inverter)
MICRO_INVERTER
MICRO_STORAGE_IN_ONE
PCS |
endTimestamp | integer | 必填 | int64 |
measurePoints | array[string] | 必填 | — |
startTimestamp | integer | 必填 | int64 |
MCP tool call 示例
{
"tool": "device_history_raw",
"arguments": {
"body": {
"deviceSn": "12583SS",
"deviceType": "INVERTER",
"endTimestamp": 123456,
"measurePoints": [],
"startTimestamp": 123456
},
"device_sn": "string",
"start_timestamp": 123456,
"end_timestamp": 123456,
"measure_points": [],
"page": 1,
"size": 10,
"data_center": "eu"
}
}
返回结构
Schema: DeviceHistoryPowerResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
dataList | array[DeviceHistoryDataItem] | — | — |
itemList | array[Map«string,string»] | — | — |
time | string | — | — |
deviceId | integer | — | int64 |
deviceSn | string | 必填 | — |
deviceType | string | — | — |
msg | string | — | — |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
device_latest
批量查询设备最新数据,单批最多 10 个。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | latestDataRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: latestDataRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
deviceList | array[string] | 必填 | — |
deviceType | string | — | Optional. If passed, all deviceSn values in deviceList will be resolved with this deviceType.
Options:
INVERTER(string inverter, hybrid inverter, off-grid inverter)
MICRO_INVERTER
MICRO_STORAGE_IN_ONE
PCS |
MCP tool call 示例
{
"tool": "device_latest",
"arguments": {
"body": {
"deviceList": [],
"deviceType": "INVERTER"
},
"data_center": "eu"
}
}
返回结构
Schema: latestDataResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
deviceDataList | array[deviceLatestData] | — | — |
collectionTime | integer | — | data collection time(Unix Timestamp in seconds) |
dataList | array[data] | — | dataList |
key | string | — | name of the data |
unit | string | — | unit of the data |
value | string | — | value of the data |
deviceSn | string | 必填 | — |
deviceState | integer | — | deviceState.value:1.Online 2.Alert 3.Offline |
deviceType | string | — | — |
msg | string | — | — |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
device_list
查询企业账号下的设备列表。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | DeviceListRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: DeviceListRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
page | integer | — | page number,default=1 |
size | integer | — | page size,max:200, default=20 |
MCP tool call 示例
{
"tool": "device_list",
"arguments": {
"body": {
"page": 123456,
"size": 123456
},
"data_center": "eu"
}
}
返回结构
Schema: DeviceListResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
deviceList | array[DeviceDetailItem] | — | deviceList |
deviceSn | string | — | — |
deviceState | integer | — | deviceState. 1.Online 2.Alert 3.Offlien |
deviceType | string | — | — |
productId | string | — | — |
updateTime | integer | — | updateTime for the last data |
msg | string | — | — |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
total | integer | — | count of devices |
device_measure_points
查询设备支持的测点 key,可配合 device_history 使用。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | DeviceMeasurePointsRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: DeviceMeasurePointsRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
deviceSn | string | 必填 | — |
deviceType | string | — | default is INVERTER
Options: INVERTER;MICRO_INVERTER;MICRO_STORAGE_IN_ONE;MECD |
MCP tool call 示例
{
"tool": "device_measure_points",
"arguments": {
"body": {
"deviceSn": "12583SS",
"deviceType": "INVERTER"
},
"data_center": "eu"
}
}
返回结构
Schema: DeviceMeasurePointsResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
deviceSn | string | — | — |
deviceType | string | — | — |
measurePoints | array[string] | — | — |
msg | string | — | — |
productId | string | — | — |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
timeZone | string | — | — |
device_register
把采集器注册到指定电站。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | DeviceRegisterRequest | — | 请求体参数,字段见下方 body 字段。 |
language | string | — | 返回语言,例如 en / zh。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: DeviceRegisterRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
deviceSn | string | 必填 | deviceSn cannot be empty |
gatewaySn | string | 必填 | — |
stationId | integer | 必填 | int64 |
MCP tool call 示例
{
"tool": "device_register",
"arguments": {
"body": {
"deviceSn": "string",
"gatewaySn": "string",
"stationId": 123456
},
"language": "en",
"data_center": "eu"
}
}
返回结构
Schema: DeviceRegisterResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
gatewayId | integer | — | int64 |
msg | string | — | — |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
get_device_latest
按设备 SN 批量查询最新测量值,最多 10 个。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
device_list | array[string] | 必填 | 设备 SN 列表,单批最多 10 个。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
MCP tool call 示例
{
"tool": "get_device_latest",
"arguments": {
"device_list": [
"2212228299"
],
"data_center": "eu"
}
}
返回结构
Schema: latestDataResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
deviceDataList | array[deviceLatestData] | — | — |
collectionTime | integer | — | data collection time(Unix Timestamp in seconds) |
dataList | array[data] | — | dataList |
key | string | — | name of the data |
unit | string | — | unit of the data |
value | string | — | value of the data |
deviceSn | string | 必填 | — |
deviceState | integer | — | deviceState.value:1.Online 2.Alert 3.Offline |
deviceType | string | — | — |
msg | string | — | — |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
list_devices
查询企业账号下的设备列表(推荐入口)。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
page | integer | — | 页码,默认 1。 |
size | integer | — | 每页数量,默认 10。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
MCP tool call 示例
{
"tool": "list_devices",
"arguments": {
"page": 1,
"size": 10,
"data_center": "eu"
}
}
返回结构
Schema: DeviceListResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
deviceList | array[DeviceDetailItem] | — | deviceList |
deviceSn | string | — | — |
deviceState | integer | — | deviceState. 1.Online 2.Alert 3.Offlien |
deviceType | string | — | — |
productId | string | — | — |
updateTime | integer | — | updateTime for the last data |
msg | string | — | — |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
total | integer | — | count of devices |
控制 15 个 MCP tools
get_order_result
按 orderId 查询控制命令的执行结果(推荐入口)。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
order_id | string | 必填 | 控制命令的 orderId。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
MCP tool call 示例
{
"tool": "get_order_result",
"arguments": {
"order_id": 123456,
"data_center": "eu"
}
}
返回结构
Schema: OrderRecordResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
analysisResult | string | — | — |
code | string | — | — |
createBy | integer | — | int64 |
createTime | string | — | date-time |
deviceTimezone | string | — | device zone |
error | string | — | fail reason 501:Conflicting Command 502:Product Type Error 505:System Error 510:Parsing Failure 511:Invalid version 530:Command Failure 570:Firmware package download failure 571:Firmware verification error 572:Firmware name error 573:Device interaction failure |
msg | string | — | — |
orderId | integer | — | int64 |
orderResult | string | — | — |
requestId | string | 必填 | — |
status | integer | — | 0:To be sent 100:Sending 300:during upgrade 400:Terminated 500:Failed 666:Succeeded |
success | boolean | 必填 | — |
updateTime | string | — | date-time |
order_battery_mode_control
开启或关闭电池充电模式。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | BaseDeviceOrderBatteryModeActionRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: BaseDeviceOrderBatteryModeActionRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
action | string | 必填 | action=on:enable, action=off:disable |
batteryModeType | string | 必填 | — |
deviceSn | string | 必填 | — |
MCP tool call 示例
{
"tool": "order_battery_mode_control",
"arguments": {
"body": {
"action": "on",
"batteryModeType": "string",
"deviceSn": "string"
},
"data_center": "eu"
}
}
返回结构
Schema: DeviceControlResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
collectionTime | integer | — | colletionTime for latest data(Unix Timestamp in seconds) |
connectionStatus | integer | — | connectionStatus 0:Offline 1:Online |
msg | string | — | — |
orderId | integer | — | int64 |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
order_battery_parameter_update
修改电池相关参数。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | BaseDeviceOrderBatterySetPointRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: BaseDeviceOrderBatterySetPointRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
deviceSn | string | 必填 | — |
paramterType | string | 必填 | — |
value | integer | 必填 | int64 |
MCP tool call 示例
{
"tool": "order_battery_parameter_update",
"arguments": {
"body": {
"deviceSn": "string",
"paramterType": "string",
"value": 123456
},
"data_center": "eu"
}
}
返回结构
Schema: DeviceControlResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
collectionTime | integer | — | colletionTime for latest data(Unix Timestamp in seconds) |
connectionStatus | integer | — | connectionStatus 0:Offline 1:Online |
msg | string | — | — |
orderId | integer | — | int64 |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
order_battery_type_update
设置电池类型,例如 LI、BATT_V、BATT_SOC 或 NO_BATTERY。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | BaseDeviceOrderBatteryTypeSetRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: BaseDeviceOrderBatteryTypeSetRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
batteryType | string | 必填 | — |
deviceSn | string | 必填 | — |
MCP tool call 示例
{
"tool": "order_battery_type_update",
"arguments": {
"body": {
"batteryType": "BATT_V",
"deviceSn": "string"
},
"data_center": "eu"
}
}
返回结构
Schema: DeviceControlResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
collectionTime | integer | — | colletionTime for latest data(Unix Timestamp in seconds) |
connectionStatus | integer | — | connectionStatus 0:Offline 1:Online |
msg | string | — | — |
orderId | integer | — | int64 |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
order_by_order_id
按 orderId 查询控制命令的执行结果(底层封装)。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
order_id | integer/string | 必填 | 控制命令的 orderId。 |
language | string | — | 返回语言,例如 en / zh。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
MCP tool call 示例
{
"tool": "order_by_order_id",
"arguments": {
"order_id": 123456,
"language": "en",
"data_center": "eu"
}
}
返回结构
Schema: OrderRecordResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
analysisResult | string | — | — |
code | string | — | — |
createBy | integer | — | int64 |
createTime | string | — | date-time |
deviceTimezone | string | — | device zone |
error | string | — | fail reason 501:Conflicting Command 502:Product Type Error 505:System Error 510:Parsing Failure 511:Invalid version 530:Command Failure 570:Firmware package download failure 571:Firmware verification error 572:Firmware name error 573:Device interaction failure |
msg | string | — | — |
orderId | integer | — | int64 |
orderResult | string | — | — |
requestId | string | 必填 | — |
status | integer | — | 0:To be sent 100:Sending 300:during upgrade 400:Terminated 500:Failed 666:Succeeded |
success | boolean | 必填 | — |
updateTime | string | — | date-time |
order_custom_control
按 Modbus 协议下发自定义控制命令;需要对照机型协议手册填写。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | DeviceCustomControlRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: DeviceCustomControlRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
content | string | 必填 | modus protocol command |
deviceSn | string | 必填 | — |
timeoutSeconds | integer | — | range,10~600 |
MCP tool call 示例
{
"tool": "order_custom_control",
"arguments": {
"body": {
"content": "0103000102ABCD",
"deviceSn": "string",
"timeoutSeconds": 123456
},
"data_center": "eu"
}
}
返回结构
Schema: DeviceControlResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
collectionTime | integer | — | colletionTime for latest data(Unix Timestamp in seconds) |
connectionStatus | integer | — | connectionStatus 0:Offline 1:Online |
msg | string | — | — |
orderId | integer | — | int64 |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
order_grid_peak_shaving_control
开启或关闭电网削峰;开启后并网功率会被限制在设定值内。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | BaseDeviceGridPeakShavingControlRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: BaseDeviceGridPeakShavingControlRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
action | string | 必填 | — |
deviceSn | string | 必填 | — |
power | integer | 必填 | If this value is not set, it keep it was |
MCP tool call 示例
{
"tool": "order_grid_peak_shaving_control",
"arguments": {
"body": {
"action": "on",
"deviceSn": "string",
"power": 123456
},
"data_center": "eu"
}
}
返回结构
Schema: DeviceControlResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
collectionTime | integer | — | colletionTime for latest data(Unix Timestamp in seconds) |
connectionStatus | integer | — | connectionStatus 0:Offline 1:Online |
msg | string | — | — |
orderId | integer | — | int64 |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
order_smartload_update
修改智能负载参数。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | BaseDeviceSmartLoadRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: BaseDeviceSmartLoadRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
deviceSn | string | 必填 | — |
deviceType | string | — | default is INVERTER
Options: INVERTER;MICRO_INVERTER;MICRO_STORAGE_IN_ONE;MECD |
offSOC | integer | — | smartload off battery SOC |
offVoltage | integer | — | smartload off battery voltage |
onGridAlwaysOn | boolean | — | true-enable 'on grid alwasys on'; false-disable 'on grid alwasys on' |
onSOC | integer | — | smartload on battery SOC |
onVoltage | integer | — | smartload on battery voltage |
MCP tool call 示例
{
"tool": "order_smartload_update",
"arguments": {
"body": {
"deviceSn": "string",
"deviceType": "INVERTER",
"offSOC": 123456,
"offVoltage": 123456,
"onGridAlwaysOn": true
},
"data_center": "eu"
}
}
返回结构
Schema: DeviceControlResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
collectionTime | integer | — | colletionTime for latest data(Unix Timestamp in seconds) |
connectionStatus | integer | — | connectionStatus 0:Offline 1:Online |
msg | string | — | — |
orderId | integer | — | int64 |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
order_sys_energy_pattern_update
设置能量分配策略:BATTERY_FIRST 或 LOAD_FIRST。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | BaseDeviceOrderSysEnergyPatternRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: BaseDeviceOrderSysEnergyPatternRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
deviceSn | string | 必填 | — |
energyPattern | string | 必填 | options:BATTERY_FIRST;LOAD_FIRST |
MCP tool call 示例
{
"tool": "order_sys_energy_pattern_update",
"arguments": {
"body": {
"deviceSn": "string",
"energyPattern": "BATTERY_FIRST"
},
"data_center": "eu"
}
}
返回结构
Schema: DeviceControlResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
collectionTime | integer | — | colletionTime for latest data(Unix Timestamp in seconds) |
connectionStatus | integer | — | connectionStatus 0:Offline 1:Online |
msg | string | — | — |
orderId | integer | — | int64 |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
order_sys_limit_control
设置并网限功率策略(如 SELL_FIRST、ZERO_EXPORT_TO_CT);仅部分机型支持。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | DeviceLimitControlFunctionRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: DeviceLimitControlFunctionRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
deviceSn | string | 必填 | — |
limitControlFunctionType | string | 必填 | options:SELL_FIRST;ZERO_EXPORT_TO_UPS_LOAD;ZERO_EXPORT_TO_CT;ZERO_EXPORT_TO_WIRELESS_CT |
MCP tool call 示例
{
"tool": "order_sys_limit_control",
"arguments": {
"body": {
"deviceSn": "string",
"limitControlFunctionType": "SELL_FIRST"
},
"data_center": "eu"
}
}
返回结构
Schema: DeviceControlResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
collectionTime | integer | — | colletionTime for latest data(Unix Timestamp in seconds) |
connectionStatus | integer | — | connectionStatus 0:Offline 1:Online |
msg | string | — | — |
orderId | integer | — | int64 |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
order_sys_power_update
设置最大售电功率、最大光伏功率或零输出功率。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | BaseDeviceOrderSysSetPointRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: BaseDeviceOrderSysSetPointRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
deviceSn | string | 必填 | — |
powerType | string | 必填 | — |
value | integer | 必填 | int64 |
MCP tool call 示例
{
"tool": "order_sys_power_update",
"arguments": {
"body": {
"deviceSn": "string",
"powerType": "string",
"value": 123456
},
"data_center": "eu"
}
}
返回结构
Schema: DeviceControlResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
collectionTime | integer | — | colletionTime for latest data(Unix Timestamp in seconds) |
connectionStatus | integer | — | connectionStatus 0:Offline 1:Online |
msg | string | — | — |
orderId | integer | — | int64 |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
order_sys_solar_sell_control
开启或关闭余电上网。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | BaseDeviceOrderSolarSellControlRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: BaseDeviceOrderSolarSellControlRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
action | string | 必填 | action=on:enable solar sell, action=off:disable soalr sell |
deviceSn | string | 必填 | — |
MCP tool call 示例
{
"tool": "order_sys_solar_sell_control",
"arguments": {
"body": {
"action": "on",
"deviceSn": "string"
},
"data_center": "eu"
}
}
返回结构
Schema: DeviceControlResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
collectionTime | integer | — | colletionTime for latest data(Unix Timestamp in seconds) |
connectionStatus | integer | — | connectionStatus 0:Offline 1:Online |
msg | string | — | — |
orderId | integer | — | int64 |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
order_sys_tou_switch
开启或关闭分时电价(TOU)功能。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | BaseDeviceOrderTOUSwitchRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: BaseDeviceOrderTOUSwitchRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
action | string | 必填 | — |
days | array[string] | — | If action is on, fill this field with the days of the week you want to switch on |
deviceSn | string | 必填 | — |
MCP tool call 示例
{
"tool": "order_sys_tou_switch",
"arguments": {
"body": {
"action": "on",
"days": [],
"deviceSn": "string"
},
"data_center": "eu"
}
}
返回结构
Schema: DeviceControlResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
collectionTime | integer | — | colletionTime for latest data(Unix Timestamp in seconds) |
connectionStatus | integer | — | connectionStatus 0:Offline 1:Online |
msg | string | — | — |
orderId | integer | — | int64 |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
order_sys_tou_update
设置分时电价(TOU)时段。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | BaseDeviceOrderTOUSetRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: BaseDeviceOrderTOUSetRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
deviceSn | string | 必填 | — |
timeUseSettingItems | array[TimeUseSettingItem] | 必填 | set the strategy for 6 time intervals.Have to be passed in sequence |
enableGeneration | boolean | 必填 | Want to enableGeneration set true otherwise set false |
enableGridCharge | boolean | 必填 | Want to enableGridCharge set true otherwise set false |
enableSell | boolean | — | Want to enableSell set true otherwise set false |
power | integer | 必填 | int32 |
soc | integer | — | int32 |
time | string | 必填 | — |
voltage | integer | — | If enabled battery voltage mode, this field should be set. |
MCP tool call 示例
{
"tool": "order_sys_tou_update",
"arguments": {
"body": {
"deviceSn": "string",
"timeUseSettingItems": []
},
"data_center": "eu"
}
}
返回结构
Schema: DeviceControlResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
collectionTime | integer | — | colletionTime for latest data(Unix Timestamp in seconds) |
connectionStatus | integer | — | connectionStatus 0:Offline 1:Online |
msg | string | — | — |
orderId | integer | — | int64 |
requestId | string | 必填 | — |
success | boolean | 必填 | — |
order_sys_work_mode_update
设置系统工作模式,例如 SELLING_FIRST 或 ZERO_EXPORT_TO_LOAD。
MCP tool 入参
| MCP 参数 | 类型 | 必填 | 说明 |
|---|
body | BaseDeviceOrderSysWorkModeRequest | — | 请求体参数,字段见下方 body 字段。 |
access_token | string | — | 可选;建议传入 get_access_token / account_token 返回的 token。 |
data_center | string | — | eu / am / india;未传使用服务端默认值。 |
body 字段
Schema: BaseDeviceOrderSysWorkModeRequest
| 字段 | 类型 | 必填 | 说明 |
|---|
deviceSn | string | 必填 | — |
workMode | string | 必填 | options:SELLING_FIRST;ZERO_EXPORT_TO_LOAD;ZERO_EXPORT_TO_CT;For micro storage:GREEN_POWER_MODE;FULL_CHARGE_MODE;CUSTOMIZED_MODE |
MCP tool call 示例
{
"tool": "order_sys_work_mode_update",
"arguments": {
"body": {
"deviceSn": "string",
"workMode": "SELLING_FIRST"
},
"data_center": "eu"
}
}
返回结构
Schema: DeviceControlResponse
| 字段 | 类型 | 必填 | 说明 |
|---|
code | string | — | — |
collectionTime | integer | — | colletionTime for latest data(Unix Timestamp in seconds) |
connectionStatus | integer | — | connectionStatus 0:Offline 1:Online |
msg | string | — | — |
orderId | integer | — | int64 |
requestId | string | 必填 | — |
success | boolean | 必填 | — |