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

Function test_list_tools

tests/tools/test_dynamic_tools.py:155–167  ·  view source on GitHub ↗

Test list_tools returns tool summaries.

(provider)

Source from the content-addressed store, hash-verified

153
154@pytest.mark.asyncio
155async def test_list_tools(provider):
156 """Test list_tools returns tool summaries."""
157 results = await provider.list_tools(limit=50)
158
159 assert len(results) == 3
160 names = {r["name"] for r in results}
161 assert names == {"calculator", "weather", "search"}
162
163 # Check structure
164 for result in results:
165 assert "name" in result
166 assert "description" in result
167 assert "namespace" in result
168
169
170@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

list_toolsMethod · 0.80

Tested by

no test coverage detected