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

Function call_tool

tests/tool_tests/test_file.py:15–17  ·  view source on GitHub ↗
(tool_name: str, **kwargs)

Source from the content-addressed store, hash-verified

13 async with Client(MCP_URL) as client:
14
15 async def call_tool(tool_name: str, **kwargs) -> Dict[str, Any]:
16 res = await client.call_tool(tool_name, kwargs or {})
17 return getattr(res, "data", None) or {}
18
19 mk = await call_tool("fs_mkdir", path="testdir")
20 assert "error" not in mk, f"fs_mkdir testdir failed: {mk}"

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected