Skip to main content
Glama

create_habit

Create smart habits with automated scheduling by setting preferred times, durations, frequencies, and protection levels for calendar integration.

Instructions

Create a new smart habit for auto-scheduling.

Args: title: Habit name/title ideal_time: Preferred time in "HH:MM" format (e.g., "09:00") duration_min_mins: Minimum duration in minutes frequency: Recurrence (DAILY, WEEKLY, MONTHLY, YEARLY) - default WEEKLY ideal_days: Days for WEEKLY frequency (MONDAY, TUESDAY, etc.) event_type: Type (FOCUS, SOLO_WORK, PERSONAL, etc.) - default SOLO_WORK defense_aggression: Protection level (DEFAULT, NONE, LOW, MEDIUM, HIGH, MAX) duration_max_mins: Maximum duration in minutes (defaults to min duration) description: Optional habit description enabled: Whether habit is active (default True) time_policy_type: Time policy (WORK, PERSONAL, MEETING). Auto-inferred if not provided.

Returns: Created habit object.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYes
ideal_timeYes
duration_min_minsYes
frequencyNoWEEKLY
ideal_daysNo
event_typeNoSOLO_WORK
defense_aggressionNoDEFAULT
duration_max_minsNo
descriptionNo
enabledNo
time_policy_typeNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/universalamateur/reclaim-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server