Skip to main content
Glama

Replay Morpho PreLiquidation

morpho_preliquidation_replay

Reconstruct one successful Base Morpho PreLiquidation transaction from its receipt and the exact block state, returning repaid and seized assets, protocol-oracle valuation, gross incentive, configured health window, and transaction gas before off-chain costs. Use morpho_market_underwrite for current market risk, morpho_position for a current borrower, or morpho_protection for a future protection plan. Historical read-only evidence; no transaction simulation, wallet, signing, or broadcast. Payment challenge and credentials are bound to GET https://agents.samedaydesk.com/defi/morpho-preliquidation-replay, not mcp://. Retry the identical authorized arguments and credential.

Input Schema

NameRequiredDescriptionDefault
transactionHashYesSuccessful Base transaction containing a Morpho PreLiquidate event

Output Schema

NameRequiredDescriptionDefault
okYes
chainYes
eventsYes
productYes
versionYes
boundaryYes
eventCountYes
transactionYes
verificationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "boundary": {
      +      "type": "string"
      +    },
      +    "chain": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "id": {
      +          "const": 8453,
      +          "type": "number"
      +        },
      +        "name": {
      +          "const": "Base mainnet",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "name"
      +      ],
      +      "type": "object"
      +    },
      +    "eventCount": {
      +      "exclusiveMinimum": 0,
      +      "type": "integer"
      +    },
      +    "events": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "assets": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "repaid": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "amount": {
      +                    "type": "string"
      +                  },
      +                  "decimals": {
      +                    "type": "number"
      +                  },
      +                  "raw": {
      +                    "type": "string"
      +                  },
      +                  "symbol": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "token": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "token",
      +                  "symbol",
      +                  "decimals",
      +                  "raw",
      +                  "amount"
      +                ],
      +                "type": "object"
      +              },
      +              "repaidSharesRaw": {
      +                "type": "string"
      +              },
      +              "seized": {
      +                "$ref": "#/properties/events/items/properties/assets/properties/repaid"
      +              }
      +            },
      +            "required": [
      +              "repaid",
      +              "seized",
      +              "repaidSharesRaw"
      +            ],
      +            "type": "object"
      +          },
      +          "borrower": {
      +            "type": "string"
      +          },
      +          "contract": {
      +            "type": "string"
      +          },
      +          "grossEconomics": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "boundary": {
      +                "type": "string"
      +              },
      +              "incentiveInLoanAmount": {
      +                "type": "string"
      +              },
      +              "incentiveInLoanRaw": {
      +                "type": "string"
      +              },
      +              "incentivePct": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "incentiveSign": {
      +                "enum": [
      +                  "negative",
      +                  "positive"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "incentiveInLoanRaw",
      +              "incentiveInLoanAmount",
      +              "incentiveSign",
      +              "incentivePct",
      +              "boundary"
      +            ],
      +            "type": "object"
      +          },
      +          "liquidator": {
      +            "type": "string"
      +          },
      +          "marketId": {
      +            "type": "string"
      +          },
      +          "parameters": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "closeFactorEndRaw": {
      +                "type": "string"
      +              },
      +              "closeFactorStartRaw": {
      +                "type": "string"
      +              },
      +              "incentiveEndRaw": {
      +                "type": "string"
      +              },
      +              "incentiveStartRaw": {
      +                "type": "string"
      +              },
      +              "marketLltvPct": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "marketLltvRaw": {
      +                "type": "string"
      +              },
      +              "preLltvPct": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "preLltvRaw": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "marketLltvRaw",
      +              "marketLltvPct",
      +              "preLltvRaw",
      +              "preLltvPct",
      +              "closeFactorStartRaw",
      +              "closeFactorEndRaw",
      +              "incentiveStartRaw",
      +              "incentiveEndRaw"
      +            ],
      +            "type": "object"
      +          },
      +          "protocolOracle": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "address": {
      +                "type": "string"
      +              },
      +              "collateralQuotedInLoanAmount": {
      +                "type": "string"
      +              },
      +              "collateralQuotedInLoanRaw": {
      +                "type": "string"
      +              },
      +              "priceRaw": {
      +                "type": "string"
      +              },
      +              "scale": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "address",
      +              "priceRaw",
      +              "scale",
      +              "collateralQuotedInLoanRaw",
      +              "collateralQuotedInLoanAmount"
      +            ],
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "contract",
      +          "marketId",
      +          "liquidator",
      +          "borrower",
      +          "assets",
      +          "protocolOracle",
      +          "grossEconomics",
      +          "parameters"
      +        ],
      +        "type": "object"
      +      },
      +      "minItems": 1,
      +      "type": "array"
      +    },
      +    "ok": {
      +      "const": true,
      +      "type": "boolean"
      +    },
      +    "product": {
      +      "const": "morpho-preliquidation-replay",
      +      "type": "string"
      +    },
      +    "transaction": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "blockNumber": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "blockTimestamp": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "effectiveGasPriceWei": {
      +          "type": "string"
      +        },
      +        "from": {
      +          "type": "string"
      +        },
      +        "gasCostEth": {
      +          "type": "string"
      +        },
      +        "gasCostWei": {
      +          "type": "string"
      +        },
      +        "gasUsed": {
      +          "type": "string"
      +        },
      +        "hash": {
      +          "pattern": "^0x[0-9a-f]{64}$",
      +          "type": "string"
      +        },
      +        "status": {
      +          "const": "success",
      +          "type": "string"
      +        },
      +        "to": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "hash",
      +        "blockNumber",
      +        "blockTimestamp",
      +        "from",
      +        "status",
      +        "gasUsed",
      +        "effectiveGasPriceWei",
      +        "gasCostWei",
      +        "gasCostEth"
      +      ],
      +      "type": "object"
      +    },
      +    "verification": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "event": {
      +          "const": "strict ABI decode of the official PreLiquidate signature",
      +          "type": "string"
      +        },
      +        "params": {
      +          "const": "PreLiquidation immutable contract reads at the execution block",
      +          "type": "string"
      +        },
      +        "price": {
      +          "const": "PreLiquidation oracle read at the execution block",
      +          "type": "string"
      +        },
      +        "receipt": {
      +          "const": "fresh direct Base RPC",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "receipt",
      +        "event",
      +        "params",
      +        "price"
      +      ],
      +      "type": "object"
      +    },
      +    "version": {
      +      "const": "1.0.0",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "ok",
      +    "product",
      +    "version",
      +    "chain",
      +    "transaction",
      +    "eventCount",
      +    "events",
      +    "verification",
      +    "boundary"
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does most of it: it declares the operation read-only historical evidence with no simulation, wallet, signing, or broadcast, and discloses the payment-challenge/credential binding to a GET endpoint rather than mcp://, plus retry semantics. It stops short of stating auth/rate-limit specifics or failure modes, so not a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then alternatives, then behavioral caveats — a sensible order. Dense but each clause carries information; the endpoint/credential sentence is slightly heavy but is genuinely non-obvious operational detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be enumerated (the description does anyway, harmlessly). The read-only scope, payment binding and retry instruction cover the operational essentials for a one-parameter tool; only explicit auth/permission expectations are absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single transactionHash parameter is fully documented with a pattern and the constraint that it must contain a Morpho PreLiquidate event. The description adds no syntax or format detail beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Reconstruct'), a precise resource (one successful Base Morpho PreLiquidation transaction), its inputs (receipt + exact block state) and its outputs (repaid/seized assets, oracle valuation, incentive, health window, gas). It explicitly names three sibling tools it is not, so an agent can distinguish it without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Routes the agent explicitly: morpho_market_underwrite for current market risk, morpho_position for a current borrower, morpho_protection for a future plan — this tool is for historical replay of one settled transaction. The 'no transaction simulation' line further rules out a plausible misuse.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.