Deye Open MCP
MCP Tools

Deye Open MCP 工具文档

通用 7 个 MCP tools

call_deye_api

按 HTTP 方法和路径调用任意 DeyeCloud OpenAPI 接口。

MCP tool 入参
MCP 参数类型必填说明
methodstring必填HTTP 方法,如 GET / POST。
pathstring必填DeyeCloud OpenAPI 路径。
bodyobject—请求体参数,字段见下方 body 字段。
queryobject—URL 查询参数。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
require_authboolean—是否需要鉴权,默认 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 参数类型必填说明
无参数。
MCP tool call 示例
{
  "tool": "get_server_info",
  "arguments": {}
}
返回结构
Schema: 响应 JSON
无展开字段。

get_skill_info

查询当前 Skill 版本,并检查是否需要更新。

MCP tool 入参
MCP 参数类型必填说明
client_skill_versionstring—调用方当前使用的 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 参数类型必填说明
无参数。
MCP tool call 示例
{
  "tool": "list_data_centers",
  "arguments": {}
}
返回结构
Schema: 响应 JSON
无展开字段。

list_deye_endpoints

列出内置的 DeyeCloud OpenAPI 接口摘要与请求体结构。

MCP tool 入参
MCP 参数类型必填说明
tagstring—按 tag 过滤。
keywordstring—按关键字过滤。
MCP tool call 示例
{
  "tool": "list_deye_endpoints",
  "arguments": {
    "tag": "station",
    "keyword": "station"
  }
}
返回结构
Schema: 响应 JSON
无展开字段。

search_product_knowledge

按型号检索德业产品技术资料:额定功率、MPPT、电压范围、效率、认证等参数。

MCP tool 入参
MCP 参数类型必填说明
querystring必填自然语言检索问题,建议带型号。
top_kinteger—返回的片段数量,1-20,默认 5。
context_modelsarray[string]—上一轮对话中的型号列表,用于“那它的电池电压呢”这类追问;不传则无法继承上下文。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—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 参数类型必填说明
querystring必填自然语言问题,可带型号,例如“怎么给电站添加采集器”。
top_kinteger—返回的片段数量,1-15,默认 5。
businessarray[string]—业务线,默认 DeyeCloud / DeyeEss / DeyeInverter;还支持 DeyeHumidifier 和 DeyeCommon(告警码库)。
context_modelsarray[string]—上一轮对话中的型号列表,用于“那它的电池电压呢”这类追问;不传则无法继承上下文。
access_tokenstring—可选,仅用于把检索归属到用户;不校验,过期也能查。
MCP tool call 示例
{
  "tool": "search_support_knowledge",
  "arguments": {
    "query": "怎么给电站添加采集器",
    "top_k": 5,
    "business": [
      "DeyeCloud"
    ],
    "context_models": []
  }
}
返回结构
Schema: 响应 JSON
无展开字段。

账号 3 个 MCP tools

account_info

查询账号所属的组织机构及账号在该组织中的角色。

MCP tool 入参
MCP 参数类型必填说明
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
MCP tool call 示例
{
  "tool": "account_info",
  "arguments": {
    "data_center": "eu"
  }
}
返回结构
Schema: AccountOrgInfoResponse
字段类型必填说明
codestring——
msgstring——
orgInfoListarray[AccountOrgInfo]—business member list
    companyIdinteger—int64
    companyNamestring——
    roleNamestring——
requestIdstring必填—
successboolean必填—

account_token

用账号邮箱或手机号获取访问令牌(底层接口,推荐用 get_access_token)。

MCP tool 入参
MCP 参数类型必填说明
app_idstring—Deye OpenAPI 应用 AppId。
app_secretstring—Deye OpenAPI 应用 AppSecret。
emailstring—Deye 账号邮箱。
passwordstring—Deye 账号密码(明文,服务端自动 SHA256)。
mobilestring—Deye 账号手机号(不含国家区号)。
country_codestring—国家区号,纯数字,例如 86。
data_centerstring—eu / am / india;未传使用服务端默认值。
company_idinteger/string—组织视角 companyId,取自 account/info 返回的 orgInfoList;业务成员需带它换取组织视角 token。
MCP tool call 示例
{
  "tool": "account_token",
  "arguments": {
    "app_id": "your_app_id",
    "app_secret": "your_app_secret",
    "email": "user@example.com",
    "password": "your_password",
    "mobile": "13255200000",
    "country_code": "86",
    "data_center": "eu",
    "company_id": 123456
  }
}
返回结构
Schema: response
字段类型必填说明
accessTokenstring——
codestring——
expiresInstring——
msgstring——
refreshTokenstring——
requestIdstring必填—
scopestring——
successboolean必填—
tokenTypestring——
uidinteger—int64

get_access_token

用 App 凭证和账号凭证获取 access_token;支持邮箱,或手机号加国家区号。

MCP tool 入参
MCP 参数类型必填说明
app_idstring—Deye OpenAPI 应用 AppId。
app_secretstring—Deye OpenAPI 应用 AppSecret。
emailstring—Deye 账号邮箱。
passwordstring—Deye 账号密码(明文,服务端自动 SHA256)。
mobilestring—Deye 账号手机号(不含国家区号)。
country_codestring—国家区号,纯数字,例如 86。
data_centerstring—eu / am / india;未传使用服务端默认值。
company_idinteger/string—组织视角 companyId,取自 account/info 返回的 orgInfoList;业务成员需带它换取组织视角 token。
MCP tool call 示例
{
  "tool": "get_access_token",
  "arguments": {
    "app_id": "your_app_id",
    "app_secret": "your_app_secret",
    "email": "user@example.com",
    "password": "your_password",
    "mobile": "13255200000",
    "country_code": "86",
    "data_center": "eu",
    "company_id": 123456
  }
}
返回结构
Schema: response
字段类型必填说明
accessTokenstring——
codestring——
expiresInstring——
msgstring——
refreshTokenstring——
requestIdstring必填—
scopestring——
successboolean必填—
tokenTypestring——
uidinteger—int64

电站 18 个 MCP tools

diagnose_station

诊断电站为什么不发电:检查设备、告警和最新功率。

MCP tool 入参
MCP 参数类型必填说明
station_idinteger/string必填电站 ID;get_station_snapshot 也可改用 station_name。
languagestring—返回语言,例如 en / zh。
timezone_offsetinteger—用户时区偏移小时数,例如中国为 8;用于把“今天”换算成电站当地日期。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—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_idinteger/string必填电站 ID;get_station_snapshot 也可改用 station_name。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
MCP tool call 示例
{
  "tool": "get_station_detail",
  "arguments": {
    "station_id": 123456,
    "data_center": "eu"
  }
}
返回结构
Schema: stationDetailResponse
字段类型必填说明
codestring——
msgstring——
requestIdstring必填—
stationStationDetailItem—电站详情
    batterySOCnumber—double
    connectionStatusstring——
    contactPhonestring——
    countryCodestring—country code (ISO 3166-1)
    createdDatestring—date-time
    generationPowernumber—double
    gridInterconnectionTypestring—gridInterconnectionType
    idinteger—int64
    installedCapacitynumber—double
    lastUpdateTimestring—lastUpdateTime of the station
    locationAddressstring——
    locationLatnumber—latitude
    locationLngnumber—longitude
    namestring——
    ownerNamestring——
    regionNationIdinteger—int64
    regionTimezonestring——
    startOperatingTimestring—date-time
