# MyDevTools Habit Recommender

> MyDevTools Habit Recommender is a paid API for AI agents from api.mydev-tools.tech, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-14).

Returns next-best habit recommendations for a user based on their habit history and goals, with per-call micropayment via USDC on Base.

## Facts

- Endpoint: POST https://api.mydev-tools.tech/agent/v1/habits/recommend
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mydevtools-habit-recommender-3d3ca32d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Anr_5Q2GJA7Q9zqZtREGr

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 mydevtools-habit-recommender-3d3ca32d -d '<json body>'
```

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

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Next-best habit recommendations (USDC on Base).

## Output

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.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mydevtools-habit-recommender-3d3ca32d/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)
