Skip to main content
Glama

Prepare an sGHO deposit or withdrawal

prepare_sgho_action
Read-only

v3 only, Ethereum only. Build an unsigned transaction to deposit GHO into the sGHO vault or withdraw from it. Non-custodial: the user's wallet signs and submits, so building one commits them to nothing. Choose sensible values, build it, and say what you chose rather than stopping to ask. Send only the arguments that apply and leave every other one out. On 'deposit', 'amount' is GHO. On 'withdraw', 'amount' is a number of sGHO SHARES, not GHO - get_sgho_preview converts - or pass max:true to redeem the whole position and omit 'amount'. 'recipient' is only for sending the result to a different address than the sender. A deposit needs a GHO allowance: when the result is ApprovalRequired, submit its 'approval' transaction and then the 'originalTransaction' beside it, in that order.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxNowithdraw only: redeem the entire share balance.
actionYesWhich side to build: deposit GHO, or withdraw by redeeming shares.
amountNoAmount in main units: GHO to deposit, or sGHO shares to redeem. Omit only when max=true.
senderYesWallet address, 0x-prefixed (40 hex chars).
versionNoOptional, and only 'v3': this tool exists on v3 only.
recipientNoOptional address to receive the shares (deposit) or the GHO (withdraw). Omit the argument entirely to use the sender.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already mark the tool as read-only and non-destructive; the description reinforces and expands this by explaining the non-custodial unsigned-transaction behavior and that building commits the user to nothing. It also discloses the allowance/ApprovalRequired flow. No contradiction with annotations.

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?

The description is dense but every sentence carries operational value. It front-loads scope and the core action, then flows into parameter rules and the approval edge case without filler or repetition.

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?

Even without an output schema, the description covers chain and version constraints, both actions, parameter semantics, the max flag, recipient behavior, and the ApprovalRequired result path. This is sufficient for correct selection and invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the description adds crucial semantics beyond the schema: amount means GHO on deposit but sGHO shares on withdraw, max:true omits amount, recipient defaults to sender, and only applicable arguments should be sent. This significantly reduces ambiguity for an agent.

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?

The description states a specific verb and resource: 'Build an unsigned transaction to deposit GHO into the sGHO vault or withdraw from it.' It also narrows scope with 'v3 only, Ethereum only' and clearly separates the two actions. This distinguishes it from sibling data/read tools like get_sgho_vault and get_sgho_preview.

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?

The description gives clear eligibility conditions (v3, Ethereum) and decision rules: amount is GHO for deposit but sGHO shares for withdraw, max:true omits amount, recipient is optional, and approval transactions must be submitted in order. It references get_sgho_preview for conversions, but does not explicitly name alternative prepare_* tools or state when not to use this tool.

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