Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 23:15 UTC
docs: enhance tool description modifier example with additional context
balyan.sid@gmail.com committed
Jun 30, 2025 at 21:47 UTC
d1ef6e686f23044563895986ceaf6234598ad4bb
1 file changed
+11
fern/pages/src/tool-calling/schema-modifiers.mdx
+11
@@ -191,6 +191,17 @@ console.log(response.choices[0].message.tool_calls);
191
192
## Example: Modifying the tool description
193
194
+Sometimes you need to provide additional context to help the agent understand how to use a tool correctly. This example demonstrates modifying the description of the `GITHUB_LIST_REPOSITORY_ISSUES` tool to specify a default repository when none is provided.
195
+
196
+<Note>
197
+This approach is particularly useful when you want to guide the agent's behavior without changing the tool's underlying functionality.
198
+</Note>
199
+
200
+In this example:
201
+- We append additional instructions to the tool's description
202
+- The modified description tells the agent to use `composiohq/composio` as the default repository
203
+- This helps prevent errors when the agent forgets to specify a repository parameter
204
+
205
<CodeGroup>
206
<SnippetCode
207
src="fern/snippets/modifiers/python/description.py"