MCP server插件的工具配置参数中是支持配置outputSchema,这样工具调用结果中就能获取到structuredContent,但是官方文档中并没看到对这个outputSchema参数的解释和使用示例,这个参数是以后会废弃掉么? || The tool configuration parameter of the MCP server plug-in supports configuring outputSchema, so that structuredContent can be obtained in the tool call result. However, there is no explanation and usage example of this outputSchema parameter in the official document. Will this parameter be abandoned in the future? #3311
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
工具配置如下:
name: "activateRuleEngine"
requestTemplate:
method: "GET"
url: "https://api.example.com/uts-kong/webapi/v1/strategy/custom/active"
outputSchema:
description: "创建成功"
properties:
msg:
description: "调用信息"
type: "string"
status:
description: "状态码"
type: "integer"
type: "object"
responseTemplate:
prependBody: |-
# 以下是应用配置的返回结果说明,以JSON格式返回。字段说明:
- 参数名称: status, 参数类型: integer, 参数描述: 响应状态码
- 参数名称:msg, 参数类型:string, 参数描述:执行成功或者失败的提示信息
# 原始JSON响应:
The tool configuration is as follows:
name: "activateRuleEngine"
requestTemplate:
method: "GET"
url: "https://api.example.com/uts-kong/webapi/v1/strategy/custom/active"
outputSchema:
description: "Created successfully"
properties:
msg:
description: "Call information"
type: "string"
status:
description: "Status code"
type: "integer"
type: "object"
responseTemplate:
prependBody: |-
# The following is the return result description of the application configuration, returned in JSON format. Field description:
- Parameter name: status, parameter type: integer, parameter description: response status code
- Parameter name: msg, parameter type: string, parameter description: prompt information on success or failure of execution
# Original JSON response:
Beta Was this translation helpful? Give feedback.
All reactions