/claude-eng-pack:designing-tools-and-mcpfrom claude-eng-pack
Best-practice reference for designing and auditing Claude tool definitions and MCP servers: tool naming, descriptions, input schemas, structured errors, tool_choice, and built-in tool usage.
Ships in claude-eng-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Best-practice reference for the tool layer: how tools are named, described, split, scoped, and how their errors are structured so the model can act on them. Each reference module states the correct pattern, the named anti-patterns, and ends with an Audit Checklist of verifiable conditions.
tool_choice mode, build vs use an existing MCP server, which built-in tool fitsNot for the agent loop itself (use auditing-agent-architecture) or output schemas for extraction (use engineering-prompts-and-output).
| Module | Read when the question is about |
|---|---|
references/2-1-tool-interface-design.md | Descriptions that route correctly, splitting overloaded tools, naming |
references/2-2-structured-error-responses.md | Error categories, isRetryable, access failure vs valid empty result |
references/2-3-tool-distribution-and-tool-choice.md | Tool overload, tool_choice config, role-scoped tool sets |
references/2-4-mcp-server-integration.md | MCP scoping hierarchy, env-var expansion, resources, build-vs-use |
references/2-5-built-in-tools.md | Grep vs Glob, Read/Write/Edit, incremental codebase understanding |
file:line evidence and the module's recommended fix.For a fast full-domain sweep, checklists.md aggregates all five checklists.
How tool errors should propagate between agents: managing-context-reliability (5-3). Forcing structured output via tools: engineering-prompts-and-output (4-3).
This skill is a best-practice reference for the tool layer that Claude sees: how tools are named, described, split, and scoped, and how their errors come back so the model can act on them. It gives you the correct pattern, the named anti-patterns, and a checklist of verifiable conditions per topic. Use it to design a tool surface, or to explain why Claude keeps calling the wrong one.
tool_choice mode, build an MCP server or use an existing one.auditing-agent-architecture.engineering-prompts-and-output.managing-context-reliability.Skill(skill: "claude-eng-pack:designing-tools-and-mcp")
Invoke it before you read the tool definitions, then follow the module table to the two or three reference files that match the question.
No files are written. You get a routing table from question to reference module, and each module ends with an Audit Checklist of conditions you can verify one by one. For a full sweep, checklists.md aggregates all five. Findings are reported with file:line evidence and the module's recommended fix.
Skill(skill: "claude-eng-pack:designing-tools-and-mcp")
"Claude keeps calling search_items when it should call get_item_by_id.
Review orders/line-items tool definitions."
The skill routes you to references/2-1-tool-interface-design.md for description and naming, and to 2-3 if the tool count is the real cause. You run those two Audit Checklists against the definitions and end up with a list of unchecked items — each one a finding with the offending line and the fix that module prescribes.
auditing-agent-architecture — prefer it when the loop, not the tool, is misbehaving.engineering-prompts-and-output — prefer it for system prompts and forcing structured output via tools.managing-context-reliability — prefer it when tool errors vanish between agents.checklists.md (opens in a new tab)references/2-1-tool-interface-design.md (opens in a new tab)references/2-2-structured-error-responses.md (opens in a new tab)references/2-3-tool-distribution-and-tool-choice.md (opens in a new tab)references/2-4-mcp-server-integration.md (opens in a new tab)references/2-5-built-in-tools.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
tool-design, mcp-server, tool-schemas, audit-checklist, error-handling
5 skills in this plugin
/auditing-agent-architectureUse when designing or reviewing Claude-based agent systems — agentic loops and stop_reason handling, multi-agent orchestration, coordinators, subagent invocation and context passing, workflow enforcement, Agent SDK hooks (PreToolUse/PostToolUse), task decomposition, or session state and resumption. Also when an agent terminates prematurely, loops forever, repeats work, or subagents return inconsistent or incomplete results. NOT for tool schemas (use designing-tools-and-mcp), prompts (use engineering-prompts-and-output), or context degradation (use managing-context-reliability)./configuring-claude-codeUse when setting up or auditing Claude Code in a repository — CLAUDE.md hierarchy and imports, .claude/rules, custom slash commands and skills, path-specific rules, plan mode vs direct execution, iterative refinement workflow, or CI/CD integration with headless -p mode. Also when instructions get ignored, conventions load in the wrong scope, CLAUDE.md has grown bloated, or a CI pipeline needs non-interactive Claude runs. NOT for task prompt content (use engineering-prompts-and-output), agent loops/orchestration (use auditing-agent-architecture), or MCP tools (use designing-tools-and-mcp).Other plugins' skills for the same job
npx claudepluginhub atretyak1985/swarmery --plugin claude-eng-pack