Skip to main content
Glama

Ekubo Protocol

Prepare a guarded Morpho vault deposit

prepare_morpho_vault_deposit
Read-only

Prepare an exact-approval Morpho Vault V2 deposit through the official SDK's VaultBundlesV1 route. The caller supplies a fresh RAY-scaled max share price, which is enforced onchain against ERC-4626 share-price inflation; shares are minted to the sender and the server performs no data fetch.

Input Schema

NameRequiredDescriptionDefault
vaultYesExact Morpho Vault V2 address returned by get_morpho_vaults
amountYesPositive underlying-asset amount in base units (positive decimal integer)
senderYesWallet that will execute the Morpho action (address)
chain_idYesChain returned by get_morpho_vaults
deadlineNoUnix timestamp after which VaultBundlesV1 rejects the deposit; defaults to two hours after preparation. One already past makes the plan a guaranteed revert. (positive decimal integer)
recipientNoVault-share recipient; must equal sender if supplied, because VaultBundlesV1 mints shares only to the transaction sender (address)
max_share_price_rayYesMaximum acceptable vault share price in RAY (1e27), derived by the agent from fresh Morpho/onchain vault state plus the user's slippage tolerance (positive decimal integer)

Output Schema

NameRequiredDescriptionDefault
execution_plan_referenceNoartifact_reference; pass unchanged

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond readOnlyHint=true, the description discloses real behavior: the plan uses exact-approval semantics, the max share price is enforced onchain as ERC-4626 inflation protection, shares are minted only to the sender, and 'the server performs no data fetch' — meaning the tool does not verify state itself. The weak point is that it does not say what the tool returns (an unsigned plan) or that signing/broadcast is out of scope, though the output schema covers the return shape.

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?

Two dense sentences, front-loaded with the action and the route, with no filler. It is jargon-heavy (RAY, VaultBundlesV1, ERC-4626) but each clause carries information an agent needs.

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?

For a 7-parameter prepare tool with a fully documented schema and an output schema, the description supplies the crucial missing context: the price input must come from fresh state and the server does no fetching of its own. It omits only the downstream handoff (sign/submit the returned plan) and any slippage/price-staleness failure modes beyond the onchain guard.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description adds value by explaining why max_share_price_ray must be freshly derived and how it is enforced onchain, and by reinforcing that shares go to the sender (constraining recipient). It does not add anything on amount, deadline, or chain_id beyond the schema.

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

Purpose4/5

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

The description states a specific verb and resource ('Prepare an exact-approval Morpho Vault V2 deposit') and names the exact route ('official SDK's VaultBundlesV1'). It distinguishes itself from redeem/withdraw siblings by the word 'deposit' but never names an alternative tool explicitly, so differentiation is implicit rather than stated.

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

Usage Guidelines3/5

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

Usage context is implied rather than spelled out: 'the caller supplies a fresh RAY-scaled max share price' signals the agent must first read onchain vault state, and the schema points to get_morpho_vaults for the address and chain. There is no explicit when-to-use/when-not guidance versus prepare_morpho_vault_redeem, prepare_morpho_vault_withdraw, or direct-approval flows.

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.