Skip to main content
Glama

Build Equity Vault Deposit

build_equity_deposit_tx

Build the UNSIGNED call batch to deposit into a stock + yield equity vault, for the given wallet to sign. Non-custodial. Returns calls[] (approve USDG → router, authorize the router on Morpho, the one-call equityEntry, revoke) to submit as ONE atomic batch (EIP-5792 wallet_sendCalls / Safe), plus the same preview as simulate_equity_deposit. meta.signingUrl is a one-click link for a human to sign in the app. Swap calldata is time-sensitive (meta.expiresAt).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYesDeposit amount in human units of the vault's deposit token (USDG), e.g. '10000'.
chainIdNoChain to target. Supported: 1, 4663. Default: 1.
slippageNoSwap slippage ratio. Default 0.01 (the app's setting for vaults), capped at 0.01.
strategyIdYesThe vault's id from list_strategies (starts with 'equity-').
stockLtvPctNoStock-leg LTV percent to borrow at (e.g. '50'). Default: the vault's targetLtvPct. Capped at 88% of the stock market's liquidation LTV (55 on a 62.5% market) — a higher value is refused, not clamped.
userAddressYesThe wallet that will sign and send; the stock leg and yield loop are opened for it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false. The description adds significant behavioral context beyond that: it says the batch is unsigned, non-custodial, atomic (EIP-5792/Safe), time-sensitive (meta.expiresAt), and includes a signingUrl for human signing. This enriches the agent's understanding of side effects and constraints without contradicting the annotations.

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?

The description is information-dense but not bloated. It leads with the primary purpose, then enumerates the return payload specifics (calls list, preview, signingUrl, expiresAt) and a warning about time-sensitivity. Each sentence contributes to either selection or invocation, though the exact call sequence could be seen as slightly verbose for someone just wanting to know what it does.

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?

With no output schema, the description carries the burden of explaining return values. It covers the main output (calls[] with the explicit sequence), the preview equivalence, the signingUrl, and the expiresAt time-sensitivity. It doesn't detail error conditions or prerequisites, but for a transaction-builder tool this is sufficient for an agent to invoke it correctly.

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?

Input schema coverage is 100% with documented parameter descriptions. The description adds minimal parameter-specific detail; it references strategyId indirectly via 'equity vault' and 'time-sensitive (meta.expiresAt)' relates to the output, not parameters. Since schema already covers parameters fully, the description does not need to duplicate, and a baseline of 3 is appropriate.

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 ('Build') and resource ('UNSIGNED call batch to deposit into a stock + yield equity vault') and clearly differentiates from siblings like build_equity_exit_tx and build_leverage_tx by explicitly scoping to deposit. It also names the output type (calls[]) and the signing context, leaving no ambiguity about what this tool accomplishes.

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

Usage Guidelines4/5

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

Implicitly communicates when to use: it says 'for the given wallet to sign' and mentions the preview is the same as simulate_equity_deposit, suggesting the simulation tool is for preview-only. It doesn't explicitly name alternatives or state 'use X instead of Y', but the context is clear enough for an agent to infer the deposit construction use case versus other build tools.

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.