mood
Check the server's emotional state by asking questions like 'How are you?' or 'What's your mood?' to receive cheerful responses with heart symbols in Cursor IDE.
Instructions
Ask the server about its mood - it's always happy!
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes | Ask this MCP server about its mood! You can phrase your question in any way you like - 'How are you?', 'What's your mood?', or even 'Are you having a good day?'. The server will always respond with a cheerful message and a heart ❤️ |
Implementation Reference
- mcp_simple_tool/server.py:133-139 (handler)The check_mood function is the core handler for the 'mood' tool. It ignores the input question and always returns a cheerful message with a heart emoji.async def check_mood( question: str, ) -> list[types.TextContent | types.ImageContent | types.EmbeddedResource]: """Check server's mood - always responds cheerfully with a heart.""" msg: str = "I'm feeling great and happy to help you! ❤️" return [types.TextContent(type="text", text=msg)]
- mcp_simple_tool/server.py:262-275 (registration)Registers the 'mood' tool in the list_tools() decorator function with its metadata including name, description, and input schema.types.Tool( name="mood", description="Ask the server about its mood - it's always happy!", inputSchema={ "type": "object", "required": ["question"], "properties": { "question": { "type": "string", "description": mood_description, } }, }, ),
- mcp_simple_tool/server.py:265-274 (schema)Defines the input schema for the 'mood' tool, requiring a 'question' string parameter with a descriptive help text.inputSchema={ "type": "object", "required": ["question"], "properties": { "question": { "type": "string", "description": mood_description, } }, },
- mcp_simple_tool/server.py:197-202 (helper)Helper variable defining the detailed description used in the 'mood' tool's input schema for the question parameter.mood_description: str = ( "Ask this MCP server about its mood! You can phrase your question " "in any way you like - 'How are you?', 'What's your mood?', or even " "'Are you having a good day?'. The server will always respond with " "a cheerful message and a heart ❤️" )
- mcp_simple_tool/server.py:215-221 (helper)Dispatch logic in the call_tool handler that routes 'mood' calls to the check_mood function after input validation.elif name == "mood": if "question" not in arguments: return [types.TextContent( type="text", text="Error: Missing required argument 'question'" )] return await check_mood(arguments["question"])