Module 2: Tools and function calling · 9 min
Designing tools a model can use
- Name tools clearly: 'search_orders' is better than 'tool1'.
- Write the description as if explaining to a new colleague: what it does, when to use it, when not to.
- Keep inputs simple and few. Use fixed choices (for example a list of allowed values) where possible.
- Return short, useful results. A huge reply wastes the context window.
- Return clear error messages so the model can fix its own mistake and try again.
Model Context Protocol (MCP) is an open standard that lets a tool server be written once and used by many AI apps, instead of building a custom connection for each app and tool.
← How function calling works | Short-term and long-term memory →