|
1 | 1 | """Integration test to verify MCP tool descriptions are included in agent instructions. |
2 | 2 |
|
3 | | -This test reproduces the issue described in: |
4 | | -https://github.com/agentic-layer/sdk-python/issues/XX |
| 3 | +This test reproduces the issue described in the GitHub issue about MCP tool descriptions |
| 4 | +not being contained in agent instructions. |
5 | 5 |
|
6 | 6 | The problem: When MCP tools are added to an agent, their descriptions should be |
7 | 7 | included in the agent's instructions so the LLM knows what each tool does. However, |
@@ -210,9 +210,11 @@ def multiply(x: float, y: float) -> float: |
210 | 210 | assert "add" in agent_instructions, "Tool name 'add' should be in instructions" |
211 | 211 | assert "multiply" in agent_instructions, "Tool name 'multiply' should be in instructions" |
212 | 212 |
|
213 | | - # The descriptions should also be present |
214 | | - assert "Add two numbers" in agent_instructions, "Tool description should be in instructions" |
215 | | - assert "Multiply two numbers" in agent_instructions, "Tool description should be in instructions" |
| 213 | + # The full descriptions should be present |
| 214 | + assert "Add two numbers together" in agent_instructions, ( |
| 215 | + "Full tool description should be in instructions" |
| 216 | + ) |
| 217 | + assert "Multiply two numbers" in agent_instructions, "Full tool description should be in instructions" |
216 | 218 |
|
217 | 219 | # The format should be similar to sub-agent descriptions |
218 | 220 | # (see agent.py lines 74-80 for reference) |
|
0 commit comments