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

Function make_sample_tool

tests/display/test_formatting.py:14–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def make_sample_tool():
15 return ToolInfo(
16 name="t1",
17 namespace="ns1",
18 description="Test tool",
19 parameters={
20 "properties": {
21 "a": {"type": "int"},
22 "b": {"type": "string"},
23 },
24 "required": ["a"],
25 },
26 is_async=False,
27 tags=["x"],
28 )
29
30
31def test_format_tool_for_display_minimal():

Calls 1

ToolInfoClass · 0.90

Tested by

no test coverage detected