# mydev-tools Habit Analyze

> mydev-tools Habit Analyze is a paid API for AI agents from api.mydev-tools.tech, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-28).

Analyzes user habit data to produce intelligence insights about behavioral patterns and habit performance.

## Facts

- Endpoint: POST https://api.mydev-tools.tech/agent/v1/habits/analyze?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mydev-tools-habit-analyze-0a423966
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jREC4u95f06VFZUoXHHF3

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability mydev-tools-habit-analyze-0a423966 -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Habit intelligence analysis (USDC on Base).

## Output

Returns a structured habit intelligence report including pattern analysis, consistency scores, trend data, and behavioral insights derived from the submitted habit data.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mydev-tools-habit-analyze-0a423966/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.mydev-tools.tech](https://www.zero.xyz/host/api.mydev-tools.tech/llms.txt)
