Docs

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

ErrorCauseWhat to change
NotInstalledThe address has no Gate installed, or it is not a vault.Check the vault address.
NotAgentThe caller is not an agent of this vault, or its expiry passed.The owner adds the agent or extends its expiry.
NotModuleA strategy module was triggered but the owner has not enabled it.The owner enables the module.
AdapterNotAllowedThe agent or module may not use this adapter.The owner allows the adapter for that agent.
MarketNotAllowedThe 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

ErrorCauseWhat to change
EmptyPlanThe adapter returned no calls for the input.Check the action's input.
CallNotAllowedA call does not match any rule the adapter declared.Use an adapter that declares this call.
ForbiddenTargetA call targets the vault, the Gate, Safe7579, the EntryPoint or an installed module.No setting allows this.
MalformedCallCall data is too short for a selector, or starts with four zero bytes.Fix the adapter's encoding.
UndeclaredEthA call sends ETH but the plan does not list ETH among its tokens.Fix the adapter's plan.
UndeclaredTokenA 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.
DuplicateTokenThe plan lists the same token twice.Fix the adapter's plan.
BalanceUnreadableA declared token's balance could not be read.Check the token address.
AllowanceLeftAn approval given in the batch did not end at zero.Spend the full approval in the same batch.

Caps and floors

ErrorCauseWhat to change
CapExceededThe 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.
InvalidPeriodA cap was set with a period of zero.Set a period in seconds.
NoMinRateThe owner set no floor for this direction of the pair.The owner sets a floor, or an open floor for an unpriced pair.
BelowMinRateThe swap returned less than the floor allows.Ask for a better price or a smaller amount.
SwapNotSettledA swap did not spend the sold token or did not receive the bought one.Check the market and the amount.

Family and pause

ErrorCauseWhat to change
VaultPausedThe vault is paused; every agent and module is frozen.The root lifts the pause.
NotPauserThe caller is neither the vault nor its named pauser.Pause from the vault or the pauser address.
NotProposedParentA vault tried to accept a child that did not propose it.The child proposes the parent first.
NotLinkedThe two vaults are not in the same family.Link them, or send elsewhere through a listed recipient.

Deposit router

ErrorCauseWhat to change
NotVaultThe address has no Gate installed, so it is not a Mortise vault yet.Create the vault first, then deposit.
ZeroAmountThe deposit amount is zero.Deposit more than zero.
CapExceededThe 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.
NoPriceA 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.