successboolean必填—

get_station_energy_summary

查询电站按日汇总的发电、用电、充放电和上网电量,默认今天。

MCP tool 入参
MCP 参数类型必填说明
station_idinteger/string必填电站 ID;get_station_snapshot 也可改用 station_name。
start_datestring—开始日期,包含当天,格式 YYYY-MM-DD。
end_datestring—结束日期,包含当天,格式 YYYY-MM-DD;省略时等于开始日期。
timezone_offsetinteger—用户时区偏移小时数,例如中国为 8;用于把“今天”换算成电站当地日期。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—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_idinteger必填电站 ID;get_station_snapshot 也可改用 station_name。
start_datestring必填开始日期,包含当天,格式 YYYY-MM-DD。
end_datestring必填结束日期,包含当天,格式 YYYY-MM-DD;省略时等于开始日期。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—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_idinteger/string必填电站 ID;get_station_snapshot 也可改用 station_name。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
MCP tool call 示例
{
  "tool": "get_station_latest",
  "arguments": {
    "station_id": 123456,
    "data_center": "eu"
  }
}
返回结构
Schema: stationLatestDataResponse
字段类型必填说明
batteryPowernumber—double
batterySOCnumber—double
chargePowernumber—double
codestring——
consumptionPowernumber—double
dischargePowernumber—double
generationPowernumber—double
gridPowernumber—double
irradiateIntensitynumber—double
lastUpdateTimestring—date-time
msgstring——
purchasePowernumber—double
requestIdstring必填—
successboolean必填—
wirePowernumber—double

get_station_profit_money

查询电站每日收益与收入;电站需先在 DeyeCloud 配置电价。

MCP tool 入参
MCP 参数类型必填说明
station_idinteger必填电站 ID;get_station_snapshot 也可改用 station_name。
start_datestring必填开始日期,包含当天,格式 YYYY-MM-DD。
end_datestring必填结束日期,包含当天,格式 YYYY-MM-DD;省略时等于开始日期。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—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_idinteger/string—电站 ID;get_station_snapshot 也可改用 station_name。
station_namestring—电站名称;不知道 station_id 时可按名称精确或模糊匹配。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—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_idinteger/string必填电站 ID;get_station_snapshot 也可改用 station_name。
pageinteger—页码,默认 1。
sizeinteger—每页数量,默认 10。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
MCP tool call 示例
{
  "tool": "list_station_devices",
  "arguments": {
    "station_id": 123456,
    "page": 1,
    "size": 10,
    "data_center": "eu"
  }
}
返回结构
Schema: deviceListResponse
字段类型必填说明
codestring——
deviceListItemsarray[DeviceListItem]—deviceList
    collectionTimeinteger—last data updated time of the device
    connectStatusinteger—connction Status
    deviceIdinteger—unique identifier of device
    deviceSnstring——
    deviceTypestring——
    parentIdinteger—parent device id of this device, used to draw the device topology. Null for devices without a parent (e.g. inverter directly under station).
    productIdstring—3Phase High-Voltage Hybrid: 0_5412_1;3Phase Low-Voltage Hybrid: 0_5411_1;1Phase Hybrid:0_5407_1;
    stationIdinteger—int64
msgstring——
requestIdstring必填—
successboolean必填—
totalinteger—count of devices

list_stations

查询账号下的电站列表。

MCP tool 入参
MCP 参数类型必填说明
pageinteger—页码,默认 1。
sizeinteger—每页数量,默认 10。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
MCP tool call 示例
{
  "tool": "list_stations",
  "arguments": {
    "page": 1,
    "size": 10,
    "data_center": "eu"
  }
}
返回结构
Schema: stationListResponse
字段类型必填说明
codestring——
msgstring——
requestIdstring必填—
stationListarray[StationDetailItem]——
    batterySOCnumber—double
    connectionStatusstring——
    contactPhonestring——
    countryCodestring—country code (ISO 3166-1)
    createdDatestring—date-time
    generationPowernumber—double
    gridInterconnectionTypestring—gridInterconnectionType
    idinteger—int64
    installedCapacitynumber—double
    lastUpdateTimestring—lastUpdateTime of the station
    locationAddressstring——
    locationLatnumber—latitude
    locationLngnumber—longitude
    namestring——
    ownerNamestring——
    regionNationIdinteger—int64
    regionTimezonestring——
    startOperatingTimestring—date-time
successboolean必填—
totalinteger—total count of all stations

station_alert_list

查询单个电站在时间窗内的告警,含告警码、等级、原因和处理建议。

MCP tool 入参
MCP 参数类型必填说明
bodyBaseStationAlertListRequest—请求体参数,字段见下方 body 字段。
station_idinteger/string必填电站 ID;get_station_snapshot 也可改用 station_name。
start_timestampinteger/string必填时间窗起点,10 位 Unix 秒;也接受 ISO 8601 时间。
end_timestampinteger/string必填时间窗终点,10 位 Unix 秒;也接受 ISO 8601 时间。
pageinteger—页码,默认 1。
sizeinteger—每页数量,默认 10。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: BaseStationAlertListRequest
字段类型必填说明
endTimestampinteger必填int64
pageinteger—page number,default=1
sizeinteger—size for one page,max=200, default=20
startTimestampinteger必填int64
stationIdinteger必填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
字段类型必填说明
codestring——
msgstring——
requestIdstring必填—
stationAlertItemsarray[StationAlertItem]——
    alertCodestring—Alert protocol code
    alertEndTimeinteger—int64
    alertIdstring——
    alertNamestring—AlertName on DeyeCloud
    alertStartTimeinteger—int64
    deviceIdstring——
    deviceSnstring——
    deviceTypestring——
    impactinteger—Alert Impact.0-No Impact;1-Impact on Production;2-Impact on Safety;3-Impact on Production&Safety
    levelinteger—Alert Level(0:Notice,1:Warning,2:Failure)
    protocolNamestring—Alert protocol name
    statusinteger—Status:1-Open、0-Closed
successboolean必填—
totalinteger—total records

station_create

创建电站;货币用 ISO 4217 三位代码,时区用 IANA 名称。

