get_random_name
Generate random Docker-style names for applications and workflows using the MCP protocol.
Instructions
Generate a random name like Docker does.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_random_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- mong_mcp_server/server.py:8-11 (registration)Registration of the 'get_random_name' tool using the @mcp.tool decorator, specifying the name and description.
@mcp.tool( name="get_random_name", description="Generate a random name like Docker does." ) - mong_mcp_server/server.py:12-14 (handler)The handler function for the 'get_random_name' tool. It executes the logic by calling mong.get_random_name() to return a random Docker-like name.
def get_random_name() -> str: """Tool to Generate Docker-Like Random Names""" return mong.get_random_name()