tool-creation-patterns
OfficialChoose the right MCP tool pattern for your needs.
Software Engineering#registration#tool-patterns#mcp-framework#function-macro#derive-macro#toolbuilder
Authoraussierobots
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Helps developers choose the most suitable MCP tool pattern (function macro, derive macro, or ToolBuilder) based on compile-time knowledge and runtime needs.
Core Features & Use Cases
- Guidance on selecting between Level 1 (function macro), Level 2 (derive macro), and Level 3 (ToolBuilder) patterns.
- Supports per-tool task settings, session access, and shared-state considerations (e.g., OnceLock) across patterns.
- Real-world scenarios include stateless utilities, stateful tools requiring session context, and dynamic runtime tool definitions.
Quick Start
Ask it to determine the appropriate MCP tool pattern for a given tool requirement and register it using the corresponding macro or builder.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: tool-creation-patterns Download link: https://github.com/aussierobots/turul-mcp-framework/archive/main.zip#tool-creation-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.