Skip to main content
Glama

Yield.xyz AgentKit

Manage a Yield

actions_manage

Construct unsigned transactions for a pending action such as claiming rewards, restaking, or unlocking funds. Does NOT execute — the user must sign. The action type and passthrough must come from yields_get_balances balances[].pendingActions[] — do not guess these values.

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>",
      "action": "<action>",
      "passthrough": "<passthrough>"
    },
    "name": "actions_manage"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesAction type from yields_get_balances balances[].pendingActions[].type e.g. "CLAIM_REWARDS", "UNLOCK".
amountNoOptional. Human-readable amount for partial reward claims e.g. "10.5". Omit to claim full amount.
addressYesWallet address that owns the position.
yieldIdYesYield ID from yields_get_all e.g. "ethereum-eth-lido-staking".
passthroughYesRequired — from yields_get_balances pendingActions[].passthrough
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.

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. Changed1 schema field changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "STAKE",
      -  "UNSTAKE",
      -  "WITHDRAW_REQUEST",
      -  "INSTANT_WITHDRAW",
      -  "CLAIM_REWARDS",
      -  "AUTO_SWEEP_UNSTAKE_REWARDS",
      -  "AUTO_SWEEP_WITHDRAW_REWARDS",
      -  "RESTAKE_REWARDS",
      -  "WITHDRAW",
      -  "WITHDRAW_ALL",
      -  "RESTAKE",
      -  "CLAIM_UNSTAKED",
      -  "UNLOCK_LOCKED",
      -  "STAKE_LOCKED",
      -  "VOTE",
      -  "REVOKE",
      -  "VOTE_LOCKED",
      -  "REVOTE",
      -  "REBOND",
      -  "MIGRATE",
      -  "VERIFY_WITHDRAW_CREDENTIALS",
      -  "DELEGATE",
      -  "MERGE",
      -  "CANCEL_PENDING"
      -]New value: +[
      +  "STAKE",
      +  "UNSTAKE",
      +  "WITHDRAW_REQUEST",
      +  "INSTANT_WITHDRAW",
      +  "CLAIM_REWARDS",
      +  "AUTO_SWEEP_UNSTAKE_REWARDS",
      +  "AUTO_SWEEP_WITHDRAW_REWARDS",
      +  "RESTAKE_REWARDS",
      +  "WITHDRAW",
      +  "WITHDRAW_ALL",
      +  "RESTAKE",
      +  "CLAIM_UNSTAKED",
      +  "REFUND_REQUEST",
      +  "UNLOCK_LOCKED",
      +  "STAKE_LOCKED",
      +  "VOTE",
      +  "REVOKE",
      +  "VOTE_LOCKED",
      +  "REVOTE",
      +  "REBOND",
      +  "MIGRATE",
      +  "VERIFY_WITHDRAW_CREDENTIALS",
      +  "DELEGATE",
      +  "MERGE",
      +  "CANCEL_PENDING"
      +]
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: the tool only constructs unsigned transactions and never executes, the user must sign, and batched execution is disclosed as not yet available via executionMode. With readOnlyHint=false already declared, this correctly explains what the mutation actually is without overstating side effects. It does not cover failure modes such as stale or expired passthrough values.

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 short sentences with the core capability first, the non-execution caveat second, and the parameter-sourcing constraint last. Nothing is redundant or padded.

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 six-parameter mutation tool with full schema coverage, an output schema, and annotations, this covers the essential gaps: no execution, signing required, and where action/passthrough come from. Minor omissions remain around behavior with invalidated pending actions and how quickly the unsigned transaction must be submitted.

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, but the description adds provenance guidance for the two high-risk parameters (action, passthrough) sourced from a specific sibling response and warns against guessing them. The remaining parameters (amount, executionMode, address, yieldId) are left entirely to the schema.

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?

States a concrete verb and resource: "Construct unsigned transactions for a pending action such as claiming rewards, restaking, or unlocking funds," and immediately negates execution. An agent can tell this is the transaction-building step rather than a submit step. It stops short of naming how it differs from sibling builders like actions_enter or actions_exit, so it falls short of full sibling differentiation.

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 an explicit prerequisite and source of truth: action and passthrough "must come from yields_get_balances balances[].pendingActions[] — do not guess these values," which routes the agent to the correct preceding call. It also clarifies the human signing step. There is no explicit when-not guidance versus actions_enter/actions_exit, leaving some selection ambiguity.

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