{"uid":"cap_S9E8KFCfPQ4t9izGkxyo7","slug":"habits-plan-habit-planning-intelligence-445f48c7","name":"habits.plan — Habit Planning Intelligence","description":"Habit plan generation (USDC on Base).","url":"https://api.mydev-tools.tech/agent/v1/habits/plan?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["habits"],"properties":{"habits":{"type":"array","items":{"type":"object","required":["name","completion_rate","current_streak","best_streak"],"properties":{"name":{"type":"string"},"risk_score":{"type":"number","maximum":1,"minimum":0},"best_streak":{"type":"integer","minimum":0},"average_mood":{"type":"number","maximum":10,"minimum":1},"energy_trend":{"enum":["rising","stable","falling"],"type":"string"},"current_streak":{"type":"integer","minimum":0},"completion_rate":{"type":"number","maximum":1,"minimum":0},"mood_correlation":{"type":"number","maximum":1,"minimum":-1}}},"maxItems":25,"minItems":1},"locale":{"type":"string"},"persona":{"type":"string"},"horizon_days":{"type":"integer","default":35,"maximum":180,"minimum":7}},"description":"Caller-supplied habit summaries. Stateless: no identifier of any stored human user is accepted or resolved. Batch habits into one call — the price is per request, not per habit.","additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"plan":[{"habit":"Morning run","milestones":[{"day":7,"goal":"Match the 21-day best streak pace"}],"weekly_target":5}],"rationale":"Targets the weekend gap without raising total weekly load.","horizon_days":35}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8JS0mmWCrr0WFV6hMI_r_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates an intelligent, personalized habit plan based on user goals and behavioral context","exampleAgentPrompt":"Can you put together a structured habit plan for me focused on improving my morning routine and fitness over the next 30 days? I want to wake up earlier, exercise 4 times a week, and meditate daily.","exampleUseCases":[{"title":"30-day fitness habit kickstart","prompt":"Build me a 30-day habit plan to get back into shape — I want to exercise at least 4 days a week, cut down on junk food, and get 8 hours of sleep each night. Start simple and ramp up gradually."},{"title":"Productivity routine for remote worker","prompt":"I work from home and I've been struggling with focus and procrastination. Can you create a habit plan for me to improve my daily productivity, including deep work blocks, regular breaks, and an end-of-day wind-down routine over the next 4 weeks?"},{"title":"Learning habit plan for skill building","prompt":"I want to learn Spanish over the next 3 months. Can you design a daily habit plan for me that includes vocabulary practice, listening exercises, and speaking sessions — fitting within about 45 minutes a day?"}],"resultDescription":"Returns a structured habit plan with recommended habits, their frequency and timing, sequencing logic, and milestones tailored to the user's goals and context. May include rationale for habit choices and tips for adherence.","failureModes":["Insufficient goal context provided leading to generic or unhelpful plan","Conflicting or ambiguous inputs resulting in poorly scoped recommendations","Payment failure via x402 protocol blocking execution","Malformed request body causing a 400 error","Timeouts if the generation is complex and server load is high"],"whenToPreferThis":"Choose this endpoint when you need to generate a forward-looking, personalized habit plan from scratch based on user goals. Use this over habits.analyze (which analyzes existing habits) or habits.insights (which extracts insights from habit data) when the user has no current habit data but wants structured recommendations for what to start doing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T18:59:31.393Z","isFirstParty":false,"canonicalSlug":"habits-plan-habit-planning-intelligence-445f48c7"}