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
Input Schema
TableJSON 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"]