Skip to content
Development
Command

/add-tool

Add a new tool to an existing MCP server with proper schema and handler.

From plugin
rohitg00-claude-code-toolkit
2.5k199 skills138 agents199 commands
Install
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/add-tool

Context preview

What this command does when you run it.

Add a new tool to an existing MCP server with proper schema and handler.

Command definition

add-tool.md
name: add-tool
description: Add a new tool to an existing MCP server with proper schema and handler.

Add a new tool to an existing MCP server with proper schema and handler.

Steps

1. Understand the tool requirements: 2. Define the tool schema: 3. Implement the tool handler: 4. Register the tool with the MCP server: 5. Add input validation: 6. Write a test for the tool handler. 7. Update the server documentation with the new tool.

Format

Tool: <name>
Description: <what it does>
Parameters:
  - <name>: <type> (<required|optional>) - <description>

Rules

  • Tool names must be unique within the server.
  • Descriptions must be clear enough for an AI to use the tool correctly.
  • All required parameters must be validated before execution.
Ships withrohitg00-claude-code-toolkit

The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.

Get the whole plugin