MCP tool 入参
MCP 参数类型必填说明
bodyBaseStationCreateRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: BaseStationCreateRequest
字段类型必填说明
constructionCostnumber—double
contactPhonestring——
currencystring必填—
gridInterconnectionTypestring必填—
installationAzimuthAnglenumber—double
installationTiltAnglenumber—double
installedCapacitynumber必填double
locationAddressstring必填—
locationLatnumber必填station latitude
locationLngnumber必填station Longitude
mergeElectricPricenumber—unitPrice(currency/kWh)
namestring必填—
ownerCompanystring——
ownerNamestring——
regionRegion必填—
    countryCodestring必填—
    level1integer—int64
    level2integer—int64
    level3integer—int64
    level4integer—int64
    level5integer—int64
    nationIdinteger—int64
    timezonestring必填station timezone
startOperatingTimestring—date-time
stationImagestring——
typestring——
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
字段类型必填说明
codestring——
idinteger—stationId
msgstring——
requestIdstring必填—
successboolean必填—

station_detail

查询单个电站详情(底层封装,推荐用 get_station_detail)。

MCP tool 入参
MCP 参数类型必填说明
bodyrequest—请求体参数,字段见下方 body 字段。
station_idinteger/string必填电站 ID;get_station_snapshot 也可改用 station_name。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: request
字段类型必填说明
stationIdinteger必填电站ID
MCP tool call 示例
{
  "tool": "station_detail",
  "arguments": {
    "body": {
      "stationId": 123456
    },
    "station_id": 123456,
    "data_center": "eu"
  }
}
返回结构
Schema: stationDetailResponse
字段类型必填说明
codestring——
msgstring——
requestIdstring必填—
stationStationDetailItem—电站详情
    batterySOCnumber—double
    connectionStatusstring——
    contactPhonestring——
    countryCodestring—country code (ISO 3166-1)
    createdDatestring—date-time
    generationPowernumber—double
    gridInterconnectionTypestring—gridInterconnectionType
    idinteger—int64
    installedCapacitynumber—double
    lastUpdateTimestring—lastUpdateTime of the station
    locationAddressstring——
    locationLatnumber—latitude
    locationLngnumber—longitude
    namestring——
    ownerNamestring——
    regionNationIdinteger—int64
    regionTimezonestring——
    startOperatingTimestring—date-time
successboolean必填—

station_device

批量查询电站下的设备列表,需在 body 中传 stationIds。

MCP tool 入参
MCP 参数类型必填说明
bodydeviceListRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: deviceListRequest
字段类型必填说明
pageinteger—page,default:1
sizeinteger—size for one page,max:200,default:20
stationIdsarray[integer]必填stationIds
MCP tool call 示例
{
  "tool": "station_device",
  "arguments": {
    "body": {
      "page": 123456,
      "size": 123456,
      "stationIds": []
    },
    "data_center": "eu"
  }
}
返回结构
Schema: deviceListResponse
字段类型必填说明
codestring——
deviceListItemsarray[DeviceListItem]—deviceList
    collectionTimeinteger—last data updated time of the device
    connectStatusinteger—connction Status
    deviceIdinteger—unique identifier of device
    deviceSnstring——
    deviceTypestring——
    parentIdinteger—parent device id of this device, used to draw the device topology. Null for devices without a parent (e.g. inverter directly under station).
    productIdstring—3Phase High-Voltage Hybrid: 0_5412_1;3Phase Low-Voltage Hybrid: 0_5411_1;1Phase Hybrid:0_5407_1;
    stationIdinteger—int64
msgstring——
requestIdstring必填—
successboolean必填—
totalinteger—count of devices

station_history

查询电站按时间桶的历史数据(发电、用电、电池、电网);日期为电站当地日期。

MCP tool 入参
MCP 参数类型必填说明
bodyBaseStationHistoryDataRequest—请求体参数,字段见下方 body 字段。
station_idinteger/string必填电站 ID;get_station_snapshot 也可改用 station_name。
start_datestring—开始日期,包含当天,格式 YYYY-MM-DD。
end_datestring—结束日期,包含当天,格式 YYYY-MM-DD;省略时等于开始日期。
granularityinteger—时间桶粒度;1 表示按天,其他值由 DeyeCloud 定义。
pageinteger—页码,默认 1。
sizeinteger—每页数量,默认 10。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: BaseStationHistoryDataRequest
字段类型必填说明
endAtstring—End date
granularityinteger必填The granularity of the telemetry data.
startAtstring必填Start date
stationIdinteger必填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
字段类型必填说明
codestring——
msgstring——
requestIdstring必填—
stationDataItemsarray[StationDataItem]—station data item List
    batteryPowernumber—batteryPower
    batterySOCnumber—batterySOC
    chargePowernumber—chargePower
    chargeRationumber—chargeRatio
    chargeValuenumber—chargeValue
    consumptionDischargeRationumber—consumptionDischargeRatio
    consumptionPowernumber—consumptionPower
    consumptionRationumber—consumptionRatio
    consumptionValuenumber—consumptionValue
    cprnumber—cpr
    dayinteger—Date of data processed
    dischargePowernumber—dischargePower
    dischargeValuenumber—dischargeValue
    fullPowerHoursnumber—fullPowerHours
    generationPowernumber—generationPower
    generationRationumber—generationRatio
    generationValuenumber—generationValue
    gridPowernumber—gridPower
    gridRationumber—gridRatio
    gridValuenumber—gridValue
    irradiatenumber—irradiate
    irradiateIntensitynumber—irradiateIntensity
    monthinteger—Month of data processed
    prnumber—PR
    purchasePowernumber—purchasePower
    purchaseRationumber—purchaseRatio
    purchaseValuenumber—purchaseValue
    theoreticalGenerationnumber—theoreticalGeneration
    timeStampstring—timeStamp
    wirePowernumber—wirePower
    yearinteger—Year of data processed
successboolean必填—
totalinteger—total results

station_history_power

按时间戳查询电站功率曲线,适合“12:00 到 14:00 发生了什么”这类日内问题。

MCP tool 入参
MCP 参数类型必填说明
bodyBaseStationHistoryPowerRequest—请求体参数,字段见下方 body 字段。
station_idinteger/string必填电站 ID;get_station_snapshot 也可改用 station_name。
start_timestampinteger/string必填时间窗起点,10 位 Unix 秒;也接受 ISO 8601 时间。
end_timestampinteger/string必填时间窗终点,10 位 Unix 秒;也接受 ISO 8601 时间。
pageinteger—页码,默认 1。
sizeinteger—每页数量,默认 10。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: BaseStationHistoryPowerRequest
字段类型必填说明
endTimestampinteger必填int64
startTimestampinteger必填int64
stationIdinteger必填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
字段类型必填说明
codestring——
msgstring——
requestIdstring必填—
stationDataItemsarray[StationHistoryDataItem]——
    batteryPowernumber—batteryPower
    batterySOCnumber—batterySOC
    chargePowernumber—chargePower
    chargeRationumber—chargeRatio
    chargeValuenumber—chargeValue
    consumptionDischargeRationumber—consumptionDischargeRatio
    consumptionPowernumber—consumptionPower
    consumptionRationumber—consumptionRatio
    consumptionValuenumber—consumptionValue
    cprnumber—cpr
    dischargePowernumber—dischargePower
    dischargeValuenumber—dischargeValue
    fullPowerHoursnumber—fullPowerHours
    generationPowernumber—generationPower
    generationRationumber—generationRatio
    generationValuenumber—generationValue
    gridPowernumber—gridPower
    gridRationumber—gridRatio
    gridValuenumber—gridValue
    irradiatenumber—irradiate
    irradiateIntensitynumber—irradiateIntensity
    prnumber—PR
    purchasePowernumber—purchasePower
    purchaseRationumber—purchaseRatio
    purchaseValuenumber—purchaseValue
    theoreticalGenerationnumber—theoreticalGeneration
    timeStampstring—timeStamp
    wirePowernumber—wirePower
