Skip to main content
Glama

Prepare a lending deposit

build_deposit
Read-onlyIdempotent

Returns the unsigned transactions to deposit USDC for lending, optionally setting per-token lending limits in the same transaction (needed before a first deposit can be lent). Check get_risk_report for each token first.

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": {
      "amount_usdc": "<amount_usdc>",
      "lender": "<lender>"
    },
    "name": "build_deposit"
  }
}

Input Schema

NameRequiredDescriptionDefault
lenderYesLender wallet that will sign; used to skip unneeded approvals and check balances
limitsNoPer-token lending limits to set in the same transaction. A first deposit needs at least one to be lent
amount_usdcYesUSDC to deposit, e.g. 500

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / amount_usdc / description
      Added value: +"USDC to deposit, e.g. 500"
    • addedInput schema / properties / lender / description
      Added value: +"Lender wallet that will sign; used to skip unneeded approvals and check balances"
    • addedInput schema / properties / limits / description
      Added value: +"Per-token lending limits to set in the same transaction. A first deposit needs at least one to be lent"
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and non-destructive, and the description is consistent with that by stating it returns unsigned transactions rather than executing anything. It adds useful behavioral context — limits can be rolled into the same transaction, and the tool's output is unsigned txs to be signed by the lender — though it does not describe what happens to approvals the lender wallet already has.

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?

Two sentences, front-loaded with the return value and the conditional capability, then the prerequisite. No filler, nothing to remove.

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 three-parameter builder with no output schema, the description covers what the tool returns and the ordering constraint that matters. Minor gaps remain around chain context and how the returned transactions are consumed, but nothing an agent needs to call it correctly is missing.

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 all three parameters already carry meaning, including the lender's role in skipping approvals and the limits semantics. The description restates the limits-before-first-deposit rule already present in the schema, adding little beyond it; baseline 3 applies.

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 and resource — returns unsigned deposit transactions for USDC lending — and adds the optional bundled limits behavior. An agent can distinguish this from build_set_limits, build_withdraw, and build_borrow without opening any schema.

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?

Gives a concrete prerequisite: check get_risk_report for each token first, and notes that limits are needed before a first deposit can be lent. It does not say when to use build_set_limits on its own instead of the bundled limits path, so guidance is strong but not exhaustive.

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.