Thoth MCP Tools Documentation¶
This document describes the available tools in the Thoth MCP Server.
Available Tools¶
ping¶
A simple connectivity test tool that verifies MCP server responsiveness.
Purpose: Verify that the MCP server is running and responding to tool calls correctly.
Parameters:
message(string, optional): Custom message to echo back in the responseDefault:
"ping"Description: Optional message to echo back in the response
Returns: Text content with format "pong: {message}"
Examples:
Basic ping without arguments:
{ "name": "ping", "arguments": {} }
Response:
"pong: ping"Ping with custom message:
{ "name": "ping", "arguments": { "message": "Hello, Thoth!" } }
Response:
"pong: Hello, Thoth!"
Use Cases:
Verify server connectivity
Test MCP protocol communication
Health check for the server
Debugging and troubleshooting
Error Handling:
No errors expected under normal operation
Invalid tool names will raise
ValueError
Testing Tools Locally¶
To test the tools locally:
Start the MCP server:
python -m thoth.mcp_server.server
Use an MCP client to connect and call tools via stdio
Or run the unit tests:
hatch test
Adding New Tools¶
To add a new tool to the server:
Update the
list_tools()handler inthoth/mcp_server/server.pyto include your tool definitionAdd handling logic in the
call_tool()handlerCreate unit tests in
tests/mcp_server/test_mcp_server.pyDocument the tool in this file
Example tool definition structure:
Tool(
name="your_tool_name",
description="Description of what your tool does",
inputSchema={
"type": "object",
"properties": {
"param1": {
"type": "string",
"description": "Description of param1"
}
},
"required": ["param1"] # List required parameters
}
)