An agent acts by calling tools, and it picks the tool from the name, description and JSON schema for its inputs. A vague description leads to wrong calls, so design the schema before the agent runs. The MCP guidance is the same: treat tools like API endpoints, with a clear name, description and input schema.
Checked on 2026-11-29. We did not run any tool for this guide. Every result below is an expected result, marked UNTESTED, for you to confirm on your own files.
Prerequisites
- The task the agent must do, in one sentence
- The list of actions the agent may take
- A note of the inputs each action needs
Steps
1. Name each tool as a verb
Give each tool a verb-first name such as search_orders or create_ticket, so the purpose is clear from the name.
Expected result: A tool list exists with verb-first names.
2. Write a one-sentence description
Write what the tool does and when to use it, in one sentence. Avoid vague words such as handle or process.
Expected result: Each tool has a one-sentence description.
3. Define the inputs as a schema
List each input with its name, type and whether it is required. Mark optional inputs clearly.
Expected result: A schema exists for each tool with typed inputs.
4. Test the schema with one call
Run the agent on one task and check it calls the right tool with valid inputs.
Expected result: One test call succeeds with the right tool and valid inputs.
Worked example
A practice support agent has three tools for orders. The schema was written before the first call.
| Tool | Inputs | Required |
|---|---|---|
| search_orders | customer_id | Yes |
| create_ticket | order_id, issue | Yes |
| refund_order | order_id, amount | Yes |
Expected result: Three tools have verb-first names and typed inputs, and the test call picks search_orders for a tracking question (UNTESTED – confirm it yourself.)
Verdict table
| Check | Expected result | Pass? |
|---|---|---|
| Name each tool as a verb | A tool list exists with verb-first names. | – |
| Write a one-sentence description | Each tool has a one-sentence description. | – |
| Define the inputs as a schema | A schema exists for each tool with typed inputs. | – |
| Test the schema with one call | One test call succeeds with the right tool and valid inputs. | – |
Limits
- A good schema cannot stop a model calling a tool for the wrong reason; check the call before it runs when the action matters.
- Too many tools confuse the model; keep the list short and merge tools that do the same job.
Sources
- Model Context Protocol (Stanford CS329T slides) – checked 2026-11-29
- The Model Context Protocol (MCP) for compliance data – checked 2026-11-29
- What is the Model Context Protocol (MCP)? – checked 2026-11-29
- Ollama v0.9.1 release notes – checked 2026-11-29
