MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / call_tool

Function call_tool

tests/tool_tests/test_molecular_prediction.py:23–25  ·  view source on GitHub ↗
(tool_name: str, **kwargs)

Source from the content-addressed store, hash-verified

21 async with Client(MCP_URL) as client:
22
23 async def call_tool(tool_name: str, **kwargs) -> Dict[str, Any]:
24 res = await client.call_tool(tool_name, kwargs or {})
25 return getattr(res, "data", None) or {}
26
27 result = await call_tool("ka_gat", smiles=ETHANOL, task="bbbp")
28 assert result, f"ka_gat returned unexpected: {result}"

Callers 4

test_ka_gatFunction · 0.70
test_ka_gat_all_tasksFunction · 0.70
test_ka_gnnFunction · 0.70
test_ka_gnn_all_tasksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected