The model chooses tools from their descriptions and schemas, so a vague tool is a wrong tool call waiting to happen. An MCP tool definition carries a name, a human-readable description, and an inputSchema that states each parameter’s type and whether it is required. Write the description as what the tool does and when to use it, name every parameter plainly, and mark required fields as required. A schema written this way lets the model call the tool with the right arguments the first time, instead of guessing.
What you need
- A tool the agent calls, with its current description and parameters listed
- One example of a correct call and one of a wrong call, if you have them
- The list of parameters the tool truly needs to do its job
Step 1: Write the description as what and when
Write one or two sentences that say what the tool does and when the model should call it instead of another tool. A description that only repeats the tool name gives the model nothing to choose on.
Step 2: Name every parameter and mark the required ones
List each parameter with its type and a short meaning, and mark the ones the tool cannot run without as required. A parameter the model may omit should be optional, not required.
Step 3: Test with the call that went wrong before
Give the model a task that previously produced the wrong call and check whether it now calls the right tool with complete arguments. If it still guesses, the description or a parameter name is still ambiguous.
Worked example: synthetic tool schema check
The table below is a synthetic example. It shows the expected result of a clear schema; no agent was run.
| Tool | Description clear? | Arguments complete? |
|---|---|---|
| lookup_order | Yes | Yes |
| search_docs | Yes | Yes |
| send_message | No – fixed | Yes after fix |
| All calls use the right tool | Yes | Pass |
Expected result (UNTESTED). every tool has a clear description and typed required parameters, and the model calls the right tool with complete arguments. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- A schema describes the shape of a call, not the meaning of its values: a well-formed but wrong id still passes.
- Descriptions only help if the model reads them; two tools with near-identical descriptions will still be confused.
- Every new parameter must be added to the schema, or the model cannot know it exists.
- Required fields that are really optional will make the model invent values to fill them.
