工具发现
discover_tools
列出所有工具、已配置的来源,以及所选来源端点及其参数 schema。
列出所有工具、已配置的来源,以及所选来源端点及其参数 schema。不含凭据。
以上是服务端发布的英文描述的译文;英文原文见英文页。工具名、参数名和取值保持原样。
| 字段 | 值 |
|---|---|
| 工具包 | Core (core) |
| 每次调用的预估成本 | $0 |
| 工具包每月上限 | 无 |
| 项目 | 按顺序确定:显式的 project → 请求头 → 凭据默认项目 → 工作区默认项目 |
参数
这个工具没有参数。
示例调用
{}REST:POST https://service.opennomos.com/v1/tools/discover_tools,以上 JSON 作为请求体。MCP:tools/call,name: "discover_tools",以上 JSON 作为 arguments。
示例结果
示例里的值是示意性的;结构来自服务端代码。
{
"tools": [
{
"name": "discover_tools",
"summary": "List all tools, configured sources and the selected source endpoints with their parameter schemas"
},
{
"name": "search_signals",
"summary": "Search public conversations and the web with the caller's query"
},
"…"
],
"sources": {
"web": true,
"reddit": true,
"x": true,
"xiaohongshu": true,
"zhihu": true,
"weibo": true,
"page": true
},
"source_endpoints": {
"web": {
"id": "monid.web",
"inputSchema": "…"
},
"reddit": "…"
}
}说明
- 这就是快速开始里的验证调用:它用 Core 工具包,不调用任何付费服务商,不创建项目,也不写入记忆。
tools只列出所在工具包已为该工作区启用的工具。sources说明某个来源是否配置了上游密钥(true/false)。summary是每个工具描述的第一句话。要看完整契约,调用inspect_tool。
错误
被拒绝的调用(输入有误、id 未知、触发限流)返回 message 和 code;走 MCP 时结果带 isError: true。见错误。