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

Method test_all_have_function_key

tests/agents/test_tools.py:33–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 assert names == _AGENT_TOOL_NAMES
32
33 def test_all_have_function_key(self):
34 tools = get_agent_tools_as_dicts()
35 for t in tools:
36 assert t["type"] == "function"
37 assert "name" in t["function"]
38 assert "description" in t["function"]
39 assert "parameters" in t["function"]
40
41 def test_spawn_has_required_fields(self):
42 tools = get_agent_tools_as_dicts()

Callers

nothing calls this directly

Calls 1

get_agent_tools_as_dictsFunction · 0.90

Tested by

no test coverage detected