List available tools.
()
| 13 | |
| 14 | @server.list_tools() |
| 15 | async 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() |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…