AI Hints
Home›MCP Tutorial›Tool Design and Practice
MCP · Lesson 28 of 120

Tool Design Tips

Names, inputs, outputs.

⏱ 2 min read▶ Video at 25:24🎓 Free
Watch this lesson in the MCP courseWatch on YouTube ↗Full MCP course

A model uses your tools based only on their names, descriptions, and schemas. Good design makes the model choose the right tool, and call it correctly, the first time.

Tool Design Tips
From the video: Tool Design Tips
  • Name
  • Description
  • Schema

Good tool design

Use verb and noun names, like get order. Describe when to use the tool. Keep inputs few and typed. Return short, useful results. And make errors explain how to fix the call.

PartDo this
Nameverb_noun, like get_order
Descriptionwhat, and when to use it
Inputsfew, typed, described
Outputshort and useful
Errorssay how to fix it

Before and after

A tool called data, with a query string and no description, is hard to use. Get order, with an order ID described as the receipt number, is easy.

Hard to use

  • data(q: str)No descriptionReturns a huge blob

Easy to use

  • get_order(order_id: int)Receipt numberReturns status

Summary

Clear names, focused descriptions, typed inputs, and short outputs make tools easy for models. Next, practice.

Key takeaways
  • verb_noun
  • When to use
  • Short output
Next up: Practice: An Orders Server — three tools