Skip to main content
Glama

Yield.xyz AgentKit

Enter a Yield

actions_enter

Construct unsigned transactions to stake or deposit into a yield. Does NOT execute — the user must sign each transaction exactly as returned (never modify unsignedTransaction). Amounts are human-readable strings ("1.5" = 1.5 tokens, not wei). Submit transactions in stepIndex order; for the synchronous execution pattern, wait for on-chain confirmation before submitting the next one. For ERC-4626 vaults (including RWAs like Midas), inspect yields_get → mechanics.arguments.enter.fields[] to discover yield-specific options (e.g. useMaxAllowance, receiverAddress).

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": {
      "yieldId": "<yieldId>",
      "address": "<address>",
      "amount": "<amount>"
    },
    "name": "actions_enter"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesToken units e.g. "1.5" for 1.5 ETH
addressYesWallet address that will own the position.
yieldIdYesYield ID from yields_get_all e.g. "ethereum-eth-lido-staking".
inputTokenNoDeposit token address, for yields that accept more than one deposit token. Required when yields_get → mechanics.arguments.enter.fields[] lists an inputToken field with required: true; that field's options[] holds the valid addresses, which also appear as yields_get → inputTokens[].address. Use "0x" to deposit the network's native token.
executionModeNoTransaction execution mode. Defaults to "individual". "batched" is reserved for future use — batch mode is not yet available across all yields and should not be used until fully enabled.
receiverAddressNoOptional. ERC-4626 vault convenience field. Address that should receive the minted vault shares. Defaults to the position owner (`address`). Honored only when listed in yields_get enter schema.
useMaxAllowanceNoOptional. ERC-4626 vault convenience flag. true = approve the maximum (uint256 max) allowance, so subsequent deposits skip a fresh APPROVAL step. false = approve only the exact amount being deposited. Honored only when listed in yields_get enter schema.
validatorAddressNoValidator to delegate to. Required when yields_get returns mechanics.requiresValidatorSelection=true.
inputTokenNetworkNoNetwork of the input token e.g. "ethereum". Only for cross-chain deposits, where the deposit token is not on the vault's own network.

Output Schema

NameRequiredDescriptionDefault
idYes
typeYes
amountYes
intentYes
statusYes
addressYes
yieldIdYes
amountRawYes
amountUsdYes
createdAtYes
completedAtYes
rawArgumentsYes
transactionsYes
executionPatternYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed18 schema fields changed
    • removedOutput schema / properties / amount / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / amount / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / amountRaw / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / amountRaw / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / amountUsd / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / amountUsd / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / completedAt / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / completedAt / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / transactions / items / properties / broadcastedAt / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / transactions / items / properties / broadcastedAt / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / transactions / items / properties / error / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / transactions / items / properties / error / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / transactions / items / properties / explorerUrl / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / transactions / items / properties / explorerUrl / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / transactions / items / properties / hash / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / transactions / items / properties / hash / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / transactions / items / properties / signedTransaction / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / transactions / items / properties / signedTransaction / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=false, so the mutation/non-destructive profile is known. The description adds genuinely useful behavior beyond that: it is a construction-only tool, output must not be modified, ordering and confirmation sequencing matter, and amounts are human-readable rather than wei. It does not discuss auth/permission requirements, allowance side effects (only mentioned as a param), or failure modes, so it sits at a solid 3 rather than a 4-5.

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?

Front-loaded with the core action and its execution boundary, then operational rules, then the discovery pointer — a sensible order with no filler sentences. Slightly dense in places (e.g. referencing stepIndex order when stepIndex is not an input param), which costs it a point.

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?

An output schema exists so return values need not be explained, and the input schema plus annotations are fully documented. For a 9-parameter write-adjacent tool, the description covers the remaining agent-critical gaps: non-execution, signature integrity, step ordering, and yield-specific field discovery.

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 schema already carries per-parameter documentation and the baseline is 3. The description still adds value by restating the human-readable amount convention and by explaining the yields_get-driven discovery pattern for ERC-4626-only fields (useMaxAllowance, receiverAddress), which is semantics the schema only gestures at.

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 — "Construct unsigned transactions to stake or deposit into a yield" — and immediately bounds scope with "Does NOT execute," which cleanly separates it from the sibling execution/submission tools. An agent can tell what this does and what it does not do 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives real operating context: sign exactly as returned, submit in stepIndex order, wait for on-chain confirmation between steps in the synchronous pattern. It also routes the agent to yields_get → mechanics.arguments.enter.fields[] for ERC-4626 discovery. It never names a sibling alternative (e.g. actions_exit) or an explicit when-not condition, so it stops short of a 5.

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