log_accomplishment
Track progress and reinforce achievements by recording completed tasks, helping users monitor accomplishments and maintain motivation.
Instructions
Log something the user accomplished.
This helps track progress and provides positive reinforcement.
Args: description: What the user accomplished
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | Yes |
Implementation Reference
- src/coach_ai/storage.py:396-412 (handler)The actual storage handler implementation for logging an accomplishment in the database.
async def log_accomplishment(description: str) -> str: """Log something the user accomplished. Args: description: What the user accomplished Returns: Success message """ db = await get_db() await db.execute( "INSERT INTO accomplishments (description) VALUES (?)", (description,) ) await db.commit() return f"✓ Logged accomplishment: {description}" - src/coach_ai/server.py:602-611 (registration)The tool registration and delegator in the MCP server file.
@mcp.tool() async def log_accomplishment(description: str) -> str: """Log something the user accomplished. This helps track progress and provides positive reinforcement. Args: description: What the user accomplished """ return await storage.log_accomplishment(description)