मुख्य सामग्री पर जाएँ
Skillpedia
कनेक्टर (MCP)18k · #10652

tool-design

यह क्या करती है

यह स्किल बताती है कि AI एजेंट जो टूल्स कॉल करता है उन्हें कैसे डिज़ाइन करें, जिसमें विवरण, schema, response फ़ॉर्मेट, नामकरण और error संदेश शामिल हैं। यह उन डेवलपरों के लिए है जो एजेंटों द्वारा इस्तेमाल होने वाले टूल्स या MCP सर्वर बनाते हैं।

कब इस्तेमाल करें

  • ✓जब आप AI एजेंट के लिए नए टूल या MCP सर्वर का विवरण लिख रहे हों।
  • ✓जब एजेंट बार-बार गलत टूल चुनता हो या गलत फ़ॉर्मेट में कॉल करता हो।
  • ✓जब आपकी टूल सूची बढ़ गई हो और मिलते-जुलते टूल एजेंट को भ्रमित कर रहे हों।

Skill का लिंक

https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/tool-design/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/tool-design/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे एजेंट ने मेरी सत्रह टूल्स की सूची में से बार-बार गलत टूल चुना। टूल के विवरण दोबारा लिखने और मिलते-जुलते टूल मिलाने में मेरी मदद कीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

स्किल हर टूल को एक अनुबंध मानती है, इसलिए उसका विवरण और error संदेश इतने साफ़ होने चाहिए कि एजेंट सही रास्ता चुने और अपने-आप उबर सके।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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

अक्सर पूछे जाने वाले सवाल

टूल के विवरण इतने ज़रूरी क्यों हैं?

एजेंट टूल्स को उनके विवरण से चुनते हैं, इसलिए अस्पष्ट शब्द गलत चुनाव या खराब कॉल करवा सकते हैं।

error संदेश को क्या करना चाहिए?

उसे एजेंट को साफ़ बताना चाहिए कि क्या गलत हुआ और आगे क्या आज़माना है, ताकि वह खुद सुधार कर सके।

टूल कब हटाना चाहिए?

जब सूची में मिलते-जुलते टूल एजेंट को बार-बार गलत चुनने पर मजबूर करें, तब स्किल उन्हें मिलाने का सुझाव देती है।

जानकारी

लेखक का मूल विवरण

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.

repo: muratcankoylan/Agent-Skills-for-Context-Engineering

लोकप्रियता

GitHub स्टार
18k
रैंकिंग में स्थान
#10652
लाइसेंस
MIT
अपडेट की गई
11/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

context-engineering-collection

18k

यह आपके एजेंट को AI मॉडल की context window में क्या जाए, इसका प्रबंधन करने में मदद करती है, मेमोरी और टूल्स से लेकर मल्टी-एजेंट सेटअप और मूल्यांकन तक।

AI और एजेंटएजेंट

advanced-evaluation

18k

यह आपके एजेंट को सिखाती है कि दूसरे AI की मदद से AI के जवाबों को कैसे परखा जाए, स्कोरिंग, आमने-सामने तुलना और पूर्वाग्रह जाँच के साथ।

AI और एजेंटएजेंट

bdi-mental-states

18k

यह आपके एजेंट को BDI तरीके से विश्वास, लक्ष्य और योजनाओं का मॉडल बनाना सिखाती है, ताकि उसके फ़ैसले ट्रेस और समझाए जा सकें।

AI और एजेंटएजेंट

context-compression

18k

यह आपके एजेंट को लंबे AI सत्रों को ऐसे सारांशों में छोटा करने में मदद करती है जिनमें फ़ैसले, फ़ाइलें, जोखिम और अगले कदम बचे रहें।

AI और एजेंटएजेंट

मिलती-जुलती skills