Skip to main content
Glama

write_pool_deposit

Build an unsigned deposit transaction into an Arcadia lending tranche (ERC-4626). Lenders deposit the pool's underlying asset (USDC/WETH/cbBTC) and receive tranche shares that accrue interest from borrowers. Requires prior ERC-20 approval to the tranche (see write_wallet_approve). To check current lender yield, call read_pool_list or read_pool_info.

Input Schema

NameRequiredDescriptionDefault
assetsYesAmount of underlying asset to deposit, in raw units (e.g. '1000000' = 1 USDC since USDC has 6 decimals).
chain_idNoChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
receiverYesAddress that receives the minted tranche shares. Usually the depositor's own wallet.
tranche_addressYesTranche contract address (ERC-4626 vault). Get this from read_pool_list: each pool's `tranches[0].address`.

Output Schema

NameRequiredDescriptionDefault
descriptionYes
transactionYes
predicted_account_addressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / tranche_address / description
      Previous value: -"Tranche contract address (ERC-4626 vault). Get this from read.pool.list — each pool's `tranches[0].address`."New value: +"Tranche contract address (ERC-4626 vault). Get this from read_pool_list: each pool's `tranches[0].address`."
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • changedInput schema / properties / chain_id / description
      Previous value: -"Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)"New value: +"Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)"
  3. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare a non-readonly, non-idempotent, non-destructive write; the description goes beyond by clarifying it BUILDS an unsigned transaction (not execute) and that approval must precede it. That unsigned-vs-executed distinction and the approval dependency are meaningful behavioral context the annotations wouldn't convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the action, then mechanics, then prerequisite, then a pointer to related reads. No filler; every clause carries actionable information.

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?

An output schema exists (so return shape needn't be explained) and annotations cover the safety profile; the description supplies the approval prerequisite and yield-check follow-up. Slightly short of 5 only because the unsigned-transaction handoff workflow (sign/send via dev_send?) isn't stated.

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 baseline is 3; the description earns extra by explaining that assets are the pool's underlying (USDC/WETH/cbBTC) and that receiver receives minted tranche shares, adding intent beyond the raw field descriptions.

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?

Precise verb+resource: 'Build an unsigned deposit transaction into an Arcadia lending tranche (ERC-4626)' and explains the lender mechanics (deposit underlying, receive interest-accruing shares). It doesn't explicitly contrast with write_pool_redeem, but it does route to adjacent siblings (write_wallet_approve, read_pool_list/read_pool_info), so differentiation is implied rather than spelled out.

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?

States a concrete prerequisite ('Requires prior ERC-20 approval to the tranche (see write_wallet_approve)') and points to read_pool_list/read_pool_info for yield checks. Clear usage context, though it never says when NOT to use it or explicitly names write_pool_redeem as the inverse operation.

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.