Best practices for tool and agent creation
This table shows the list of the best practices to follow when you build the
tools:
| Best Practice | Comment |
|---|---|
|
Do not expand the responsibilities of the Tool. Document the request payload and the response payload. Specify why the endpoint or the Tool must be invoked. |
|
For example:
|
|
For example:
|
|
Endpoints that return more than 20 parameters are difficult to document in a clear way. A large number of parameters increases the effort that is required to describe each field and the purpose of the endpoint. |
|
A large language model does not count data. You must create a dedicated Tool for counting or expose the number as part of the API response. |
|
|
|
Changes to any content may not appear correctly in an existing chat session. |