get_random_name
Generate Docker-style random names for containers, services, or projects using the MCP interface. This tool provides moby-like name generation functionality integrated with Claude Desktop and VS Code Copilot Agent.
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:12-14 (handler)The handler function for the 'get_random_name' MCP tool. It executes the tool logic by calling the external mong.get_random_name() function to generate a random Docker-like name.
def get_random_name() -> str: """Tool to Generate Docker-Like Random Names""" return mong.get_random_name() - mong_mcp_server/server.py:8-11 (registration)The registration of the 'get_random_name' tool using the FastMCP @tool decorator, specifying its name and description.
@mcp.tool( name="get_random_name", description="Generate a random name like Docker does." )