successboolean必填—
totalinteger—total results

station_latest

查询单个电站的最新数据(底层封装,推荐用 get_station_latest)。

MCP tool 入参
MCP 参数类型必填说明
bodyBaseStationRealTimeDataRequest—请求体参数,字段见下方 body 字段。
station_idinteger/string必填电站 ID;get_station_snapshot 也可改用 station_name。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: BaseStationRealTimeDataRequest
字段类型必填说明
stationIdinteger必填stationId
MCP tool call 示例
{
  "tool": "station_latest",
  "arguments": {
    "body": {
      "stationId": 123456
    },
    "station_id": 123456,
    "data_center": "eu"
  }
}
返回结构
Schema: stationLatestDataResponse
字段类型必填说明
batteryPowernumber—double
batterySOCnumber—double
chargePowernumber—double
codestring——
consumptionPowernumber—double
dischargePowernumber—double
generationPowernumber—double
gridPowernumber—double
irradiateIntensitynumber—double
lastUpdateTimestring—date-time
msgstring——
purchasePowernumber—double
requestIdstring必填—
successboolean必填—
wirePowernumber—double

station_list

查询账号下的电站列表(底层封装)。

MCP tool 入参
MCP 参数类型必填说明
bodyBaseStationListRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: BaseStationListRequest
字段类型必填说明
pageinteger—page,default value is 1
sizeinteger—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
字段类型必填说明
codestring——
msgstring——
requestIdstring必填—
stationListarray[StationDetailItem]——
    batterySOCnumber—double
    connectionStatusstring——
    contactPhonestring——
    countryCodestring—country code (ISO 3166-1)
    createdDatestring—date-time
    generationPowernumber—double
    gridInterconnectionTypestring—gridInterconnectionType
    idinteger—int64
    installedCapacitynumber—double
    lastUpdateTimestring—lastUpdateTime of the station
    locationAddressstring——
    locationLatnumber—latitude
    locationLngnumber—longitude
    namestring——
    ownerNamestring——
    regionNationIdinteger—int64
    regionTimezonestring——
    startOperatingTimestring—date-time
successboolean必填—
totalinteger—total count of all stations

station_list_with_device

查询账号下的电站列表,并同时返回每个电站的设备。

MCP tool 入参
MCP 参数类型必填说明
bodyBaseStationWithDeviceListRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: BaseStationWithDeviceListRequest
字段类型必填说明
deviceTypestring——
pageinteger—page,default value:1
sizeinteger—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
字段类型必填说明
codestring——
msgstring——
requestIdstring必填—
stationListarray[StationWithDeviceDetailItem]——
    contactPhonestring—contactPhone
    createdDatestring—createdDate
    deviceListItemsarray[DeviceListItem]—deviceListItems
        collectionTimeinteger—last data updated time of the device
        connectStatusinteger—connction Status
        deviceIdinteger—unique identifier of device
        deviceSnstring——
        deviceTypestring——
        parentIdinteger—parent device id of this device, used to draw the device topology. Null for devices without a parent (e.g. inverter directly under station).
        productIdstring—3Phase High-Voltage Hybrid: 0_5412_1;3Phase Low-Voltage Hybrid: 0_5411_1;1Phase Hybrid:0_5407_1;
        stationIdinteger—int64
    deviceTotalinteger—deviceTotal
    gridInterconnectionTypestring—gridInterconnectionType
    idinteger—stationID
    installedCapacitynumber—installedCapacity
    locationAddressstring—locationAddress
    locationLatnumber—Latitude
    locationLngnumber—Longitude
    namestring—stationName
    ownerNamestring—ownerName
    regionNationIdinteger—NationId
    regionTimezonestring—Timezone
    startOperatingTimestring—startOperatingTime
    typestring—stationType
stationTotalinteger—count of stations
successboolean必填—

设备 11 个 MCP tools

device_add_logger

把采集器添加到企业账号,单批最多 10 个。

MCP tool 入参
MCP 参数类型必填说明
bodyLoggerRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: LoggerRequest
字段类型必填说明
deviceSnsarray[string]——
MCP tool call 示例
{
  "tool": "device_add_logger",
  "arguments": {
    "body": {
      "deviceSns": []
    },
    "data_center": "eu"
  }
}
返回结构
Schema: BaseResponse
字段类型必填说明
codestring——
msgstring——
requestIdstring必填—
successboolean必填—

device_alert_list

查询单个设备在时间窗内的告警。

MCP tool 入参
MCP 参数类型必填说明
bodyDeviceAlertListRequest—请求体参数,字段见下方 body 字段。
device_snstring必填设备序列号(deviceSn)。
start_timestampinteger/string必填时间窗起点,10 位 Unix 秒;也接受 ISO 8601 时间。
end_timestampinteger/string必填时间窗终点,10 位 Unix 秒;也接受 ISO 8601 时间。
pageinteger—页码,默认 1。
sizeinteger—每页数量,默认 10。
languagestring—返回语言,例如 en / zh。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: DeviceAlertListRequest
字段类型必填说明
deviceSnstring——
deviceTypestring—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
endTimestampinteger必填int64
pageinteger—which page to display. default is 1 if not provided
sizeinteger—size of one page,default is 20, max is 100
startTimestampinteger必填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
字段类型必填说明
alertListarray[DeviceAlertItem]——
    alertCodestring—Alert protocol code
    alertEndTimeinteger—int64
    alertIdstring——
    alertNamestring—AlertName on DeyeCloud
    alertStartTimeinteger—int64
    descriptionstring—Alert description
    impactinteger—Alert Impact.0-No Impact;1-Impact on Production;2-Impact on Safety 3-Impact on Production&Safety
    levelinteger—Alert Level(0:Notice,1:Warning,2:Failure)
    protocolNamestring—Alert protocol name
    reasonstring—Alert reason
    solutionstring—Alert solution
    statusinteger—1:Open,0:Closed
codestring——
deviceIdinteger—int64
deviceSnstring必填—
deviceTypestring——
msgstring——
requestIdstring必填—
successboolean必填—
totalinteger—total records

device_delete_logger

从企业账号移除采集器,单批最多 10 个。

MCP tool 入参
MCP 参数类型必填说明
bodyLoggerRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: LoggerRequest
字段类型必填说明
deviceSnsarray[string]——
MCP tool call 示例
{
  "tool": "device_delete_logger",
  "arguments": {
    "body": {
      "deviceSns": []
    },
    "data_center": "eu"
  }
}
返回结构
Schema: BaseResponse
字段类型必填说明
codestring——
msgstring——
requestIdstring必填—
successboolean必填—

device_history

查询设备按时间桶的历史数据,可指定测点。

MCP tool 入参
MCP 参数类型必填说明
bodyDeviceHistoryDataRequest—请求体参数,字段见下方 body 字段。
device_snstring必填设备序列号(deviceSn)。
start_datestring—开始日期,包含当天,格式 YYYY-MM-DD。
end_datestring—结束日期,包含当天,格式 YYYY-MM-DD;省略时等于开始日期。
granularityinteger—时间桶粒度;1 表示按天,其他值由 DeyeCloud 定义。
measure_pointsarray[string]—要返回的测点 key 列表;省略时使用设备默认测点(可先用 device_measure_points 查询)。
pageinteger—页码,默认 1。
sizeinteger—每页数量,默认 10。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: DeviceHistoryDataRequest
字段类型必填说明
deviceSnstring必填—
deviceTypestring—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
endAtstring—Coule be null if granularity=1, Others is same with startAt
granularityinteger必填int32
measurePointsarray[string]——
startAtstring必填—
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
字段类型必填说明
codestring——
dataListarray[DeviceHistoryDataItem]—dataList
    itemListarray[Map«string,string»]——
    timestring——
deviceIdinteger—int64
deviceSnstring必填—
deviceTypestring——
granularityinteger—int32
msgstring——
requestIdstring必填—
successboolean必填—

device_history_raw

查询设备原始采样点,适合定位曲线在某个时刻的突变。

MCP tool 入参
MCP 参数类型必填说明
bodyDeviceHistoryPowerRequest—请求体参数,字段见下方 body 字段。
device_snstring必填设备序列号(deviceSn)。
start_timestampinteger/string必填时间窗起点,10 位 Unix 秒;也接受 ISO 8601 时间。
end_timestampinteger/string必填时间窗终点,10 位 Unix 秒;也接受 ISO 8601 时间。
measure_pointsarray[string]—要返回的测点 key 列表;省略时使用设备默认测点(可先用 device_measure_points 查询)。
pageinteger—页码,默认 1。
sizeinteger—每页数量,默认 10。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: DeviceHistoryPowerRequest
字段类型必填说明
deviceSnstring必填—
deviceTypestring—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
endTimestampinteger必填int64
measurePointsarray[string]必填—
startTimestampinteger必填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
字段类型必填说明
codestring——
dataListarray[DeviceHistoryDataItem]——
    itemListarray[Map«string,string»]——
    timestring——
deviceIdinteger—int64
deviceSnstring必填—
deviceTypestring——
msgstring——
requestIdstring必填—
successboolean必填—

device_latest

批量查询设备最新数据,单批最多 10 个。

MCP tool 入参
MCP 参数类型必填说明
bodylatestDataRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: latestDataRequest
字段类型必填说明
deviceListarray[string]必填—
deviceTypestring—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
字段类型必填说明
codestring——
deviceDataListarray[deviceLatestData]——
    collectionTimeinteger—data collection time(Unix Timestamp in seconds)
    dataListarray[data]—dataList
        keystring—name of the data
        unitstring—unit of the data
        valuestring—value of the data
    deviceSnstring必填—
    deviceStateinteger—deviceState.value:1.Online 2.Alert 3.Offline
    deviceTypestring——
msgstring——
requestIdstring必填—
successboolean必填—

device_list

查询企业账号下的设备列表。

MCP tool 入参
MCP 参数类型必填说明
bodyDeviceListRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: DeviceListRequest
字段类型必填说明
pageinteger—page number,default=1
sizeinteger—page size,max:200, default=20
MCP tool call 示例
{
  "tool": "device_list",
  "arguments": {
    "body": {
      "page": 123456,
      "size": 123456
    },
    "data_center": "eu"
  }
}
返回结构
Schema: DeviceListResponse
字段类型必填说明
codestring——
deviceListarray[DeviceDetailItem]—deviceList
    deviceSnstring——
    deviceStateinteger—deviceState. 1.Online 2.Alert 3.Offlien
    deviceTypestring——
    productIdstring——
    updateTimeinteger—updateTime for the last data
msgstring——
requestIdstring必填—
successboolean必填—
totalinteger—count of devices

device_measure_points

查询设备支持的测点 key,可配合 device_history 使用。

MCP tool 入参
MCP 参数类型必填说明
bodyDeviceMeasurePointsRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: DeviceMeasurePointsRequest
字段类型必填说明
deviceSnstring必填—
deviceTypestring—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
字段类型必填说明
codestring——
deviceSnstring——
deviceTypestring——
measurePointsarray[string]——
msgstring——
productIdstring——
requestIdstring必填—
successboolean必填—
timeZonestring——

device_register

把采集器注册到指定电站。

MCP tool 入参
MCP 参数类型必填说明
bodyDeviceRegisterRequest—请求体参数,字段见下方 body 字段。
languagestring—返回语言,例如 en / zh。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: DeviceRegisterRequest
字段类型必填说明
deviceSnstring必填deviceSn cannot be empty
gatewaySnstring必填—
stationIdinteger必填int64
MCP tool call 示例
{
  "tool": "device_register",
  "arguments": {
    "body": {
      "deviceSn": "string",
      "gatewaySn": "string",
      "stationId": 123456
    },
    "language": "en",
    "data_center": "eu"
  }
}
返回结构
Schema: DeviceRegisterResponse
字段类型必填说明
codestring——
gatewayIdinteger—int64
msgstring——
requestIdstring必填—
successboolean必填—

get_device_latest

按设备 SN 批量查询最新测量值,最多 10 个。

MCP tool 入参
MCP 参数类型必填说明
device_listarray[string]必填设备 SN 列表,单批最多 10 个。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
MCP tool call 示例
{
  "tool": "get_device_latest",
  "arguments": {
    "device_list": [
      "2212228299"
    ],
    "data_center": "eu"
  }
}
返回结构
Schema: latestDataResponse
字段类型必填说明
codestring——
deviceDataListarray[deviceLatestData]——
    collectionTimeinteger—data collection time(Unix Timestamp in seconds)
    dataListarray[data]—dataList
        keystring—name of the data
        unitstring—unit of the data
        valuestring—value of the data
    deviceSnstring必填—
    deviceStateinteger—deviceState.value:1.Online 2.Alert 3.Offline
    deviceTypestring——
msgstring——
requestIdstring必填—
successboolean必填—

list_devices

查询企业账号下的设备列表(推荐入口)。

MCP tool 入参
MCP 参数类型必填说明
pageinteger—页码,默认 1。
sizeinteger—每页数量,默认 10。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
MCP tool call 示例
{
  "tool": "list_devices",
  "arguments": {
    "page": 1,
    "size": 10,
    "data_center": "eu"
  }
}
返回结构
Schema: DeviceListResponse
字段类型必填说明
codestring——
deviceListarray[DeviceDetailItem]—deviceList
    deviceSnstring——
    deviceStateinteger—deviceState. 1.Online 2.Alert 3.Offlien
    deviceTypestring——
    productIdstring——
    updateTimeinteger—updateTime for the last data
msgstring——
requestIdstring必填—
successboolean必填—
totalinteger—count of devices

配置 3 个 MCP tools

config_battery

读取电池参数:低电量/关机 SOC、最大充电电流和最大放电电流。

MCP tool 入参
MCP 参数类型必填说明
bodyDeviceConfigPointRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: DeviceConfigPointRequest
字段类型必填说明
deviceSnstring必填—
MCP tool call 示例
{
  "tool": "config_battery",
  "arguments": {
    "body": {
      "deviceSn": "12583SS"
    },
    "data_center": "eu"
  }
}
返回结构
Schema: DeviceBatterySettingsResponse
字段类型必填说明
battCapacityinteger—int64
battLowCapacityinteger—int64
battShutDownCapacityinteger—int64
codestring——
maxChargeCurrentinteger—int64
maxDischargeCurrentinteger—int64
msgstring——
requestIdstring必填—
successboolean必填—

config_system

读取系统工作模式相关参数。

MCP tool 入参
MCP 参数类型必填说明
bodyDeviceConfigPointRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: DeviceConfigPointRequest
字段类型必填说明
deviceSnstring必填—
MCP tool call 示例
{
  "tool": "config_system",
  "arguments": {
    "body": {
      "deviceSn": "12583SS"
    },
    "data_center": "eu"
  }
}
返回结构
Schema: DeviceSystemWorkModeResponse
字段类型必填说明
codestring——
energyPatternstring——
maxSellPowerinteger—int64
maxSolarPowerinteger—int64
msgstring——
requestIdstring必填—
successboolean必填—
systemWorkModestring——
zeroExportPowerinteger—int64

config_tou

读取分时电价(TOU)配置。

MCP tool 入参
MCP 参数类型必填说明
bodyDeviceConfigPointRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: DeviceConfigPointRequest
字段类型必填说明
deviceSnstring必填—
MCP tool call 示例
{
  "tool": "config_tou",
  "arguments": {
    "body": {
      "deviceSn": "12583SS"
    },
    "data_center": "eu"
  }
}
返回结构
Schema: DeviceTimeOfUseResponse
字段类型必填说明
codestring——
msgstring——
requestIdstring必填—
successboolean必填—
timeUseSettingItemsarray[TimeOfUseItem]——
    enableGenerationboolean必填Want to enableGenaration set true otherwise set false
    enableGridChargeboolean必填Want to enableGridCharge set true otherwise set false
    powerinteger必填int32
    socinteger—int32
    timestring必填—
    voltageinteger—If enabled batterty voltage mode, this field should be set.
touActionstring——

控制 15 个 MCP tools

get_order_result

按 orderId 查询控制命令的执行结果(推荐入口)。

MCP tool 入参
MCP 参数类型必填说明
order_idstring必填控制命令的 orderId。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
MCP tool call 示例
{
  "tool": "get_order_result",
  "arguments": {
    "order_id": 123456,
    "data_center": "eu"
  }
}
返回结构
Schema: OrderRecordResponse
字段类型必填说明
analysisResultstring——
codestring——
createByinteger—int64
createTimestring—date-time
deviceTimezonestring—device zone
errorstring—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
msgstring——
orderIdinteger—int64
orderResultstring——
requestIdstring必填—
statusinteger—0:To be sent 100:Sending 300:during upgrade 400:Terminated 500:Failed 666:Succeeded
successboolean必填—
updateTimestring—date-time

order_battery_mode_control

开启或关闭电池充电模式。

MCP tool 入参
MCP 参数类型必填说明
bodyBaseDeviceOrderBatteryModeActionRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: BaseDeviceOrderBatteryModeActionRequest
字段类型必填说明
actionstring必填action=on:enable, action=off:disable
batteryModeTypestring必填—
deviceSnstring必填—
MCP tool call 示例
{
  "tool": "order_battery_mode_control",
  "arguments": {
    "body": {
      "action": "on",
      "batteryModeType": "string",
      "deviceSn": "string"
    },
    "data_center": "eu"
  }
}
返回结构
Schema: DeviceControlResponse
字段类型必填说明
codestring——
collectionTimeinteger—colletionTime for latest data(Unix Timestamp in seconds)
connectionStatusinteger—connectionStatus 0:Offline 1:Online
msgstring——
orderIdinteger—int64
requestIdstring必填—
successboolean必填—

order_battery_parameter_update

修改电池相关参数。

MCP tool 入参
MCP 参数类型必填说明
bodyBaseDeviceOrderBatterySetPointRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: BaseDeviceOrderBatterySetPointRequest
字段类型必填说明
deviceSnstring必填—
paramterTypestring必填—
valueinteger必填int64
MCP tool call 示例
{
  "tool": "order_battery_parameter_update",
  "arguments": {
    "body": {
      "deviceSn": "string",
      "paramterType": "string",
      "value": 123456
    },
    "data_center": "eu"
  }
}
返回结构
Schema: DeviceControlResponse
字段类型必填说明
codestring——
collectionTimeinteger—colletionTime for latest data(Unix Timestamp in seconds)
connectionStatusinteger—connectionStatus 0:Offline 1:Online
msgstring——
orderIdinteger—int64
requestIdstring必填—
successboolean必填—

order_battery_type_update

设置电池类型,例如 LI、BATT_V、BATT_SOC 或 NO_BATTERY。

MCP tool 入参
MCP 参数类型必填说明
bodyBaseDeviceOrderBatteryTypeSetRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: BaseDeviceOrderBatteryTypeSetRequest
字段类型必填说明
batteryTypestring必填—
deviceSnstring必填—
MCP tool call 示例
{
  "tool": "order_battery_type_update",
  "arguments": {
    "body": {
      "batteryType": "BATT_V",
      "deviceSn": "string"
    },
    "data_center": "eu"
  }
}
返回结构
Schema: DeviceControlResponse
字段类型必填说明
codestring——
collectionTimeinteger—colletionTime for latest data(Unix Timestamp in seconds)
connectionStatusinteger—connectionStatus 0:Offline 1:Online
msgstring——
orderIdinteger—int64
requestIdstring必填—
successboolean必填—

