Skip to main content
Glama

Morpho deposit

build_morpho_deposit
Read-onlyIdempotent

Build unsigned transactions to deposit USDG into a Morpho vault on Robinhood Chain, or to withdraw it. Without a vault, the largest USDG vault is used. Vaults carry smart contract, curator and market risk. Returns calls for the wallet owner to sign and send in order on Robinhood Chain (chain ID 4663). No keyfo tool signs. The answer also has sign_url: a keyfo page where the user checks the transaction and signs it in their own wallet. It stays open for 15 minutes and gets a new quote itself when the price is out of date. Show that link to the user, and never ask them to paste the transaction data anywhere.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "wallet": "<wallet>"
    },
    "name": "build_morpho_deposit"
  }
}

Input Schema

NameRequiredDescriptionDefault
pctNoShare to move: of the wallet’s USDG for a deposit, of its vault shares for a withdrawal. Above 0, up to 100.
usdNoUSDG to deposit or withdraw (1 USDG is about $1). Use this or pct.
sideNodeposit or withdraw. deposit by default.deposit
vaultNoVault address or name from morpho_rates. Empty uses the largest USDG vault.
walletYesThe wallet that signs and sends, and holds the USDG or the vault shares.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, the description explains that no keyfo tool signs, that the returned calls must be signed and sent in order, that the sign_url page expires after 15 minutes and re-quotes itself, and it discloses smart contract, curator, and market risk. That is exactly the operational and safety context the readOnly/openWorld annotations cannot convey, and the "builds unsigned transactions, never signs" framing is consistent with readOnlyHint=true.

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 purpose and the vault default are front-loaded, and the sign_url handling instructions earn their space because they govern user-facing behavior. It is somewhat long and the withdraw case is tacked on with "or to withdraw it," which reads as an afterthought for a tool named build_morpho_deposit.

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

Completeness5/5

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

For a transaction-building tool with no output schema, the description covers what is missing elsewhere: the shape of the return (ordered calls plus sign_url), the chain, the expiry/re-quote lifecycle, and a risk disclosure. An agent has enough to call it and to tell the user what to do next.

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 description coverage is 100%, so the meaning of pct, usd, side, vault, and wallet is already documented in the schema; the description only reiterates the largest-USDG-vault default for vault. It adds no guidance on the pct-versus-usd mutual exclusivity or the above-0/up-to-100 constraint beyond what the schema says, which is the expected baseline of 3.

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: "Build unsigned transactions to deposit USDG into a Morpho vault on Robinhood Chain, or to withdraw it," and names the chain (4663). Purpose is unambiguous, but no sibling is named to compare against — an agent looking at build_trade, morpho_loop, and this tool will not find explicit routing from the description alone.

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?

Clear guidance for the vault parameter ("Without a vault, the largest USDG vault is used") and for what to do with the result: show the sign_url to the user and never ask them to paste transaction data. What is not covered is when to prefer this over morpho_loop or how to pick between the usd and pct paths — that routing is left to the schema.

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.

Resources