# /tool-design: Design agent tools that get picked and called correctly

Source: https://trendhub.net/skills/muratcankoylan-agent-skills-for-context-engineering/tool-design
Skill folder: https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/tree/main/skills/tool-design
Pack: Agent Skills for Context Engineering (https://trendhub.net/skills/muratcankoylan-agent-skills-for-context-engineering)
Works with: Claude Code (plugin marketplace), Cursor, Codex, Claude Code (single skill copy)

This skill covers the interface between deterministic code and an agent. It treats each tool description as a prompt, asks for fewer tools with one clear purpose each, and gives rules for naming, defaults, concise or detailed responses, MCP server prefixes and error messages that tell the agent what to change before retrying. An eight-point audit checklist closes it.

## When to use it

- An agent keeps choosing the wrong tool from an overlapping catalog.
- You are writing an MCP server or a new set of function tools.
- Tool errors leave the agent stuck instead of recovering.

## How it works

1. **Consolidate**: Groups related actions into comprehensive tools until each has one unambiguous purpose, splitting only when behaviours truly differ.
2. **Write the description**: Covers the tool's purpose, the situations that should trigger it, each input with format and default, and the shape of its output.
3. **Standardize names**: Uses verb-noun tool names, the same parameter names across tools, namespaces and fully qualified MCP names.
4. **Make errors actionable**: Returns the invalid value, the expected format and an example so the agent can correct the call.
5. **Audit and test**: Runs the checklist on every tool and tests with real agent requests, feeding failures back to improve descriptions.

## What it steers the agent away from

- Vague one-line descriptions and cryptic parameter names.
- Generic error messages with no recovery hint.
- Single tools so overloaded with modes that agents cannot fill them in.

## What it can touch

Instructions and example code; it guides how you write tool definitions and descriptions.

## Pairs well with

- `/evaluation`
- `/multi-agent-patterns`
- `/project-development`

## Questions

### Should I always merge tools?

No. Keep tools separate when they behave differently or must be called independently; the skill flags tools needing more than eight to ten parameters as too broad.

### What is architectural reduction?

Replacing many specialized tools with a few primitives such as shell file access, which can work well when the data is well documented.
