MCPcopy Create free account
hub / github.com/modelcontextprotocol/mcpb / handle_list_tools

Function handle_list_tools

examples/hello-world-uv/src/server.py:15–32  ·  view source on GitHub ↗

List available tools.

()

Source from the content-addressed store, hash-verified

13
14@server.list_tools()
15async def handle_list_tools() -> list[types.Tool]:
16 """List available tools."""
17 return [
18 types.Tool(
19 name="say_hello",
20 description="Say hello to someone",
21 inputSchema={
22 "type": "object",
23 "properties": {
24 "name": {
25 "type": "string",
26 "description": "Name to greet",
27 }
28 },
29 "required": ["name"],
30 },
31 )
32 ]
33
34
35@server.call_tool()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…