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

Method get_all_tools

examples/commands/command_system_demo.py:63–86  ·  view source on GitHub ↗

Return mock tool information.

(self)

Source from the content-addressed store, hash-verified

61 ]
62
63 async def get_all_tools(self) -> List[ToolInfo]:
64 """Return mock tool information."""
65 return [
66 ToolInfo(
67 name="query",
68 namespace="sqlite",
69 description="Execute SQL query",
70 parameters={
71 "type": "object",
72 "properties": {"sql": {"type": "string"}},
73 "required": ["sql"],
74 },
75 ),
76 ToolInfo(
77 name="read_file",
78 namespace="filesystem",
79 description="Read a file",
80 parameters={
81 "type": "object",
82 "properties": {"path": {"type": "string"}},
83 "required": ["path"],
84 },
85 ),
86 ]
87
88 async def ping_server(self, server_name: str) -> float:
89 """Mock ping a server."""

Callers

nothing calls this directly

Calls 1

ToolInfoClass · 0.90

Tested by

no test coverage detected