order_by_order_id

按 orderId 查询控制命令的执行结果(底层封装)。

MCP tool 入参
MCP 参数类型必填说明
order_idinteger/string必填控制命令的 orderId。
languagestring—返回语言,例如 en / zh。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
MCP tool call 示例
{
  "tool": "order_by_order_id",
  "arguments": {
    "order_id": 123456,
    "language": "en",
    "data_center": "eu"
  }
}
返回结构
Schema: OrderRecordResponse
字段类型必填说明
analysisResultstring——
codestring——
createByinteger—int64
createTimestring—date-time
deviceTimezonestring—device zone
errorstring—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
msgstring——
orderIdinteger—int64
orderResultstring——
requestIdstring必填—
statusinteger—0:To be sent 100:Sending 300:during upgrade 400:Terminated 500:Failed 666:Succeeded
successboolean必填—
updateTimestring—date-time

order_custom_control

按 Modbus 协议下发自定义控制命令;需要对照机型协议手册填写。

MCP tool 入参
MCP 参数类型必填说明
bodyDeviceCustomControlRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: DeviceCustomControlRequest
字段类型必填说明
contentstring必填modus protocol command
deviceSnstring必填—
timeoutSecondsinteger—range,10~600
MCP tool call 示例
{
  "tool": "order_custom_control",
  "arguments": {
    "body": {
      "content": "0103000102ABCD",
      "deviceSn": "string",
      "timeoutSeconds": 123456
    },
    "data_center": "eu"
  }
}
返回结构
Schema: DeviceControlResponse
字段类型必填说明
codestring——
collectionTimeinteger—colletionTime for latest data(Unix Timestamp in seconds)
connectionStatusinteger—connectionStatus 0:Offline 1:Online
msgstring——
orderIdinteger—int64
requestIdstring必填—
successboolean必填—

order_grid_peak_shaving_control

开启或关闭电网削峰;开启后并网功率会被限制在设定值内。

MCP tool 入参
MCP 参数类型必填说明
bodyBaseDeviceGridPeakShavingControlRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: BaseDeviceGridPeakShavingControlRequest
字段类型必填说明
actionstring必填—
deviceSnstring必填—
powerinteger必填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
字段类型必填说明
codestring——
collectionTimeinteger—colletionTime for latest data(Unix Timestamp in seconds)
connectionStatusinteger—connectionStatus 0:Offline 1:Online
msgstring——
orderIdinteger—int64
requestIdstring必填—
successboolean必填—

order_smartload_update

修改智能负载参数。

MCP tool 入参
MCP 参数类型必填说明
bodyBaseDeviceSmartLoadRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: BaseDeviceSmartLoadRequest
字段类型必填说明
deviceSnstring必填—
deviceTypestring—default is INVERTER Options: INVERTER;MICRO_INVERTER;MICRO_STORAGE_IN_ONE;MECD
offSOCinteger—smartload off battery SOC
offVoltageinteger—smartload off battery voltage
onGridAlwaysOnboolean—true-enable 'on grid alwasys on'; false-disable 'on grid alwasys on'
onSOCinteger—smartload on battery SOC
onVoltageinteger—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
字段类型必填说明
codestring——
collectionTimeinteger—colletionTime for latest data(Unix Timestamp in seconds)
connectionStatusinteger—connectionStatus 0:Offline 1:Online
msgstring——
orderIdinteger—int64
requestIdstring必填—
successboolean必填—

order_sys_energy_pattern_update

设置能量分配策略:BATTERY_FIRST 或 LOAD_FIRST。

MCP tool 入参
MCP 参数类型必填说明
bodyBaseDeviceOrderSysEnergyPatternRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: BaseDeviceOrderSysEnergyPatternRequest
字段类型必填说明
deviceSnstring必填—
energyPatternstring必填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
字段类型必填说明
codestring——
collectionTimeinteger—colletionTime for latest data(Unix Timestamp in seconds)
connectionStatusinteger—connectionStatus 0:Offline 1:Online
msgstring——
orderIdinteger—int64
requestIdstring必填—
successboolean必填—

order_sys_limit_control

设置并网限功率策略(如 SELL_FIRST、ZERO_EXPORT_TO_CT);仅部分机型支持。

MCP tool 入参
MCP 参数类型必填说明
bodyDeviceLimitControlFunctionRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: DeviceLimitControlFunctionRequest
字段类型必填说明
deviceSnstring必填—
limitControlFunctionTypestring必填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
字段类型必填说明
codestring——
collectionTimeinteger—colletionTime for latest data(Unix Timestamp in seconds)
connectionStatusinteger—connectionStatus 0:Offline 1:Online
msgstring——
orderIdinteger—int64
requestIdstring必填—
successboolean必填—

order_sys_power_update

设置最大售电功率、最大光伏功率或零输出功率。

MCP tool 入参
MCP 参数类型必填说明
bodyBaseDeviceOrderSysSetPointRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: BaseDeviceOrderSysSetPointRequest
字段类型必填说明
deviceSnstring必填—
powerTypestring必填—
valueinteger必填int64
MCP tool call 示例
{
  "tool": "order_sys_power_update",
  "arguments": {
    "body": {
      "deviceSn": "string",
      "powerType": "string",
      "value": 123456
    },
    "data_center": "eu"
  }
}
返回结构
Schema: DeviceControlResponse
字段类型必填说明
codestring——
collectionTimeinteger—colletionTime for latest data(Unix Timestamp in seconds)
connectionStatusinteger—connectionStatus 0:Offline 1:Online
msgstring——
orderIdinteger—int64
requestIdstring必填—
successboolean必填—

order_sys_solar_sell_control

开启或关闭余电上网。

MCP tool 入参
MCP 参数类型必填说明
bodyBaseDeviceOrderSolarSellControlRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: BaseDeviceOrderSolarSellControlRequest
字段类型必填说明
actionstring必填action=on:enable solar sell, action=off:disable soalr sell
deviceSnstring必填—
MCP tool call 示例
{
  "tool": "order_sys_solar_sell_control",
  "arguments": {
    "body": {
      "action": "on",
      "deviceSn": "string"
    },
    "data_center": "eu"
  }
}
返回结构
Schema: DeviceControlResponse
字段类型必填说明
codestring——
collectionTimeinteger—colletionTime for latest data(Unix Timestamp in seconds)
connectionStatusinteger—connectionStatus 0:Offline 1:Online
msgstring——
orderIdinteger—int64
requestIdstring必填—
successboolean必填—

order_sys_tou_switch

开启或关闭分时电价(TOU)功能。

