Skip to main content
Glama

Prepare deposit

prepare_deposit
Read-onlyIdempotent

Add collateral to an existing position: approval (if needed) and deposit(amount). Checks both caps. Returns UNSIGNED transaction data (to, data, value, gas) for the user's own wallet; simulated against the latest block first and refused if it would revert. Never signs or sends.

Input Schema

NameRequiredDescriptionDefault
ownerYesThe user's wallet address (0x...). Used to read the position and as the simulated sender; nothing is signed.
amountYesCollateral to add, in USDG as a decimal string, e.g. "11" or "25.5"
marketYesMarket address (0x...) or symbol, e.g. NO-NVDA

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that an approval step may be inserted, that both caps are checked, that the result is UNSIGNED calldata (to, data, value, gas), that it is simulated against the latest block and refused on revert, and that it never signs or sends. These are exactly the behavioral facts an agent needs and none are in the annotation set.

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?

Four tight sentences, zero filler: action first, then guards, then return shape, then the safety boundary. Every clause carries information the agent would otherwise have to guess.

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?

With no output schema, the description correctly describes the return payload (to, data, value, gas) and adds the failure semantics (refused if simulation reverts). Nothing needed to call or interpret this three-parameter tool is missing.

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 still adds meaning by framing amount as the deposit input and noting that both caps are checked against it, telling the agent that an out-of-range amount will fail rather than silently clamp. Minor value-add over the schema, hence 4 rather than 3.

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 concrete verb and resource ('Add collateral to an existing position') plus the underlying call sequence (approval then deposit). The phrase 'for the user's own wallet' implicitly separates it from the prepare_mandate_deposit sibling, so an agent can place it in the family without opening the schema.

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 is implied by 'add collateral to an existing position', which tells the agent the position must already exist, but there is no explicit 'use this instead of prepare_mandate_deposit / prepare_create_position' guidance. With 22+ siblings including a near-duplicate mandate variant, the missing routing sentence is a real gap.

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