{"uid":"cap_Anr_5Q2GJA7Q9zqZtREGr","slug":"mydevtools-habit-recommender-3d3ca32d","name":"MyDevTools Habit Recommender","description":"Next-best habit recommendations (USDC on Base).","url":"https://api.mydev-tools.tech/agent/v1/habits/recommend","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":{"recommendations":[{"habit":"Morning run","action":"Hold the current cadence and schedule the weekend sessions","priority":0.82,"rationale":"Streak is 9 of a 21 best; weekends are the only failure window."}],"generated_for_habits":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pCAMQpKMmLwxKJa5FHA4p","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns next-best habit recommendations for a user based on their habit history and goals, with per-call micropayment via USDC on Base.","exampleAgentPrompt":"Based on my current habits around morning exercise and reading, what should my next habit focus be to keep building momentum toward my health and productivity goals?","exampleUseCases":[{"title":"Morning routine optimization","prompt":"I've been tracking sleep, hydration, and a 10-minute walk every morning — what's the best next habit I should add to strengthen my morning routine?"},{"title":"Productivity habit gap-fill","prompt":"I'm currently doing daily journaling and time-blocking at work, but my focus still drifts in the afternoons — what habit should I build next to fix that?"},{"title":"Wellness streak recovery","prompt":"I just missed a week of my meditation and stretching habits — what's the smartest next habit to rebuild momentum and get my wellness routine back on track?"}],"resultDescription":"A ranked list of next-best habit recommendations tailored to the user's existing habits and goals, likely including the habit name, rationale for the recommendation, priority or confidence score, and suggested implementation guidance.","failureModes":["Missing or insufficient habit history leads to generic or low-quality recommendations","Payment failure (insufficient USDC balance or Base network issues) results in 402 error and no response","Malformed request body returns 400 validation error","Rate limiting or quota exceeded returns 429 error","Server-side model errors return 500 with no recommendations"],"whenToPreferThis":"Use this endpoint when an agent needs to proactively suggest a next habit action for a user rather than just analyzing existing habits. It is distinct from the habit intelligence analysis endpoint (which evaluates current habits) and the habit plan generation endpoint (which creates multi-habit plans); this endpoint focuses specifically on the single next-best recommendation to build incrementally.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:40:01.456Z","isFirstParty":false}