magic_word
Generate a random word using the MCP server, designed for integration with Claude Desktop, Cursor, and Claude Code IDEs.
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 returns a random magic word from the predefined list.def magic_word() -> str: """Return a random word from the list""" return random.choice(magic_words)
- main.py:31-31 (registration)The decorator that registers the magic_word function as an MCP tool.@mcp.tool
- main.py:5-5 (helper)The list of magic words used by the magic_word tool handler.magic_words = ["consistent", "honor", "attitude", "motivation", "perseverance", "integrity", "optimistic", "never giving up"]