Agents
Errors and refusals
A refused action reverts with a named error and moves nothing. The SDK decodes it with mortiseErrorName, and the MCP server's mortise_simulate tool returns it before anything is sent.
Agent and access
| Error | Cause | What to change |
|---|---|---|
NotInstalled | The address has no Gate installed, or it is not a vault. | Check the vault address. |
NotAgent | The caller is not an agent of this vault, or its expiry passed. | The owner adds the agent or extends its expiry. |
NotModule | A strategy module was triggered but the owner has not enabled it. | The owner enables the module. |
AdapterNotAllowed | The agent or module may not use this adapter. | The owner allows the adapter for that agent. |
MarketNotAllowed | The pool, market, curve, recipient or route is not listed for this adapter. | The owner lists the market, or turns on open markets for the agent. |
The plan
| Error | Cause | What to change |
|---|---|---|
EmptyPlan | The adapter returned no calls for the input. | Check the action's input. |
CallNotAllowed | A call does not match any rule the adapter declared. | Use an adapter that declares this call. |
ForbiddenTarget | A call targets the vault, the Gate, Safe7579, the EntryPoint or an installed module. | No setting allows this. |
MalformedCall | Call data is too short for a selector, or starts with four zero bytes. | Fix the adapter's encoding. |
UndeclaredEth | A call sends ETH but the plan does not list ETH among its tokens. | Fix the adapter's plan. |
UndeclaredToken | A swap token is missing from the plan's token list. A call to a token the plan does not list is refused as CallNotAllowed. | Fix the adapter's plan. |
DuplicateToken | The plan lists the same token twice. | Fix the adapter's plan. |
BalanceUnreadable | A declared token's balance could not be read. | Check the token address. |
AllowanceLeft | An approval given in the batch did not end at zero. | Spend the full approval in the same batch. |
Caps and floors
| Error | Cause | What to change |
|---|---|---|
CapExceeded | The spend would pass the cap for this token in the current window. The error carries the amount used and the limit. | Spend less, wait for the next window, or the owner raises the cap. |
InvalidPeriod | A cap was set with a period of zero. | Set a period in seconds. |
NoMinRate | The owner set no floor for this direction of the pair. | The owner sets a floor, or an open floor for an unpriced pair. |
BelowMinRate | The swap returned less than the floor allows. | Ask for a better price or a smaller amount. |
SwapNotSettled | A swap did not spend the sold token or did not receive the bought one. | Check the market and the amount. |
Family and pause
| Error | Cause | What to change |
|---|---|---|
VaultPaused | The vault is paused; every agent and module is frozen. | The root lifts the pause. |
NotPauser | The caller is neither the vault nor its named pauser. | Pause from the vault or the pauser address. |
NotProposedParent | A vault tried to accept a child that did not propose it. | The child proposes the parent first. |
NotLinked | The two vaults are not in the same family. | Link them, or send elsewhere through a listed recipient. |
Deposit router
| Error | Cause | What to change |
|---|---|---|
NotVault | The address has no Gate installed, so it is not a Mortise vault yet. | Create the vault first, then deposit. |
ZeroAmount | The deposit amount is zero. | Deposit more than zero. |
CapExceeded | The vault's counted deposits would pass the per-vault limit. The error carries the total and the limit in USD with 18 decimals. | Deposit less. |
NoPrice | A token with a Chainlink feed has no usable price right now, for example a stock token while its oracle is paused. | Try again when the feed updates. |
Root operations
Safe7579 reports a failing hook, or a failing call inside a batch, as a bare ExecutionFailed. The SDK's simulateRootCall recovers the reason and throws a RootCallError that names the source: the vault's hook, such as the timelock's NotScheduled, the index of the failing call in the batch, or the module that refused to install.