MCPcopy Create free account
hub / github.com/Harmeet10000/AgentNexus-LangChain-FastAPI / call_tool

Method call_tool

src/mcp_core/testing.py:30–33  ·  view source on GitHub ↗
(self, tool_name: str, arguments: dict[str, Any] | None = None)

Source from the content-addressed store, hash-verified

28 if self._client:
29 await self._client.__aexit__(*args)
30 self._client = None
31
32 async def call_tool(self, tool_name: str, arguments: dict[str, Any] | None = None) -> Any:
33 if self._client is None:
34 raise RuntimeError(_NOT_STARTED)
35 return await self._client.call_tool(tool_name, arguments or {})
36

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected