Octri

describe_tool

返回最多五个操作的完整描述和输入架构。代理在找到操作到调用操作之间会读取的内容:每个参数、哪些参数是必需的,以及调用是否会先询问用户。

何时会列出

在搜索模式下:当工具模式为 search,或者为 auto 且服务器上的操作工具数量超过搜索阈值(默认 40,可自行更改)时。它们会替代列表中的操作工具。请参阅搜索模式和代码模式。

参数

namesarray of strings必填

一个到五个操作名称,必须与 search_tools 输出的完全一致。

返回值

每个操作对应一个部分:方法和路径、分组、是否会先询问或更改数据、描述,以及以 JSON 格式表示的输入架构。

提示

客户端读取的注释,用于判断哪些操作可以在不询问用户的情况下运行。

提示值为 true 时,表示
readOnlyHinttrue不会更改任何内容
openWorldHintfalse会通过网络访问服务器之外的资源

示例

描述一个操作

Call
{
  "name": "describe_tool",
  "arguments": {
    "names": [
      "cancelSubscription"
    ]
  }
}
Result
## cancelSubscription
POST /subscriptions/{subscriptionId}/cancel · group: Subscriptions · asks the user to approve each call · can change or delete data

Cancel a subscription

Each call asks the user to approve it first. If they decline, do not retry unless they ask you to.

Input schema: {"type":"object","properties":{"subscriptionId":{"type":"string"},"body":{"type":"object","properties":{"atPeriodEnd":{"type":"boolean","description":"Keep the subscription running until the period it has already been billed for is over."},"reason":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false,"required":["subscriptionId"]}

Run one with call_tool.