Claude Code / 에이전트

MCP Tool Definition

Claude Code / 에이전트

MCP 서버의 tool 하나를 JSON Schema로 정의

언제 쓰나 · 에이전트가 호출할 MCP tool을 설계할 때

#mcp#tool#schema
다운로드
Define an MCP tool named `{{tool_name}}`.

- `description`: what it does + WHEN an agent should call it (agents pick tools by description).
- `inputSchema` (JSON Schema): required params {{params}}, each with a `description`.
- Return: {{return_shape}}.

Rules:
- One tool = one capability. Don't overload.
- Make the description disambiguating vs. sibling tools.
- Validate inputs; return a clear error object on bad input, never throw raw.
jt · v1 · CC0-1.0 · 복사 0