MCP tool 入参
MCP 参数类型必填说明
bodyBaseDeviceOrderTOUSwitchRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: BaseDeviceOrderTOUSwitchRequest
字段类型必填说明
actionstring必填—
daysarray[string]—If action is on, fill this field with the days of the week you want to switch on
deviceSnstring必填—
MCP tool call 示例
{
  "tool": "order_sys_tou_switch",
  "arguments": {
    "body": {
      "action": "on",
      "days": [],
      "deviceSn": "string"
    },
    "data_center": "eu"
  }
}
返回结构
Schema: DeviceControlResponse
字段类型必填说明
codestring——
collectionTimeinteger—colletionTime for latest data(Unix Timestamp in seconds)
connectionStatusinteger—connectionStatus 0:Offline 1:Online
msgstring——
orderIdinteger—int64
requestIdstring必填—
successboolean必填—

order_sys_tou_update

设置分时电价(TOU)时段。

MCP tool 入参
MCP 参数类型必填说明
bodyBaseDeviceOrderTOUSetRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: BaseDeviceOrderTOUSetRequest
字段类型必填说明
deviceSnstring必填—
timeUseSettingItemsarray[TimeUseSettingItem]必填set the strategy for 6 time intervals.Have to be passed in sequence
    enableGenerationboolean必填Want to enableGeneration set true otherwise set false
    enableGridChargeboolean必填Want to enableGridCharge set true otherwise set false
    enableSellboolean—Want to enableSell set true otherwise set false
    powerinteger必填int32
    socinteger—int32
    timestring必填—
    voltageinteger—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
字段类型必填说明
codestring——
collectionTimeinteger—colletionTime for latest data(Unix Timestamp in seconds)
connectionStatusinteger—connectionStatus 0:Offline 1:Online
msgstring——
orderIdinteger—int64
requestIdstring必填—
successboolean必填—

order_sys_work_mode_update

设置系统工作模式,例如 SELLING_FIRST 或 ZERO_EXPORT_TO_LOAD。

MCP tool 入参
MCP 参数类型必填说明
bodyBaseDeviceOrderSysWorkModeRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: BaseDeviceOrderSysWorkModeRequest
字段类型必填说明
deviceSnstring必填—
workModestring必填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
字段类型必填说明
codestring——
collectionTimeinteger—colletionTime for latest data(Unix Timestamp in seconds)
connectionStatusinteger—connectionStatus 0:Offline 1:Online
msgstring——
orderIdinteger—int64
requestIdstring必填—
successboolean必填—

策略 3 个 MCP tools

strategy_dynamic_control

下发动态控制策略;未设置的参数保持原值。

MCP tool 入参
MCP 参数类型必填说明
bodyBaseDynamicControlRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: BaseDynamicControlRequest
字段类型必填说明
deviceSnstring必填—
gridChargeActionstring—gridChargeAction has to be one of on;off
gridChargeAmpereinteger—int64
maxSellPowerinteger—int64
maxSolarPowerinteger—int64
solarSellActionstring—solarSellAction has to be one of on;off
timeUseSettingItemsarray[TimeUseSettingItem]—set the strategy for 6 time intervals.Have to be passed in sequence
    enableGenerationboolean必填Want to enableGeneration set true otherwise set false
    enableGridChargeboolean必填Want to enableGridCharge set true otherwise set false
    enableSellboolean—Want to enableSell set true otherwise set false
    powerinteger必填int32
    socinteger—int32
    timestring必填—
    voltageinteger—If enabled battery voltage mode, this field should be set.
touActionstring—touAction has to be one of on;off
touDaysarray[string]—If action is on, fill this field with the days of the week you want to switch on
workModestring—options:SELLING_FIRST;ZERO_EXPORT_TO_LOAD;ZERO_EXPORT_TO_CT
zeroExportPowerinteger—int64
MCP tool call 示例
{
  "tool": "strategy_dynamic_control",
  "arguments": {
    "body": {
      "deviceSn": "string",
      "gridChargeAction": "on",
      "gridChargeAmpere": 123456,
      "maxSellPower": 123456,
      "maxSolarPower": 123456
    },
    "data_center": "eu"
  }
}
返回结构
Schema: DeviceControlResponse
字段类型必填说明
codestring——
collectionTimeinteger—colletionTime for latest data(Unix Timestamp in seconds)
connectionStatusinteger—connectionStatus 0:Offline 1:Online
msgstring——
orderIdinteger—int64
requestIdstring必填—
successboolean必填—

strategy_dynamic_control_read

下发读取动态控制参数的指令,随后用 read_result 查询结果。

MCP tool 入参
MCP 参数类型必填说明
bodyDynamicReadRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: DynamicReadRequest
字段类型必填说明
deviceSnstring必填—
MCP tool call 示例
{
  "tool": "strategy_dynamic_control_read",
  "arguments": {
    "body": {
      "deviceSn": "string"
    },
    "data_center": "eu"
  }
}
返回结构
Schema: DeviceControlResponse
字段类型必填说明
codestring——
collectionTimeinteger—colletionTime for latest data(Unix Timestamp in seconds)
connectionStatusinteger—connectionStatus 0:Offline 1:Online
msgstring——
orderIdinteger—int64
requestIdstring必填—
successboolean必填—

strategy_dynamic_control_read_result

查询动态控制参数的读取结果;需先调用 read 获取 orderId。

MCP tool 入参
MCP 参数类型必填说明
bodyDynamicReadResultRequest—请求体参数,字段见下方 body 字段。
access_tokenstring—可选;建议传入 get_access_token / account_token 返回的 token。
data_centerstring—eu / am / india;未传使用服务端默认值。
body 字段
Schema: DynamicReadResultRequest
字段类型必填说明
orderIdinteger—int64
MCP tool call 示例
{
  "tool": "strategy_dynamic_control_read_result",
  "arguments": {
    "body": {
      "orderId": 123456
    },
    "data_center": "eu"
  }
}
返回结构
Schema: BaseDynamicConfigResponse
字段类型必填说明
codestring——
gridChargeActionstring—gridChargeAction has to be one of on;off
gridChargeAmpereinteger—int64
maxChargeCurrentinteger—int64
maxDischargeCurrentinteger—int64
maxSellPowerinteger—int64
maxSolarPowerinteger—int64
msgstring——
requestIdstring必填—
solarSellActionstring—solarSellAction has to be one of on;off
successboolean必填—
timeUseSettingItemsarray[TimeUseSettingItem]—set the strategy for 6 time intervals.Have to be passed in sequence
    enableGenerationboolean必填Want to enableGeneration set true otherwise set false
    enableGridChargeboolean必填Want to enableGridCharge set true otherwise set false
    enableSellboolean—Want to enableSell set true otherwise set false
    powerinteger必填int32
    socinteger—int32
    timestring必填—
    voltageinteger—If enabled battery voltage mode, this field should be set.
touActionstring—touAction has to be one of on;off
touDaysarray[string]—If action is on, fill this field with the days of the week you want to switch on
workModestring—options:SELLING_FIRST;ZERO_EXPORT_TO_LOAD;ZERO_EXPORT_TO_CT
zeroExportPowerinteger—int64