{"uid":"cap_jREC4u95f06VFZUoXHHF3","slug":"mydev-tools-habit-analyze-0a423966","name":"mydev-tools Habit Analyze","description":"Habit intelligence analysis (USDC on Base).","url":"https://api.mydev-tools.tech/agent/v1/habits/analyze?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":{"watchouts":["Completion dips below 0.6 on weekends."],"highlights":["Morning run is 9 days into a streak, approaching its best of 21."],"recommendations":["Pre-commit a fixed weekend start time to protect the streak."],"aggregate_summary":{"momentum":"building","habits_tracked":1,"average_completion_rate":0.72}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TibHuENDW98FRbFPr7Fgl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes user habit data to produce intelligence insights about behavioral patterns and habit performance.","exampleAgentPrompt":"Can you analyze my habit data from the last 30 days and give me an intelligence breakdown of which patterns are consistent, which are struggling, and where I'm improving?","exampleUseCases":[{"title":"Weekly habit performance review","prompt":"Analyze my habit data from this past week and give me a full breakdown of how consistent I've been, which habits are holding strong, and which ones I'm falling behind on."},{"title":"Identify habit failure patterns","prompt":"I've been struggling to stick to my routines — can you analyze my habit history and identify what behavioral patterns are causing me to fail at certain habits?"},{"title":"Monthly self-improvement audit","prompt":"Run an analysis on my habits over the past month and give me an intelligence report with scores, trends, and which behaviors are actually sticking versus which are slipping."}],"resultDescription":"Returns a structured habit intelligence report including pattern analysis, consistency scores, trend data, and behavioral insights derived from the submitted habit data.","failureModes":["Invalid or missing habit data input returns a 400 error","Malformed request body causes parsing failure","Payment not received or insufficient USDC triggers 402 Payment Required","Server-side analysis failure returns 500 error","Empty habit history may return minimal or empty insights"],"whenToPreferThis":"Choose this endpoint when you need a deep analytical breakdown of habit data — including patterns, trends, and scoring — rather than just fetching raw habit records or generating a forward-looking plan. Prefer it over habits.insights for raw pattern detection versus narrative summaries, and over habits.plan when the goal is retrospective analysis rather than future scheduling.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T12:33:05.815Z","isFirstParty":false,"canonicalSlug":"mydev-tools-habit-analyze-0a423966"}