tool-design
O que ela faz
Esta skill explica como projetar as ferramentas que um agente de IA chama, incluindo descrições, esquemas, formatos de resposta, nomes e mensagens de erro. É para desenvolvedores que criam ferramentas ou servidores MCP usados por agentes.
Quando usar
- ✓Quando você está escrevendo a descrição de uma nova ferramenta ou de um novo servidor MCP para um agente de IA.
- ✓Quando um agente continua escolhendo a ferramenta errada ou fazendo chamadas malformadas.
- ✓Quando sua lista de ferramentas cresceu e ferramentas sobrepostas confundem o agente.
Link da skill
https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/tool-design/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“O meu agente de IA continua escolhendo a ferramenta errada entre as dezessete da minha lista. Me ajude a reescrever as descrições e unir as sobreposições.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill trata cada ferramenta como um contrato, então a descrição e as mensagens de erro precisam ser claras o bastante para que o agente escolha bem e se recupere sozinho.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Tool Design for Agents
Design every tool as a contract between a deterministic system and a non-deterministic agent. Unlike human-facing APIs, agent-facing tools must make the contract unambiguous through the description alone: agents infer intent from descriptions and generate calls that must match expected formats. Every ambiguity becomes a potential failure mode that no amount of prompt engineering can fix.
The unit of work for this skill is a single tool or a tool catalog. Project-shape, pipeline architecture, task-model-fit, and cost-at-the-project-level decisions belong to project-development. Deciding whether to introduce sub-agents belongs to multi-agent-patterns. This skill owns the interface layer that connects deterministic code to the agent.
When to Activate
Activate this skill when the unit of work is a tool:
- Writing a new tool description, schema, or response format.
- Debugging cases where the agent picked the wrong tool or generated malformed calls.
- Consolidating an overlapping tool catalog (the classic "we have 17 tools, the agent picks wrong half the time" case).
- Designing actionable error messages so the agent can self-correct.
- Naming tools and parameters consistently across a catalog (MCP namespacing, verb-noun naming).
- Evaluating a third-party tool against the consolidation principle before adding it.
Do not activate this skill for adjacent work owned by other skills:
- Deciding whether the project should use LLMs at all, or what the pipeline stages should be:
project-development. - Deciding whether to split work across sub-agents or run a single agent with more tools:
multi-agent-patterns. - Reducing the token weight of tool outputs at the trajectory level (observation masking, format-option choice at scale):
context-optimization.
Core Concepts
Design tools around the consolidation principle: if a human engineer cannot definitively say which tool should be used in a given situation, an agent cannot be expected to do better. Reduce the tool set until each tool has one unambiguous purpose, because agents select tools by comparing descriptions and any overlap introduces selection errors.
Treat every tool description as prompt engineering that shapes agent behavior. The description is not documentation for humans -- it is injected into the agent's context and directly steers reasoning. Write descriptions that answer what the tool does, when to use it, and what it returns, because these three questions are exactly what agents evaluate during tool selection.
Detailed Topics
The Tool-Agent Interface
Tools as Contracts Design each tool as a self-contained contract. When humans call APIs, they read docs, understand conventions, and make appropriate requests. Agents must infer the entire contract from a single description block. Make the contract unambiguous by including format examples, expected patterns, and explicit constraints. Omit nothing that a caller needs to know, because agents cannot ask clarifying questions before making a call.
Tool Description as Prompt Write tool descriptions knowing they load directly into agent context and collectively steer behavior. A vague description like "Search the database" with cryptic parameter names forces the agent to guess -- and guessing produces incorrect calls. Instead, include usage context, parameter format examples, and sensible defaults. Every word in the description either helps or hurts tool selection accuracy.
Namespacing and Organization
Namespace tools under common prefixes as the collection grows, because agents benefit from hierarchical grouping. When an agent needs database operations, it routes to the db_* namespace; when it needs web interactions, it routes to web_*. Without namespacing, agents must evaluate every tool in a flat list, which degrades selection accuracy as the count grows.
The Consolidation Principle
Single Comprehensive Tools
Build single comprehensive tools instead of multiple narrow tools that overlap. Rather than implementing list_users, list_events, and create_event separately, implement schedule_event that finds availability and schedules in one call. The comprehensive tool handles the full workflow internally, removing the agent's burden of chaining calls in the correct order.
Why Consolidation Works Apply consolidation because agents have limited context and attention. Each tool in the collection competes for attention during tool se
Perguntas frequentes
Por que as descrições de ferramentas importam tanto?
Os agentes escolhem as ferramentas pelas descrições, então um texto pouco claro pode levar a escolhas erradas ou chamadas ruins.
O que uma mensagem de erro deve fazer?
Dizer claramente ao agente o que deu errado e o que tentar em seguida, para que ele possa se corrigir.
Quando devo remover uma ferramenta?
A skill sugere unir ferramentas sobrepostas quando um catálogo faz o agente escolher a errada com frequência.
Detalhes
Descrição original do autor
This skill should be used for the tool-interface layer of an agent system specifically: writing tool descriptions agents can route on, designing tool schemas and response formats, naming conventions, actionable error recovery messages, MCP server design, tool-set consolidation, and deciding when to add or remove an individual tool. Use this when the unit of work is a single tool or a set of tools. Route project-shape, pipeline architecture, and task-model-fit decisions to project-development; route deciding whether to introduce sub-agents to multi-agent-patterns.
Popularidade
- Estrelas no GitHub
- 18 mil
- Posição no ranking
- #10652
- Licença
- MIT
- Atualizada em
- 11/10/2026
Comentários
- …
Mais skills deste repositório
context-engineering-collection
18 milAjuda seu agente a gerenciar o que entra na janela de contexto de um modelo de IA, desde memória e ferramentas até configurações com vários agentes e avaliação.
advanced-evaluation
18 milEnsina seu agente a avaliar respostas de IA usando outra IA, com pontuação, comparação lado a lado e verificações de viés.
bdi-mental-states
18 milEnsina seu agente a modelar crenças, objetivos e planos usando a abordagem BDI, para que suas decisões possam ser rastreadas e explicadas.
context-compression
18 milAjuda seu agente a resumir sessões longas de IA em resumos que mantêm decisões, arquivos, riscos e próximos passos.
Skills parecidas
mcporter
394 milAjuda seu agente a listar, chamar e inspecionar servidores MCP e suas ferramentas por HTTP ou stdio, e a gerenciar as configurações de login.
fastmcp
260 milAjuda você a construir, testar e publicar um servidor MCP em Python que dá a assistentes de IA acesso à sua API, banco de dados ou arquivos como ferramentas.
mcp-oauth-remote-gateway
260 milGuia você pelo login OAuth de um servidor MCP remoto quando o Hermes roda em um servidor, onde o login normal pelo navegador não consegue chegar.