Skip to main content
Glama

ping

Test basic connectivity and server responsiveness by sending a ping request that returns 'pong' for validation.

Instructions

Simple ping tool that responds with 'pong'.

Useful for testing basic connectivity and server responsiveness.

Returns: The string 'pong'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The ping tool handler: an async function decorated with @mcp.tool() that logs a debug message and returns 'pong'.
    @mcp.tool()
    async def ping(ctx: Context) -> str:
        """
        Simple ping tool that responds with 'pong'.
    
        Useful for testing basic connectivity and server responsiveness.
    
        Returns:
            The string 'pong'
        """
        await ctx.debug("Ping received")
        return "pong"

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rdwj/mcp-test-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server