YUNOVA · AI Agents · Module 2: Tools and function calling

Describing a tool to the model

Notes for offline study · 30 November 2026

Describing a tool to the model

Key points

  • हर tool के लिए model को तीन चीज़ें दी जाती हैं: name, description और parameters का schema (आमतौर पर JSON Schema)।
  • Description साफ़ लिखें कि tool क्या करता है और कब इस्तेमाल करना है; model इसी को पढ़कर tool चुनता है।
  • हर parameter का type, मतलब और required है या नहीं, यह बताएँ ताकि model सही arguments भरे।
  • मिलते-जुलते नाम या धुँधले descriptions से model गलत tool चुन सकता है।
  • MCP (Model Context Protocol) एक open standard है जिसे Anthropic ने AI applications को tools और data से जोड़ने के लिए शुरू किया।
  • इसमें MCP server tools, resources और prompts देता है, और MCP client (AI app) उनसे जुड़ता है।
  • एक बार बना MCP server कई AI apps में इस्तेमाल हो सकता है; हर app के लिए अलग integration नहीं लिखना पड़ता।
  • सिर्फ़ भरोसेमंद MCP servers जोड़ें, क्योंकि वे agent को असली systems पर काम करने की पहुँच देते हैं।

Free on YUNOVA · yunova.in · Sign in to add your own lesson notes to this sheet.