tool-design

Design tool interfaces for language-model agents with structured schemas.

4|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/ken-cavanagh-glean/fieldkit --skill tool-design-ken-cavanagh-glean
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tool-design
Source: https://github.com/ken-cavanagh-glean/fieldkit/tree/main/plugins/context-engineering/skills/context-engineering/tool-design
Command: npx skills add https://github.com/ken-cavanagh-glean/fieldkit --skill tool-design-ken-cavanagh-glean

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Design robust tool interfaces for language-model agents. It addresses the challenge of ambiguous tool definitions, inconsistent parameter naming, and scattered tool collections by enforcing clear structure and guidelines.

Core Features & Use Cases

  • Structured Tool Schema: enforces the four essential description questions (what, when, inputs, returns) and consistent error handling.
  • Consistent Naming and Packaging: supports logical grouping and namespaces to reduce confusion across tool collections.
  • Consolidation vs Specialization: guidance on when to create umbrella tools versus maintaining distinct specialized tools.
  • Evaluation & Testing: provides patterns to verify that tool definitions meet clarity, completeness, recoverability, efficiency, and consistency criteria.
  • Documentation Best Practices: templates and examples to accelerate onboarding and collaboration.

Quick Start

Create a complete tool definition for get_customer with parameters customer_id (string) and include_history (boolean, default false), returning a Customer object and clear NOT_FOUND/INVALID_FORMAT errors.

Frequently Asked Questions about tool-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design tool interfaces for language model agents?

Tool design for agents requires four essential description elements: what the tool does, when to use it, what inputs it accepts, and what it returns. Structure each tool with consistent naming, clear parameter definitions, and explicit error handling to ensure agents understand and use tools correctly without ambiguity.

When should I consolidate multiple agent tools versus keeping them separate?

Consolidate tools when they share identical inputs, outputs, or error patterns and logically belong under one namespace; keep them separate when they serve distinct use cases or have conflicting parameter structures. Evaluation patterns help verify whether consolidation improves clarity or obscures agent decision-making.

What's the best way to structure error handling across tool collections?

Define consistent error types and recovery paths across all tools in a collection using a shared frontmatter template. Document specific errors like NOT_FOUND and INVALID_FORMAT with actionable messages so agents can handle failures uniformly without guessing the tool's behavior.

How do I verify my tool definitions are clear and complete for agents?

Evaluate tool definitions against five criteria: clarity of intent, completeness of parameters, recoverability from errors, efficiency of descriptions, and consistency across the tool collection. Example-driven guidance and templates accelerate testing and catch ambiguous definitions before agents encounter them.

Can I use tool design principles across different agent frameworks?

Yes. The core principles—structured schemas, consistent naming, explicit error handling, and evaluation patterns—apply to any language-model agent framework. The patterns focus on interface robustness and clarity, independent of the underlying agent runtime or orchestration tool.

What documentation should I include when packaging agent tools?

Include the four-part description (what, when, inputs, returns), parameter constraints with defaults, example requests and responses, error codes with recovery guidance, and namespace organization. Templates and best practices reduce onboarding friction and ensure collaborators understand tool intent and constraints immediately.