magic_word
Generate random words for creative writing, brainstorming, or vocabulary building using this MCP server tool.
Instructions
Return a random word from the list
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": "magic_word"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:32-34 (handler)The handler function for the 'magic_word' tool, which selects and returns a random word from the predefined magic_words list.
def magic_word() -> str: """Return a random word from the list""" return random.choice(magic_words) - main.py:31-31 (registration)Registers the magic_word tool with the FastMCP server using the @mcp.tool decorator.
@mcp.tool - main.py:5-5 (helper)Predefined list of magic words used by the magic_word tool handler.
magic_words = ["consistent", "honor", "attitude", "motivation", "perseverance", "integrity", "optimistic", "never giving up"]