MCPcopy Create free account
hub / github.com/IBM/mcp-cli / test_call_tool_executes_tool

Function test_call_tool_executes_tool

tests/tools/test_dynamic_tools.py:232–239  ·  view source on GitHub ↗

Test call_tool delegates to tool_manager.

(provider)

Source from the content-addressed store, hash-verified

230
231@pytest.mark.asyncio
232async def test_call_tool_executes_tool(provider):
233 """Test call_tool delegates to tool_manager."""
234 # Must fetch schema first (enforced workflow)
235 await provider.get_tool_schema("calculator")
236 result = await provider.call_tool("calculator", {"expression": "2+2"})
237
238 assert result["success"] is True
239 provider.tool_manager.execute_tool.assert_called_once()
240
241
242@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

call_toolMethod · 0.80

Tested by

no test coverage detected