jadecli/jadecli-kw-plugins/d2-tool-design-mcp
Claude Code and agent skill by jadecli/jadecli-kw-plugins
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Cert Domain 2 (18%): Tool descriptions, MCP structured errors, tool distribution, MCP server integration, built-in tool selection.
Install
npx vskill@latest install jadecli/jadecli-kw-plugins/d2-tool-design-mcpSKILL.md
The same SKILL.md was published earlier as jadecli/jadecli-kw-plugins/d2-tool-design-mcp.
D2: Tool Design & MCP Integration (18%)
2.1 Tool Descriptions
- Descriptions are the primary mechanism for tool selection
- Include: input formats, example queries, edge cases, boundary explanations
- Ambiguous/overlapping descriptions cause misrouting (
analyze_contentvsanalyze_document) - Rename to differentiate:
analyze_content→extract_web_results - Split generic tools:
analyze_document→extract_data_points+summarize_content+verify_claim_against_source
2.2 Structured MCP Errors
isErrorflag communicates failure to agent- Categories: transient (timeout), validation (invalid input), business (policy), permission
- Return
{isError, errorCategory, isRetryable, description} - Anti-pattern: generic "Operation failed" or throwing exceptions that crash the agent
- Distinguish access failures (retry) from valid empty results (no retry)
2.3 Tool Distribution
- 4-5 tools per subagent. 18 tools degrades reliability.
- Scoped access: only role-relevant tools
- Replace generic tools with constrained alternatives (
fetch_url→load_documentwith URL validation) tool_choice: "any"guarantees a tool call (no conversational text)- Forced selection:
{"type": "tool", "name": "extract_metadata"}for required first steps
2.4 MCP Server Integration
- Project-level
.mcp.jsonfor shared team tools - User-level
~/.claude.jsonfor personal/experimental - Environment variable expansion:
${GITHUB_TOKEN}— no committed secrets - MCP resources expose content catalogs (schemas, issue summaries) to reduce exploratory calls
- Prefer community MCP servers for standard integrations (Jira, GitHub)
2.5 Built-in Tool Selection
- Grep: content search (function names, error messages, imports)
- Glob: file pattern matching (
**/*.test.tsx) - Read/Write: full file ops; Edit: targeted modifications with unique text matching
- Edit fails on non-unique match → fallback to Read + Write
- Build understanding incrementally: Grep → follow imports → Read specific functions
jadecli MCP Inventory
@supabase/mcp-server-supabase— data layer@modelcontextprotocol/server-github— PR, issues, reposjade-console-mcp— jadecli.com dashboard- Cube.js API — semantic layer queries
- Linear MCP — task management
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingclaude-architect/skills/d2-tool-design-mcp/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jadecli/jadecli-kw-plugins/d2-tool-design-mcp)