Auto-sync: 2026-04-21 00:02

This commit is contained in:
2026-04-21 00:02:55 +08:00
parent 177469a1cd
commit cb7c11e14f
235 changed files with 16567 additions and 237 deletions

View File

@@ -0,0 +1,20 @@
---
title: "MCP工具接口设计"
type: concept
tags: [ai, mcp, design, tool-design]
date: 2026-04-20
---
## Definition
以 Agent 为用户来设计 MCP 工具接口的规范,强调 verb_noun 命名、清晰描述、单一职责、可预测参数和结构化输出。
## Principles
- 工具名应使用 verb_noun 形式,例如 `search_tickets`
- 描述应说明何时使用,而不是只说它是什么
- 每个工具只负责一件事
- 参数应有明确类型、默认值和边界
## Connections
- [[MCP]]
- [[MCP服务器]]
- [[MCP Builder]]