# SameDayDesk Morpho Protection Quote

> SameDayDesk Morpho Protection Quote is a paid API for AI agents from agents.samedaydesk.com, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Returns deterministic protection plan quotes for Morpho lending positions, including partial repay transactions and health factor analysis, without signing or broadcasting anything.

## Facts

- Endpoint: GET https://agents.samedaydesk.com/defi/morpho-protection
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/samedaydesk-morpho-protection-quote-1f540233
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6OZc0A7EY11AQKGK24hcE

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 samedaydesk-morpho-protection-quote-1f540233
```

Example prompt: Check my Morpho lending position at 0x4352Cc849b33a936Ad93bB109aFDec1c89653b4f and generate a protection quote targeting a health factor of 1.25, with a 25 bps execution buffer and protection against a 10% price shock — I want to see the unsigned repay transactions before I do anything.

## When to prefer this

Choose this endpoint when an AI agent needs to plan Morpho lending position protection without executing anything — it produces unsigned, simulation-only repayment transactions safe for human review. Prefer this over generic DeFi aggregators when specifically working with Morpho Protocol positions and needing deterministic, parameterized health factor targeting with shock scenario modeling.

## Known failure modes

- Invalid or missing wallet address returns an error with no quotes
- No actionable positions returns an empty quotes array with status indicating no protection needed
- Network or RPC issues may cause stale on-chain state reads
- Positions in unverified state are flagged but not included in actionable plans
- Malformed execution buffer or health factor parameters may return a validation error

## How this service works

Deterministic agent APIs for web and company intelligence, repository security, agent-work economics, machine-service discoverability, payment preflight and settlement proof, wallet context, and Morpho decision evidence. Pay per call through Base x402 or native MPP, with a Circle Gateway Nanopayments path for gasless batched USDC.

## Output

A JSON object containing the wallet address, product identifier, and an array of protection quotes. Each quote lists available protection plans (e.g. partial_repay) with specific repay amounts and unsigned raw transactions (to, data, value). Also includes position counts (total, actionable, unverified), input parameters echoed back, and a boundary disclaimer confirming no custody, signing, or broadcasting occurs.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "Borrower EVM address on Base mainnet."
      },
      "executionBufferBps": {
       "type": "integer",
       "default": 25,
       "maximum": 500,
       "minimum": 0
      },
      "targetHealthFactor": {
       "type": "number",
       "default": 1.25,
       "maximum": 5,
       "exclusiveMinimum": 1
      },
      "protectAgainstShockPct": {
       "type": "number",
       "default": -10,
       "maximum": 0,
       "minimum": -99
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "product",
      "address",
      "inputs",
      "positionCount",
      "actionableCount",
      "unverifiedCount",
      "quotes",
      "invariants",
      "boundary"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "inputs": {
       "type": "object"
      },
      "quotes": {
       "type": "array"
      },
      "address": {
       "type": "string"
      },
      "product": {
       "type": "string",
       "const": "morpho-protection-quote"
      },
      "boundary": {
       "type": "string"
      },
      "invariants": {
       "type": "object"
      },
      "positionCount": {
       "type": "integer"
      },
      "actionableCount": {
       "type": "integer"
      },
      "unverifiedCount": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "inputs": {
   "executionBufferBps": 25,
   "targetHealthFactor": 1.25,
   "protectAgainstShockPct": -10
  },
  "quotes": [
   {
    "plans": [
     {
      "id": "partial_repay",
      "amount": "125.4",
      "transactions": [
       {
        "to": "0x...",
        "data": "0x...",
        "value": "0"
       }
      ]
     }
    ],
    "status": "protection_available"
   }
  ],
  "address": "0x4352Cc849b33a936Ad93bB109aFDec1c89653b4f",
  "product": "morpho-protection-quote",
  "boundary": "Unsigned planning output only; re-verify state and simulate before execution.",
  "invariants": {
   "custody": "none",
   "signing": "none",
   "broadcasting": "none"
  },
  "positionCount": 1,
  "actionableCount": 1,
  "unverifiedCount": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/samedaydesk-morpho-protection-quote-1f540233/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.samedaydesk.com](https://www.zero.xyz/host/agents.samedaydesk.com/llms.txt)
