查询 MCP 服务支持的系统工具。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /mcpSystemTools HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| maxResults |
integer |
否 |
分页查询时每页的最大条目数。最大值为 100。默认值为 20。 |
20 |
| skip |
integer |
否 |
跳过的数据数量。 |
5 |
| nextToken |
string |
否 |
下一个查询开始 Token,取值为上一次 API 调用返回的 NextToken 参数值。 说明
第一次查询不需要提供本参数,如果一次查询没有返回全部结果,则可在后续查询中传入前一次返回的 NextToken 值以继续查询。 |
AAAAAZjtYxxxxxxxx |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
请求结果。 |
||
| requestId |
string |
请求 ID。 |
9BFC4AC1-6BE4-5405-BDEC-CA288D404812 |
| nextToken |
string |
返回的 NextToken,用来返回更多结果。 说明
如果这个值没有返回,则说明没有更多结果。 |
AAAAAZjtYxxxxxxxx |
| maxResults |
integer |
分页查询时每页的最大条目数。最大值为 100。默认值为 20。 |
20 |
| totalCount |
integer |
数据总记录数。 |
22 |
| systemTools |
array<object> |
系统工具列表。 |
|
|
object |
系统工具。 |
||
| name |
string |
系统工具名称 |
mcp-system |
| description |
string |
系统工具的描述信息。 |
system tool description |
示例
正常返回示例
JSON格式
{
"requestId": "9BFC4AC1-6BE4-5405-BDEC-CA288D404812",
"nextToken": "AAAAAZjtYxxxxxxxx",
"maxResults": 20,
"totalCount": 22,
"systemTools": [
{
"name": "mcp-system",
"description": "system tool description"
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParam.NextToken | The specified NextToken is not valid. | 指定的nextToken无效。 |
| 500 | InternalServerError | The request has failed due to a temporary failure of the server. | 由于服务器暂时故障,请求失败。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。