1.6 KiB
1.6 KiB
title, created, updated, type, tags, sources
| title | created | updated | type | tags | sources | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| Active Tool Request — 结构化工具请求 | 2026-06-19 | 2026-06-19 | concept |
|
|
Active Tool Request
定义
Active Tool Request 是 MCP-Zero 的核心机制:当 Agent 识别到能力缺口时,自主生成结构化工具请求,而非从预选列表中被动选择。
请求格式
<tool_assistant>
server: File system allowing file operations
tool: Read file by filename
</tool_assistant>
两个字段:
- server:平台/权限域要求(与 MCP server 描述对齐)
- tool:操作类型 + 目标(与 tool description 对齐)
为什么比用户查询更好
MCP-Zero 的理论分析证明:
cos(e_request, e_tool_description) > cos(e_query, e_tool_description)
Agent 生成的请求在工具文档的语义空间中,天然比原始用户查询更对齐。用户可能说"帮我修 bug",Agent 能精确表达"需要读取文件的 API"。
与传统方案的对比
| System Prompt 注入 | 检索增强 | Active Tool Request | |
|---|---|---|---|
| 请求者 | 预设 | 用户查询匹配 | Agent 自主 |
| 语义对齐 | N/A | 低(user→tool 语义差) | 高(request→tool 对齐) |
| 多轮 | N/A | 基于首轮 | 每步可独立请求 |
多轮能力
Agent 可在同一次对话中生成多个独立请求,每次触发独立的检索过程——天然支持跨域 toolchain 构建。