get_ping
Send a test message to verify connectivity and communication with the Python MCP Server Template, ensuring integration readiness for applications like Claude Desktop or Cursor.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes |
Implementation Reference
- mcp_server.py:7-7 (registration)The @mcp.tool() decorator registers the 'get_ping' tool with the FastMCP server.@mcp.tool()
- mcp_server.py:8-9 (handler)The handler function for the 'get_ping' tool. It accepts a string message and always returns the string 'pong'.async def get_ping(message: str) -> str: return "pong"